Hi,
We are trying to create a customer’s shipping address only and setting the address to be the default shipping address.
We have looked at your API: create-a-customer
The data we have tired is:
- We’ve replaced real data with “dummydatahere”.
Example 1:
{"email":"accounts@test.co.uk)","phone":"","mobile":"","note":"","billing_address_attributes":{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"},"shipping_address_attributes":{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"}}
Example 2:
{"email":"accounts@test.co.uk)","phone":"","mobile":"","note":"","billing_address_attributes":{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"},"shipping_address_attributes":[{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"}]}
Example 3:
{"email":"accounts@test.co.uk)","phone":"","mobile":"","note":"","billing_address_attributes":{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"},"deliver_to_attributes":{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"}}
Example 4:
{"email":"accounts@test.co.uk)","phone":"","mobile":"","note":"","billing_address_attributes":{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"},"shipping_addresses":[{"first_name":"dummydatahere","last_name":"dummydatahere","company":"","address1":"DO NOT SHIP","address2":"dummydatahere","city":"dummydatahere","country":"dummydatahere","zip":"dummydatahere"}]}
the API dose not specify the required format:
We have also reviewed the thread and it does not explain a solution for the customer endpoint.
Please could you review and confirm the format for the shipping address requirement?
Thanks,
Aj.