Import invoices
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"}Creates many invoices at once from an uploaded spreadsheet. Each row becomes an invoice; the response reports how many rows were accepted and which ones failed, so you can fix and re-upload just the failures.
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 invoices (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
Export invoices asynchronously GET
Starts an invoice export in the background and emails the finished file to the account that made the request. Use this instead of Export invoices when the date range is wide enough that a synchrono…
Import invoices POST
Creates many invoices at once from an uploaded spreadsheet. Each row becomes an invoice; the response reports how many rows were accepted and which ones failed, so you can fix and re-upload just th…