Create payment link (Partner API)
Authorization
ApiKey ApiKeyId In: header
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_links" \ -H "Content-Type: application/json" \ -d '{ "storeId": "b8adcdc8-9238-4168-90f8-77b2d14c211c", "title": "stringstri", "amountCents": 10000, "currency": "XOF" }'{ "id": "string", "storeId": "string", "title": "string", "amount": { "amount": 0, "currency": "XOF" }, "allowMultiplePayments": true, "canReceivePayments": true, "link": "http://example.com"}Get payment request by ID (Partner API) GET
Retrieves a payment request by its ID. Returns the same structure as the create endpoint but includes the current status. When the request is still pending and a PSP status check was recently performed (or just ran), the response may include a `Retry-After` header (seconds) advising clients when to poll again. **Authentication:** - Requires API key headers `X-API-KEY` and `X-API-KEY-ID` **Access Control:** - Only returns payment requests that belong to the authenticated business - Only returns payment requests created via the Partner API
Get payment link by ID (Partner API) GET
Retrieves a payment link by its ID with real-time payment availability status. **Key Information:** - Returns the same structure as the create endpoint - `canReceivePayments` field reflects current link status - Use this endpoint to check if a link can accept new payments before directing customers **Authentication:** - Requires API key headers `X-API-KEY` and `X-API-KEY-ID` **Access Control:** - Only returns payment links that belong to the authenticated business **Use Cases:** - Verify link availability before sharing with customers - Check payment link status in your application - Validate single-use links before reuse