Skip to main content

Update Address

HTTP Request

PUT https://commerce.zoho.com/store/api/v1/salesorders/{order_id}/address/{address_type} 

 

OAuthScope

ZohoCommerce.salesorders.UPDATE

 

Address Types

TypeDescription
billingTo update the billing address
shippingTo update the shipping address

Body Parameters

ParameterDescription
attention*string: Name of the person, whose attention is required.
address*string: Name of the street of the customerʼs billing address.
city*string: Name of the city of the customerʼs billing address
state* string: Name of the state of the customer's billing address.
zip*string: ZIP code of the customerʼs billing address.
country*string: Name of the country of the customerʼs billing address.
faxstring: Fax number of the customerʼs billing address.
phone*string: Phone number of the customer.

 

Request Example

Copiedcurl -i -L -X PUT
-H "Authorization:Zoho-oauthtoken ***"
-H "X-com-zoho-store-organizationid:58927961"
-H "Content-Type:application/json"
-d
'{"attention":"","address":"f1","city":"Tuscon","state":"WashingtonDC","zip":"12345","country":"U.S.A.","fax":""}'
'https://commerce.zoho.com/store/api/v1/salesorders/51128000000096032/address/billing'

Success Response

Copied{
"code": 0,
"message": "Billing address updated",
"billing_address":{
"address": "f1",
"street2": "",
"city": "Tuscon",
"state": "WashingtonDC",
"zip": "12345",
"country": "U.S.A.",
"fax": "",
"phone": "09629625667",
"attention": "",
"is_one_off_address": true,
"is_update_customer": ""
}
}

Failure Response

Copied{
"code": 1002,
"message": "Sales Order does not exist."
}
Use this API to update addresses of your sales order.