Menu
Create Customer List
Create a new customer in a customer list.
POST
/organizations/{organizationId}/customer-lists/{customerListId}/customersUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Create Customer List action (under Customers (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{createCustomerList.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"customerNo": "D100201",
"lastName": "Leung",
"birthday": "1999-12-31",
"companyName": "Ursa Major Solar",
"creationDate": "9999-12-31T00:00:00.0Z",
"credentials": {
"login": "wleung",
"enabled": true,
"locked": false,
"passwordQuestion": "Pet Name?"
},
"customerId": "wleung",
"email": "wleung@example.com",
"fax": "415-555-1213",
"firstName": "Wei",
"gender": 2,
"jobTitle": ""
}
Response
Returns 200 with an object. Read it in later steps with {{createCustomerList.response.data.<field>}}.
{
"customerNo": "D100201",
"lastName": "Leung",
"birthday": "1999-12-31",
"companyName": "Ursa Major Solar",
"creationDate": "9999-12-31T00:00:00.0Z",
"credentials": {
"login": "wleung",
"enabled": true,
"locked": false,
"passwordQuestion": "Pet Name?"
},
"customerId": "wleung",
"email": "wleung@example.com",
"fax": "415-555-1213",
"firstName": "Wei",
"gender": 2,
"jobTitle": ""
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?