Create a payment
To create a payment, you use a payment resource. They are a reference to the actual payment that happens at the payment gateway.
Payments handle customers' actual payments of previously defined orders.
post/payments
Request
- Base URLhttps://api.sandbox.cleeng.com/3.1
- URLhttps://api.sandbox.cleeng.com/3.1/payments
- AuthAPI key in header X-Publisher-Token
Headers
Content-Typestring
Request body
Response
200
Example response
{
"success": true,
"payment": {
"id": 386,
"orderId": 429180537,
"status": "captured",
"totalAmount": 10,
"currency": "EUR",
"customerId": 965143976,
"paymentGateway": "adyen",
"paymentMethod": "card",
"externalPaymentId": "<external-payment-id>",
"amount": 8.13,
"country": "PL",
"offerType": "subscription",
"taxValue": 1.87,
"paymentOperation": "initial-payment"
},
"message": "Payment created successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.