Create a batch
curl -X POST "https://test-api.kashier.io/v2/batch" \ -H "Content-Type: application/json" \ -d '{ "batchName": "June billing", "currency": "EGP", "batchType": "withCustomer" }'{ "data": { "_id": "string", "batchName": "string", "currency": "string", "merchantId": "string", "createdByUserId": "string", "status": "string", "itemsCount": 0, "createdAt": "string", "updatedAt": "string" }, "message": "string"}Creates an empty batch. batchType decides which import sheet the batch expects — withCustomer when each row carries the customer's details so Kashier can create or match a customer record, withoutCustomer when the rows are amounts only. Fill the batch afterwards with importBatchItems.
Authorization
secretKey Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json