KashierDevelopersKashier Developers

Save the uploaded customers

curl -X GET "https://test-api.kashier.io/v2/customers/savecustomers?correlationId=string"
{  "body": [    {      "_id": "507f1f77bcf86cd799439052",      "name": "John Doe",      "phoneNumber": "01000000000",      "emailAddress": "",      "customerId": "C-XXXXXXXXXXXXX",      "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": "507f1f77bcf86cd799439053",      "name": "Jane Doe",      "phoneNumber": "01000000000",      "emailAddress": "",      "customerId": "C-XXXXXXXXXXXXX",      "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>

Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.

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