get https://api.zenoti.com/v1/guests//accounts?center_id=
Use this API to retrieve the saved credit or debit cards of a guest.
Supply guest_id
and center_id
to this api and it fetches the active payment accounts of the guest.
Response Details
Name | Type | Description |
---|---|---|
account_id | string | Unique identifier of the payment account. |
card_logo | string | Brand of the payment account. |
last_four | string | Last four digits of the payment account. |
expiry_on | string | Expiry date of the payment account. |
error | object | Object that contains error message and error code details. For more information, refer to the error Object table. |
error Object
code | message |
---|---|
502 | Guest Id not found. |
438 | cannot access. |
502 | Center Id not found. |
438 | UserNotAuthorized, The request does not have authenticated user. |