API to create a new customer in Omnyfy. Please use the is-email-available API before calling this API. The email and password provided here can be used to get a token via the /auth endpoint.
Sample Curl
curl --location 'https://mygatewayurl.com/V1/customer' --header 'Content-Type: application/json' --data-raw '{ "password": "MyPassw0rd!", "customer": { "dob": "1992-11-11 11:11:11", "email": "[email protected]", "firstname": "John", "lastname": "Smithereen", "middlename": "Doe", "confirmation": true, "gender": 0, "website_id": 0, "default_shipping": "1", "default_billing": "1", "addresses": [ { "region_id": 571, "country_id": "AU", "street": [ "6 Albert Road" ], "company": "Omnyfy", "telephone": "0341235421", "postcode": "3205", "city": "South Melbourne", "firstname": "Alpha", "lastname": "Kappa", "middlename": "Beta", "default_shipping": true, "default_billing": true }, { "region_id": 571, "country_id": "AU", "street": [ "6 Albert Road" ], "company": "Omnyfy", "telephone": "0341235421","postcode": "3205", "city": "South Melbourne", "firstname": "Alpha", "lastname": "Kappa", "middlename": "Beta", "default_shipping": true, "default_billing": true } ] }}'
post https://{baseUrl}/V1/customer