Get payment by order ID

To find a payment, you can use orders/payment resource.

get/orders/{orderId}/payment

Request

  • Base URL
    https://api.sandbox.cleeng.com/3.1
  • URL
    https://api.sandbox.cleeng.com/3.1/orders/{orderId}/payment
  • Auth
    API key in header X-Publisher-Token

Path parameters

orderIdstring required

ID of a Cleeng order

Headers

Content-Typestring

Response

200

successboolean
messagestring

Example response

{
  "success": true,
  "payment": {
    "id": 345876987,
    "orderId": 435678987,
    "customerId": 234123321,
    "status": "captured",
    "amount": 10,
    "totalAmount": 10,
    "currency": "USD",
    "country": "US",
    "paymentMethod": "card",
    "paymentGateway": "adyen",
    "offerType": "subscription",
    "offerId": "S123432543_US",
    "externalPaymentId": "external-payment-id",
    "couponId": 654654987,
    "paymentDetailsId": 765432987
  },
  "message": "Payment data sent successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.