KashierDevelopersKashier Developers

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
Authorization<token>

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

currency?string

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

POST
/v2/paymentRequest/import