Defines the fields included in the response body from the BulkCreateCustomers endpoint.
Bulk Create Customers Response
Name | Type | Tags | Description |
---|---|---|---|
responses |
Dict Str Create Customer Response |
Optional | A map of responses that correspond to individual create requests, represented by key-value pairs. Each key is the idempotency key that was provided for a create request and each value is the corresponding response. If the request succeeds, the value is the new customer profile. If the request fails, the value contains any errors that occurred during the request. |
errors |
List Error |
Optional | Any top-level errors that prevented the bulk operation from running. |
{
"responses": {
"8bb76c4f-e35d-4c5b-90de-1194cd9179f4": {
"customer": {
"address": {
"address_line_1": "500 Electric Ave",
"address_line_2": "Suite 600",
"administrative_district_level_1": "NY",
"country": "US",
"locality": "New York",
"postal_code": "10003"
},
"created_at": "2024-03-23T20:21:54.859Z",
"creation_source": "THIRD_PARTY",
"email_address": "[email protected]",
"family_name": "Earhart",
"given_name": "Amelia",
"id": "8DDA5NZVBZFGAX0V3HPF81HHE0",
"note": "a customer",
"phone_number": "+1-212-555-4240",
"preferences": {
"email_unsubscribed": false
},
"reference_id": "YOUR_REFERENCE_ID",
"updated_at": "2024-03-23T20:21:54.859Z",
"version": 0,
"cards": [
{
"id": "id8",
"card_brand": "DISCOVER",
"last_4": "last_40",
"exp_month": 152,
"exp_year": 144
}
]
},
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
]
},
"d1689f23-b25d-4932-b2f0-aed00f5e2029": {
"customer": {
"address": {
"address_line_1": "500 Electric Ave",
"address_line_2": "Suite 601",
"administrative_district_level_1": "NY",
"country": "US",
"locality": "New York",
"postal_code": "10003"
},
"created_at": "2024-03-23T20:21:54.859Z",
"creation_source": "THIRD_PARTY",
"email_address": "[email protected]",
"family_name": "Curie",
"given_name": "Marie",
"id": "N18CPRVXR5214XPBBA6BZQWF3C",
"note": "another customer",
"phone_number": "+1-212-444-4240",
"preferences": {
"email_unsubscribed": false
},
"reference_id": "YOUR_REFERENCE_ID",
"updated_at": "2024-03-23T20:21:54.859Z",
"version": 0,
"cards": [
{
"id": "id8",
"card_brand": "DISCOVER",
"last_4": "last_40",
"exp_month": 152,
"exp_year": 144
}
]
},
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
]
}
},
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
]
}