Skip to main content

Create payment

POST/payments
Create a new payment for an order

Request Body

accountId*stringAccount ID for tenant isolation
orderId*stringOrder ID this payment is for
orderNumber*stringHuman-readable order number
amount*numberPayment amount
currency*stringCurrency code (ISO 4217)
paymentType*"online_card" | "online_bank_transfer" | "online_wallet" | "in_person_card" | "in_person_cash" | "bank_transfer" | "cheque"Type of payment
paymentProviderIdstringPayment provider ID (optional - will find by type if not provided)
returnUrlstring (uri)URL to redirect after payment
isPartialPaymentbooleanWhether this is a partial payment
remainingBalancenumberRemaining balance after this payment
metadataobjectCustom metadata

Response

Payment created successfully

Code Samples
No code examples available for this operation.

Try It

Request Body
Account ID for tenant isolation
Order ID this payment is for
Human-readable order number
Payment amount
Currency code (ISO 4217)
Type of payment
Payment provider ID (optional - will find by type if not provided)
URL to redirect after payment
Whether this is a partial payment
Remaining balance after this payment
Custom metadata