Add a credit/debit card for a guest

post/v1/guests/{guest_id}/accounts

Request

Path parameters

guest_idstring required

Unique 32-character identifier of the guest.

Request body

center_idstring required

Unique 32-character ID of the center

redirect_uristring required

URI to redirect the guest after payment completion

sourcestring

Source of the request. 1 : WebStore , 5 : Mobile

hoststring

Custom domain URL

avs_sourcestring

AVS source: 0 = Client, 1 = Provider

Response

200

successboolean
errorunknown
hosted_payment_uristring
token_idstring

Example response

{
  "success": true,
  "hosted_payment_uri": "https://secure-payment.zenoti.com/add-card?token=550e8400-e29b-41d4-a716-446655440124&redirect=https%3A%2F%2Fexample.com%2Fcard-added-success",
  "token_id": "550e8400-e29b-41d4-a716-446655440124"
}

Changes

No recorded changes to this operation across all 1 revision of this API.