Accounts
Update account addresses
Update primary or secondary language addresses for a given account
post/accounts/update-additional-fields/{id}
Path parameters
idinteger required
Example:77
ID of the account to update
Request body
Example request
{
"tax_number": "300123456700003",
"additional_id_type": 1,
"additional_id_value": "CR-123456789",
"address": "King Fahd Road, Building 12",
"address2": "Office 202",
"zip": "12271",
"city": "Riyadh",
"country_id": 682,
"state": "Riyadh Province",
"street_name": "King Fahd Road",
"additional_street_name": "Olaya District",
"building_number": "B12",
"address_additional_number": "Unit 5",
"district_neighborhood": "Al Olaya",
"address_type": "primary_language_address"
}Response
Account has been updated
Example response
{
"message": "Account has been updated.",
"account": {
"id": 77,
"organization_id": "0003",
"name": "Tesla Inc.",
"account_label": "Tesla (SAR)",
"account_full_name": "Tesla - Saudi Arabia",
"description": "Leading EV manufacturer",
"account_data": "Tesla Riyadh Office",
"system_account": "no",
"account_type_id": 15,
"account_type": "Third Party",
"number": "ACC-001",
"currency_id": 194,
"currency": "SAR",
"model_id": 2,
"member_id": 1,
"model_name": "Company",
"model_type": "client",
"tax_number": "300123456700003",
"additional_id_type": 1,
"additional_id_value": "CR-123456789",
"address": "King Fahd Road, Building 12",
"address2": "Office 202",
"zip": "12271",
"city": "Riyadh",
"country_id": 682,
"state": "Riyadh Province",
"street_name": "King Fahd Road",
"additional_street_name": "Olaya District",
"building_number": "B12",
"address_additional_number": "Unit 5",
"district_neighborhood": "Al Olaya",
"organization": {
"id": "0003",
"name": "ZATCA Riyadh",
"country": "SA",
"city": "Riyadh",
"state": "Riyadh",
"zip": "12271"
},
"client": {
"id": "00000002",
"discount_percentage": "0.000",
"phone": "+966112233445",
"mobile": "+966512345678",
"emails": [
"info@tesla.com"
],
"member_label": "COM00000001"
}
}
}