post https://api.zenoti.com/v1/guests//accounts
This API helps you to add a credit card or debit card for a guest.
To add a credit card or debit card for a guest, follow these steps:
- Specify the request body for this API, and in response, you will receive an URL from the payment processor as
hosted_payment_uri
. - Open
hosted_payment_uri
. You will then be redirected to a page from the payment processor. - Enter the account details, and then click Submit. The payment account will be added for the guest with the
guest_id
details that you had specified in the API request.
Response Details
Name | Type | Description |
---|---|---|
token_id | string | Token or Reference number for processing the transaction. |
hosted_payment_uri | string | Represents the URI to which you are redirected for the Save Card screen. |
error Object
code | message |
---|---|
400 | Bad request. |
931 | CanNotReplacePaymentAccount error. |
932 | AVSDetailsError error. |