Save the uploaded customers
curl -X GET "https://test-api.kashier.io/v2/customers/savecustomers?correlationId=string"{ "body": [ { "_id": "67bef80abf4f31001203db66", "name": "John Doe", "phoneNumber": "1123456789", "emailAddress": "", "customerId": "C-1740568586339", "merchantId": "MID-XXXXX-XXX", "customFields": [ { "name": "custom-key-1", "value": "custom-value-1" } ], "createdAt": "2025-02-26 11:16:26.775000+00:00", "updatedAt": "2025-02-26 11:16:26.775000+00:00" }, { "_id": "67bef80abf4f31001203db67", "name": "Jane Doe", "phoneNumber": "1123456780", "emailAddress": "", "customerId": "C-1740568586340", "merchantId": "MID-XXXXX-XXX", "customFields": [ { "name": "custom-key-1", "value": "custom-value-2" } ], "createdAt": "2025-02-26 11:16:26.776000+00:00", "updatedAt": "2025-02-26 11:16:26.776000+00:00" } ], "message": "success"}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 invalid sheet from creating any customers.
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
The correlationId returned by the import step.
Response Body
application/json
application/json
application/json
application/json
application/json
Upload a customers sheet for review POST
Step 1 of the bulk import. Uploads an Excel sheet of customers and validates it without saving anything. Rows that fail validation come back with their errors populated so you can correct them; if…
Import payment links POST
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 f…