v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Add a credit/debit card for a guest

post/v1/guests/{guest_id}/accounts

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
{"stackTrail":"paths:/v1/guests/{guest_id}/accounts:post:responses:200:content:application/json:schema:properties:error","oasType":"schema","type":"unknown"}
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"
}