curl --location -g --request PATCH 'https://relay.exostack.cloud//api/customers/' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "string",
"name": "string",
"sort_key": "string",
"care_of": "string",
"opening_date": "2019-08-24T14:15:22.123Z",
"address": {
"line1": "string",
"city": "string",
"postal_code": "string",
"country_code": "st"
},
"phones": [
{
"type": "string",
"number": "string",
"extension": "string",
"description": "string"
}
],
"emails": [
{
"type": "string",
"address": "string"
}
],
"website_url": "string",
"language_id": 0,
"payment_term_code": 0,
"shipping_code": 0,
"sales_rep_code": 0,
"territory_code": 0,
"invoice_to_code": "string",
"project_code": "string",
"discount_allowed": true,
"discount_code": 0,
"receivable_account_id": 0,
"margin_type_id": 0,
"margin_limit": 0,
"price_level_id": 0,
"statement_type_id": 0,
"interest_rate": 0,
"permissions": {
"order_allowed": true,
"withdrawal_allowed": true,
"over_counter_customer": true,
"price_change_allowed": true,
"backorder_allowed": true,
"discount_taxes_shipping": true
},
"banking": {
"institution_number": "str",
"branch_number": "strin",
"account_number": "string"
},
"tax_group_code": "string",
"tax_exemptions": [
{
"index": 1,
"tax_code": "string",
"exemption_number": "string"
}
],
"preferences": {
"send_statement_by_email": true,
"send_invoice_by_email": true
},
"comment": {
"text": "string",
"show_on_transaction": true,
"print_in_transactions": true
},
"reference_dates": [
{
"index": 1,
"description": "string",
"date": "2019-08-24T14:15:22.123Z"
}
],
"active": true
}'