put https://api.zenoti.com/v1/guests//accounts//billing_address
Purpose: Use this API to update the billing address of the guest from the guest profile while saving a new card.
You must provide a unique identifier for the guest_id and the account_id.
billing_address Object
| Name | Type | Description |
|---|---|---|
| name | string | Name of the guest for whom the address is being updated. |
| address | string | The address line 1 of the guest. |
| address2 | string | The address line 2 of the guest. |
| city | string | The city where the guest resides. |
| zipcode | string | The zipcode of the guest's residence. |
| country | string | The country where the guest resides. |
| state | string | The state where the guest resides. |
error object
| Message | Code | Description |
|---|---|---|
| Please enter a valid PIN Code | 932 | This error appears when an invalid zipcode is passed in the request. |
| Please enter a valid Billing Address | 932 | This error appears when an invalid address is passed in the request. |
| Empty billing_address | 502 | This error appears when the billing_address object is empty. |
| Empty processor_id | 502 | This error appears when the processor_id is empty. |
| Payment Account with id 00000000-0000-0000-0000-000000000000 not found. | 439 | This error appears when the account id is invalid. |
| Invalid guest_id | 502 | This error appears when the guest_id is invalid. |
| Invalid center_id | 502 | This error appears when the center_id is invalid. |
| Empty center_id | 502 | This error appears when the center_id is invalid. |
| Invalid request | 502 | This error appears when the request is invalid. |
