KashierDevelopersKashier Developers

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

POST
/v2/paymentRequest/import