Import payment links
curl -X POST "https://test-api.kashier.io/v2/paymentRequest/import" \ -F file="string"{ "body": { "imported": 5, "successful": 5, "failed": 0, "results": [ { "index": 1, "paymentRequestId": "PR-XXXXXXXXXX", "totalAmount": 100, "currency": "EGP", "status": "created" } ] }, "message": "success"}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 failures, and returns a correlationId. Pass that id to Save the uploaded payment links to commit the validated rows.
Authorization
secretKey Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).
In: header
Query Parameters
ISO 4217 currency code applied to the imported payment links (e.g., EGP).
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
Save the uploaded customers GET
Step 2 of the bulk import. Persists the customers that were validated by importCustomers, identified by the correlationId returned there. Separating validation from the write keeps a partially inva…
Get all payment links GET
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 v…