Jèko
Payment Requests

Create payment request (Partner API)

POST
/partner_api/payment_requests

Authorization

ApiKey ApiKeyId
X-API-KEY<token>

In: header

X-API-KEY-ID<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/partner_api/payment_requests" \  -H "Content-Type: application/json" \  -d '{    "amountCents": 100,    "currency": "str",    "reference": "string",    "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c",    "paymentDetails": {      "type": "redirect",      "data": {        "paymentMethod": "orange",        "successUrl": "http://example.com",        "errorUrl": "http://example.com"      }    }  }'
{  "id": "string",  "storeId": "string",  "reference": "string",  "type": "redirect",  "paymentMethod": "orange",  "status": "pending",  "errorReason": "string",  "transaction": {    "id": "string",    "amount": {      "amount": 0,      "currency": "XOF"    },    "fees": {      "amount": 0,      "currency": "XOF"    },    "status": "pending",    "counterpartLabel": "string",    "counterpartIdentifier": "string",    "description": "string",    "executedAt": "string"  },  "redirectUrl": "http://example.com"}