Create a payment link
Creates a shareable payment link that opens the hosted payment page. Omit amount for an open amount (the customer enters it). reusable false (default) = single-use.
Authorization
ApiKey Merchant API key for authentication
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
curl -X POST "https://example.com/payment-links" \ -H "Content-Type: application/json" \ -d '{ "amount": 4999, "currency": "EUR", "description": "Invoice #1234", "reference": "inv_1234" }'{ "id": "string", "url": "string", "amount": 0, "currency": "str", "description": "string", "reference": "string", "customer": { "first_name": "string", "last_name": "string", "email": "string", "country": "string" }, "capture_mode": "automatic", "reusable": true, "status": "active", "expires_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}