Process Payment
Process Cart with Payment is used to create a new booking from the cart contents.
zapiProcessCartWithPayment
POST
https://{yourdomainname}.zaui.net/zapi/
Request Body
Name | Type | Description |
---|---|---|
zapiToken* | integer | Token that must be used for a reseller to communicate with the supplier system. |
cartId* | integer | The ID of the cart which the transaction is to be applied to. |
methodName* | string | The method being called. |
zapiUserId* | integer | Generated by the supplier system when a new contact is created. |
zapiAccountId* | integer | Generated by the supplier system. |
paymentMethodType* | integer | See Payment Method Type IDs in the appendix. |
location* | object | Object describing where this transaction took place, required for logging |
deviceData* | string | Data from the device payment is being processed on. |
creditCardDetails* | object | Object containing either standard credit card info. Required only for payment type 2000. |
gratuityDetails | object | Object containing amount and type of gratuity to add to transaction/booking. |
voucherDetails | object | Object containing information pertaining to the voucher. Required only for payment type 2004. |
transactionType* | integer | See Payment Method Type IDs in the appendix. |
transactionAmount* | integer | Amount to charge to the provided payment method (with no currency formatting). This does not include gratuity amount. This value cannot be 0 (unless payment method is 2003). |
currency/isoCode* | string | Currency in which to charge to the provided payment method. |
For information on payment types, please see Payment Method Type IDs in the appendix.
Last updated