- Bulk adding clients
Adding a Client
Get a list of clients
Get a client
Edit client
Delete client
List client card comments
Add a client card comment
Delete a comment for a client
List client card files
Upload a completed document to a client card
Delete a client card file
Search by customer history
Deprecated. Get full client profiles in a location
Bulk adding clients
Security
BearerPartnerUser
Client national ID: CPF for Brazil, IIN for Kazakhstan. For a location in Kazakhstan the value must be a valid individual IIN — 12 digits with a correct check digit — otherwise the row is skipped and reported in errors. Optional.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}/bulk
- Productionhttps://api.alteg.io/api/v1/clients/{location_id}/bulk
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/clients/{location_id}/bulk' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: */*' \
-d '[
{
"name": "James",
"surname": "Smith",
"middle_name": "James",
"phone": 13155550181,
"email": "j.smith@example.com",
"gender_id": 1,
"discount": 15,
"importance_id": 1,
"card": 555888666,
"birth_date": "952041600",
"comment": "throws show-off",
"sms_check": 0,
"sms_not": 0,
"spent": 1000,
"balance": -200,
"categories": [
101,
102
],
"national_id": "950315300129"
},
{
"name": "James",
"surname": "Smith",
"middle_name": "James",
"phone": 13155550181
},
{
"phone": 13155550182
},
{
"name": "James",
"surname": "Smith",
"middle_name": "James",
"phone": 13155550183
},
{
"name": "Theodore",
"surname": "Hicks",
"middle_name": "Richardson"
}
]'Response
{ "success": true, "data": { "created": [ … ], "errors": [ … ] }, "meta": [] }