Bulk Customers by source id
POST/customers/bulk/sourceId
The bulk endpoints offer an efficient way of importing/updating large amounts of customers with just a single API call. When using the bulk sourceId
endpoint, the customers are identified by sourceId
, source
and language
. If a customer doesn't already exist, it will be created. If it does exist, the customer found will be updated.
Customer bulk endpoints support bulk change of customer attributes for multiple customers as well. To learn more about Attributes, go here.
Customer bulk endpoints support bulk change of pricing for multiple customers as well. To learn more about Pricing, go here.
A single customer attributes can be modified as explained in Bulk resource attribute values by resource lookup key, but if it's needed to modify attributes for multiple customers, this endpoint should be used.
Fields
Name | Required |
---|---|
customers (array of customer objects) | yes |
source | yes |
sourceId | yes |
debtorId | no |
firstName | no |
middleName | no |
lastName | no |
abbreviation | no |
title | no |
dateOfBirth | no |
gender | no |
ssn | no |
phone | no |
email | no |
parent | no |
pricelistAmount | no |
pricelistPercentage | no |
primaryLanguage | no |
attributes Read more about attributes | no |
pricing Read more about pricing | no |
addresses Read more about addresses | no |
Request
- application/json
Body
Array [
Array [
]
Array [
]
]
customers
object[]
addresses
object[]
attributes
object[]
parent
object
Responses
- 200
- 400
Bulk Customers by source id - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Bulk Customers by source id - 200
Schema
Array [
]
data
object[]
{
"data": [
{
"action": "update",
"id": 25494,
"key": 3002196,
"lookupKey": "sourceId",
"success": true
}
],
"messages": [
"Completed"
],
"total": 1
}
{
"data": [
{
"action": "update",
"id": 25494,
"key": 3002196,
"lookupKey": "sourceId",
"success": true
}
],
"messages": [
"Completed"
],
"total": 1
}
Bulk Customers by source id - 400 (invalid schema)
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Bulk Customers by source id - 400 (invalid schema)
Schema
error
object
{
"error": {
"code": 10007,
"messages": [
"#/customers/0: extraneous key [company] is not permitted"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}
{
"error": {
"code": 10007,
"messages": [
"#/customers/0: extraneous key [company] is not permitted"
],
"moreInfo": "https://www.propel.us/docs/errors/10007",
"status": 400,
"type": "SchemaValidationException"
}
}