# Update payer default card
This endpoint enables you to update the payer's details by payer ID.
Live
Sandbox
PUT: https://api.openacquiring.com/v1/merchants/YOUR_MERCHANT_ID/payer/PAYER_ID
Request example
- Shell
- JavaScript
curl -X PUT \
https://api.openacquiring.com/v1/merchants/w3z8dfhkzvfq0j9n/payer/0f053a05-9fa2-49a1-871f-3098e4b114e2 \
-H 'authorization: Basic ODZidWQ0Y2JremlxOXZmYzoweHI1ZDkwOHo2bmo4a2h6' \
-H 'content-type: application/json'
-d '{
"email": "tom@lamma.om",
"name":"Tom Hanks",
"default_card": "9c22d208-4e25-47f8-8d32-c0e6d97c17c2"
}
Response example
"DONE"
# Request
# Header parameters
The request require a Basic
authentication in the header. For more information about HTTP request headers, see HTTP request headers.
# Request parameters
Parameter | Type | Description |
---|---|---|
merchant_id required | string | Encrypted Merchant account identifier for the Merchant |
payer_id required | string | unique identifier of a payer on our system |
# Request body
Parameter | Type | Description |
---|---|---|
email required | string | email address of the payer |
name required | string | name of the payer |
default_card required | string | Unique identifier of the default card to be associated to the payer |
# Response
status 200
status 400
"DONE"
# Response Body
# Status 200 Success
Message string indicating that the process has been successfully done
# Error Response Body
# Status 400 Bad Request
Parameter | Type | Description |
---|---|---|
code | string | Code indentifying the error on our system |
name | string | Name indentifying the error on our system |
message | string | Message related to the error |
eventId | string | Unique Identifier for the request |