v1

latestOpenAPI 3.1.02026-07-241080412.6 KB

Purchase without payment details

Use /payments endpoint to perform purchase without payment details. <br>Use in cases:<br><br>- customer applied 100% coupon code and the publisher doesn't expect the payment details (option to set during coupon creation) - for this purchase flow, please use a payment method with a name “Manual” that has “Coupon” as payment gateway.<br>- offer is free and the publisher wants to give access to offer - for this purchase flow, please use a payment method with a name “Manual” that has “Free-offer” as payment gateway.<br><br> Important Note <br> It is crucial that an appropriate payment method is used during order creation (“Manual” with “Coupon” or “Free-offer” as payment gateway). While it’s possible to use any payment gateway in this checkout flow, we strongly recommend utilizing the above for reporting clarity.

post/payments

Request body

orderIdinteger required

ID of Cleeng order. Order has to have paymentMethodId for payment method which: <br> - has a name "Manual"<br> - has either “Coupon” or “Free-offer” as payment gateway, depending on the purchase type.

captchaValuestring

To integrate Google reCAPTCHA go HERE

Response

200

Example response

{
  "responseData": {
    "id": 1537437672,
    "orderId": 520497024,
    "status": "captured",
    "currency": "EUR",
    "customerId": 213326456,
    "paymentGateway": "coupon",
    "couponId": 2865779,
    "country": "PL",
    "offerType": "subscription",
    "paymentOperation": "initial-payment"
  }
}