Get all payment links
curl -X GET "https://test-api.kashier.io/v2/payment-link"{ "message": "Payment links retrieved successfully", "data": [ { "_id": "507f1f77bcf86cd799439054", "description": "", "dueDate": null, "isSuspendedPayment": false, "currency": "EGP", "paymentLinkId": "PL-XXXXXXXXXX", "isDeleted": false, "merchantId": "MID-XXXXX-XXX", "paymentType": "simple", "totalAmount": 100, "availableAmountForRefund": 0, "state": "submitted", "customerName": "John Doe", "paymentRequestId": "PR-XXXXXXXXXX", "creationDate": "2025-02-06 11:27:05.236000+00:00", "merchantInfo": { "storeName": "demo" }, "extraFees": [ { "name": "VAT", "flatFee": 0, "rate": 5 } ], "invoiceItems": [], "paymentStatus": "paid" }, { "_id": "507f1f77bcf86cd799439055", "description": "", "dueDate": null, "isSuspendedPayment": false, "currency": "EGP", "paymentLinkId": "PL-XXXXXXXXXX", "isDeleted": false, "merchantId": "MID-XXXXX-XXX", "paymentType": "simple", "totalAmount": 1900, "availableAmountForRefund": 0, "state": "submitted", "customerName": "Jane Doe", "paymentRequestId": "PR-XXXXXXXXXX", "creationDate": "2025-02-06 11:27:05.236000+00:00", "merchantInfo": { "storeName": "demo" }, "extraFees": [], "invoiceItems": [], "paymentStatus": "unpaid", "virtualAmount": 40, "virtualCurrency": "USD_VIRTUAL", "virtualExchangeRate": 47.5, "virtualRateRecordedAt": "2025-02-06 11:27:05.236000+00:00" } ], "pagination": { "page": 1, "limit": 10, "total": 2, "totalPages": 1 }, "exchangeRateServiceAvailable": true}Retrieves the merchant's payment links. All filters are optional and can be combined; results are paginated. If the currency conversion feature is enabled on your account you can also filter by a virtual currency view code (e.g. USD_VIRTUAL) to list only the links created in that foreign currency.
Authorization
secretKey Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.
In: header
Query Parameters
ISO 4217 currency code to filter by (e.g., EGP). Accepts a virtual currency view code (e.g., USD_VIRTUAL) when currency conversion is enabled.
Payment link state. Example: submitted
Payment state.
Value in
- "PAID"
- "UNPAID"
- "OVERDUE"
- "EXPIRED"
Payment type.
Value in
- "FIXED_AMOUNT"
- "ITEMIZED"
Earliest due date to include.
Latest due date to include.
Start of the creation date range.
End of the creation date range.
Minimum total amount.
Maximum total amount.
Search for a payment link by its id. Example: PL-XXXXXXXXXX
Page number (pagination).
Number of items per page (pagination).
Response Body
application/json
application/json
application/json
application/json
application/json
Import payment links POST
Uploads a spreadsheet of payment links and validates it, without saving anything yet. The response reports how many rows were accepted and which ones failed, so you can fix and re-upload just the f…
Create a payment link POST
Creates a single payment link for one customer. Set currency to a virtual currency code (USDVIRTUAL, EURVIRTUAL, GBPVIRTUAL, SARVIRTUAL, AEDVIRTUAL) with totalAmount expressed in that currency to c…