capabilities.work

Create Customer, Address, and Order

A 4-step recipe with Commerce Layer. We can help you get access.

Recipe · 4 steps

Create Customer, Address, and Order

with Commerce Layer · Customer Data Management

Create a customer, attach an address, and open an order for them.

  1. Create the customer record from the supplied email.
  2. Create a reusable address resource for the customer.
  3. Link the address to the customer as an address book entry.
  4. Open a draft order in the market for the new customer.
What you'll need to have ready
  • accessToken: Bearer access token for the Commerce Layer organization.
  • marketId: The id of the market the order belongs to.
  • email: The customer email address.
  • line1: First line of the street address.
  • city: City of the address.
  • countryCode: Two-letter country code of the address.
  • phone: Phone number for the address.
For your developer

Arazzo workflow commerce-layer:create-customer-address-order, 4 operations: POST/customers → POST/addresses → POST/customer_addresses → POST/orders. Specs on APIs.io.