Addresses
5 routes. Paths are relative to https://api.intersink.com/v1.
- GET/addressesFetch All Personal Addresses
- POST/addressesCreate A Business Address
- GET/addresses/{businessId}Fetch All Business Addresses for a specific business
- POST/addresses/delete/{id}Delete A Business Address
- POST/addresses/update/{id}Update A Business Address
Fetch All Personal Addresses
GET/addresses
Needs a signed-in user (Bearer token or access_token cookie).
Response
200. The payload in data is not described in the spec yet. List of personal addresses returned
Create A Business Address
POST/addresses
Needs a signed-in user (Bearer token or access_token cookie).
Request body application/json
| Field | Type | Description |
|---|---|---|
| business_id | string | Example: "uuid-of-business" |
| firstname | string | |
| lastname | string | |
| mobile | string | |
| company | string | |
| landmark | string | |
| address_1 | string | |
| address_2 | string | |
| city | string | |
| pincode | string | |
| country | object | |
| zone | string | |
| area | string | |
| location | object | |
| type | string | |
| file | object | Upload proof image/pdf |
Response
201. The payload in data is not described in the spec yet. Address created successfully
Fetch All Business Addresses for a specific business
GET/addresses/{businessId}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| businessIdrequired | string, path |
Response
200. The payload in data is not described in the spec yet. List of addresses returned
Delete A Business Address
POST/addresses/delete/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Response
200. The payload in data is not described in the spec yet. Address deleted successfully
Update A Business Address
POST/addresses/update/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Request body application/json
| Field | Type | Description |
|---|---|---|
| business_id | string | Example: "uuid-of-business" |
| firstname | string | |
| lastname | string | |
| mobile | string | |
| company | string | |
| landmark | string | |
| address_1 | string | |
| address_2 | string | |
| city | string | |
| pincode | string | |
| country | object | |
| zone | string | |
| area | string | |
| location | object | |
| type | string | |
| file | object | Upload proof image/pdf |
Response
200. The payload in data is not described in the spec yet. Address updated successfully