KashierDevelopersKashier Developers

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

correlationId*string

The correlationId returned by the import step.

Response Body

application/json

application/json

application/json

application/json

application/json

GET
/v2/customers/savecustomers