curl --location -g --request POST 'https://relay.exostack.cloud/{{relay_path}}/api/customer/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"primary_email": "user@example.com",
"personal_email": "user@example.com",
"other_email": "user@example.com",
"main_phone": {
"number": 0,
"extension": 0
},
"fax_number": 0,
"other_phone_1": {
"description": "string",
"number": 0,
"extension": 0
},
"other_phone_2": {
"description": "string",
"number": 0,
"extension": 0
},
"name": "string",
"att": "string",
"address": {
"line1": "string",
"city": "string",
"zipcode": "string",
"country_code": "string"
},
"language_code": "string",
"website_url": "string",
"term_code": 0,
"shipping_code": 0,
"sales_rep_code": 0,
"territory_code": 0,
"invoice_to_number": 0,
"account_receivable_number": 0,
"project_number": 0,
"discount_allowed": true,
"discount_code": 0,
"margin_limit": 0,
"order_allowed": true,
"withdrawal_allowed": true,
"over_counter_customer": true,
"price_change_allowed": true,
"bo_allowed": true,
"interest_rate": 0,
"banking_info": {
"institution_number": "string",
"branch_number": "string",
"account_number": "string"
},
"taxes": {
"tax_group": "string",
"exemptions": []
},
"preferences": {
"send_statement_by_email": true,
"send_invoice_by_email": true
},
"metadata": {
"comment": "string",
"show_comment": true,
"print_comment_in_transactions": true
},
"active": true,
"reference_dates": [
{
"index": 0,
"description": "string",
"date": "2019-08-24T14:15:22.123Z"
}
],
"reference": {
"term_id": 0,
"shipping_id": 0,
"sales_rep_id": 0,
"territory_id": 0,
"invoice_to_id": 0,
"project_id": 0,
"tax_group_id": 0,
"margin_type_id": 0,
"price_level_id": 0,
"statement_type_id": 0,
"sort_key": "string"
},
"number": "string"
}'