Update User Transactions Pin
PATCH /api/v1/users/{userId}/transactions/pin
Description
Update the transactions pin for a user.
Path Parameters
| Name | Type | Description |
|---|---|---|
userId | string | The user ID (path) |
Request Body
- Content Type:
application/json
{
"userId": "string",
"password": "string",
"type": "OTP",
"pin": "string"
}
Response Code: 200 - OK
Description
Pin updated successfully.
Response Fields
The response does not contain any specific fields.
Example
{
"status": true,
"statusCode": 0,
"message": "Pin updated successfully"
}
Method: PATCH
>http://your-api-url/api/v1/users/{userId}/transactions/pin
Headers
Headers
|Content-Type |Value|
|apiKey |`{{apiKey}}`|
Body
{
"userId": "12345",
"password": "password123",
"type": "OTP",
"pin": "1234"
}
🔑 Authentication bearer
|Param |Value |Type|
|token |{{accessCode}} |string|
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/users/{userId}/transactions/pin \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!