Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.12 KB

bulk-create-customers-request.md

File metadata and controls

61 lines (52 loc) · 2.12 KB

Bulk Create Customers Request

Defines the body parameters that can be included in requests to the BulkCreateCustomers endpoint.

Structure

BulkCreateCustomersRequest

Fields

Name Type Tags Description Getter
Customers Map<String, BulkCreateCustomerData> Required A map of 1 to 100 individual create requests, represented by idempotency key: { customer data }
key-value pairs.

Each key is an idempotency key
that uniquely identifies the create request. Each value contains the customer data used to create the
customer profile.
Map<String, BulkCreateCustomerData> getCustomers()

Example (as JSON)

{
  "customers": {
    "8bb76c4f-e35d-4c5b-90de-1194cd9179f0": {
      "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"
      },
      "email_address": "[email protected]",
      "family_name": "Earhart",
      "given_name": "Amelia",
      "note": "a customer",
      "phone_number": "+1-212-555-4240",
      "reference_id": "YOUR_REFERENCE_ID",
      "company_name": "company_name8",
      "nickname": "nickname8"
    },
    "d1689f23-b25d-4932-b2f0-aed00f5e2029": {
      "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"
      },
      "email_address": "[email protected]",
      "family_name": "Curie",
      "given_name": "Marie",
      "note": "another customer",
      "phone_number": "+1-212-444-4240",
      "reference_id": "YOUR_REFERENCE_ID",
      "company_name": "company_name8",
      "nickname": "nickname8"
    }
  }
}