Get Receipt PDF
Retrieve the PDF representation of the receipt for a given payment in base64 format. Provide paymentId and optionally isForMerchant (default: true) to indicate whether the receipt is for the merchant or customer copy.
Headers
authorizationGet Receipt PDF › Request Body
clientIdWebpage/Application that belongs to a company registered with Zero-Platform, not the current user paying
paymentIdThe ID of the payment to which the PDF will be generated
isForMerchantIndicates if payment receipt is for merchant or customer
Get Receipt PDF › Responses
PDF generated. Response contains base64-encoded PDF and/or a URL.
Get surcharge rate
Calculate the surcharge/fee rate for a given card BIN and amount. Returns the surcharge amount, rate, type, and card brand. Use this before charging to display the final amount to customers. tokenId is required only when using the Strictly gateway (alternative to binCard).
query Parameters
amountAmount in dollars (e.g. "101"). Supports up to eight digits.
clientIdbinCardFirst 6 digits of the card number (BIN/IIN)
tokenIdTokenized card ID. Required only when using the Strictly gateway as an alternative to binCard.
Get surcharge rate › Responses
Rate info returned.
Charge a card
Create a payment and immediately flag it for settlement when capture=true (default). A payment can be made for a card or for an existing customer vault. Set capture=false to issue a pre-authorization only — call /capture separately to settle.
Customer vault: If charging a customer vault, the system uses the default payment method. Override with overrideDefaultPaymentMethod set to the desired customerVaultId.
Dual-pricing accounts: amount represents the card price; no surcharge or discount applies for Regular/Dualpricing accounts.
Sandbox/test mode: Use token 00000000-000000-000000-000000000000 to speed up integration without hitting the network.
To trigger a declined response: Pass an amount less than 1.00.
bypassSurcharge: Set to true to remove surcharge for exceptions.
card.number must be the masked card number from the tokenization form (e.g. 411111******1111), regex: \d{6}[*\.]+\d{4}.
Headers
user-agentCharge a card › Request Body
clientIdWebpage/Application that belongs to a company registered with Zero-Platform, not the current user paying
amountA positive integer representing how much to charge in the smallest currency unit
overrideDefaultPaymentMethodThe id of the payment method to use in the charge
currencyThree-letter ISO currency code, in lowercase. Must be a supported currency
captureWhether to immediately capture the charge
sendReceiptsend Receipt info
bypassSurchargeUsed to remove surcharge amount for exceptions
discountA positive integer representing how much to discount in the smallest currency unit
marketTypeMarket Type
zipCodeZip code
taxesTaxes amount or list of taxes
Charge a card › Responses
Charge created.
Refund a payment
Post a refund on a previously captured payment. Funds are returned to the original credit/debit card. You can refund the full amount or only a portion. Multiple partial refunds are allowed until the charge is fully refunded. Attempting to refund a fully-refunded payment will result in an error. amount is expressed in cents (e.g. 100 = $1.00).
Headers
user-agentRefund a payment › Request Body
amountThe amount to refund, which must be less than or equal to the original amount.
paymentIdID of the payment to be refunded.
reasonReason for the refund. If set, possible values are duplicate, fraudulent, and requested_by_customer.
Refund a payment › Responses
Refund processed.
Void a payment
Void an existing payment that has not yet been settled. Once voided, no additional charges can be made. For settled/captured payments, use the refund endpoint instead.
reason values: fraud, user_cancel, icc_rejected, icc_card_removed, icc_no_confirmation, pos_timeout.
Set receipt=true to send a receipt notification to the customer via email or SMS.
Headers
user-agentVoid a payment › Request Body
paymentIdID of the charge that must be voided.
reasonReason that make void.
paymentReason that make void.
receiptTo send or not to send an email after void a payment
Void a payment › Responses
Payment voided.
Capture a pre-authorized payment
Flag a pre-authorized payment for settlement. Only payments created with capture=false can be captured. You can capture an amount equal to or less than the original pre-authorization. Uncaptured payments are not posted to the account until a settlement runs (by default, daily).
Headers
user-agentCapture a pre-authorized payment › Request Body
amountThe amount to capture, which must be less than or equal to the original amount.
paymentIdID of the payment that must be captured.
Capture a pre-authorized payment › Responses
Payment captured.
Get terminal acknowledgment
Retrieve the acknowledgment payload for the last terminal transaction. Used in terminal integration flows. type controls the response format: json (default) or text.
query Parameters
clientIdMerchant client ID
typeResponse format — json (default) or text
Get terminal acknowledgment › Responses
Acknowledgment data returned.
Bulk charge (async)
Create a payment from a customer vault for each entry in the payments array. Equivalent to calling /charge for a customer multiple times. Processed asynchronously via a Pub/Sub queue — the response only confirms the job was queued. Poll individual payment IDs to check each charge result.
Required per-item fields: amount, customerVaultId. Optional: bypassSurcharge (true/false) to remove surcharge for exceptions.
Headers
user-agentBulk charge (async) › Request Body
clientIdWebpage/Application that belongs to a company registered with Zero-Platform, not the current user paying
sendReceiptsend Receipt info
Bulk charge (async) › Responses
Bulk charge job queued.