Update contact details
This endpoint sets or updates the contact details (email and phone) for the account. The contact details are used to send notifications to the cardholder, such as for 3DSecure and one time passwords.
Path Parameters
- accountId string required
AccountId for the contact details
- application/json
Request Body required
email object
emailAddress string requiredEmail address
phone object
phoneNumber string requiredPhone number
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
email object
accountId string requiredcreatedAt date-time requiredmodifiedAt date-time requiredemailAddress string requiredphone object
accountId string requiredcreatedAt date-time requiredmodifiedAt date-time requiredphoneNumber string required
{
"email": {
"accountId": "9b7552cf9abab0f2efed72df6b3ce4bc",
"createdAt": "2024-05-07T05:20:02.710Z",
"modifiedAt": "2024-05-07T05:20:02.710Z",
"emailAddress": "joe@joecardholder.com"
},
"phone": {
"accountId": "9b7552cf9abab0f2efed72df6b3ce4bc",
"createdAt": "2024-05-07T05:20:02.710Z",
"modifiedAt": "2024-05-07T05:20:02.710Z",
"phoneNumber": "+1234567890"
}
}
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
- statusCode integer required
- statusName string required
- errorCode string required
- errors string[]
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "BAD_REQUEST",
"errors": [
"Expected string, received number"
]
}
API caller is not allowed to perform the action
- application/json
- Schema
- Example (from schema)
Schema
- statusCode integer required
- statusName string required
- errorCode string required
- reason string
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}
Loading...