PATCH api/site/{id}/setbillingaddress
Set the billing address for the specified site. Search for the specific site, and then specify the ID of the site you want to set as the Billing address
Error Messages
- 401/Unauthorized - User need CP permission to change billing address - A CP login is required to change a billing address
- 404/Not found - Site with ID x not found - Specified ID is not assigned to a site
- 404/Not found - Billing address with id x not found - Specified ID is not assigned to a Billing Address
- 404/Not found - No company found for site with ID - Specifed ID is not assigned to a company
- 404/Not found - Billing address Id x is not valid for site with id y - The specified Billing Address ID is not compatible with the specified site ID
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | The unique identifier for the Site being queried. | integer |
Required |
Body Parameters
The id to set as billing address for the site
SiteBillingAddressName | Description | Type | Additional information |
---|---|---|---|
Id | The Site ID that will be the Billing Address | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1 }
application/xml, text/xml
Sample:
<SiteBillingAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/aBILLity.WebAPI.Models.Company"> <Id>1</Id> </SiteBillingAddress>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.