User address
5 routes. Paths are relative to https://api.intersink.com/v1.
- GET/useraddressFetch All My Addresses
- POST/useraddressCreate My Address
- GET/useraddress/{id}Fetch One Of My Addresses
- POST/useraddress/delete/{id}Delete My Address
- POST/useraddress/update/{id}Update My Address
Fetch All My Addresses
GET/useraddress
Needs a signed-in user (Bearer token or access_token cookie).
Response
200. data is object[].
Create My Address
POST/useraddress
Needs a signed-in user (Bearer token or access_token cookie).
Request body application/json or multipart/form-data
| Field | Type | Description |
|---|---|---|
| firstnamerequired | string | At most 100 characters. |
| lastname | string | At most 100 characters. |
| mobile | string | Example: "+447700900123" |
| company | string | At most 150 characters. |
| landmark | string | At most 255 characters. |
| address_1required | string | At most 255 characters. |
| address_2 | string | At most 255 characters. |
| city | string | At most 100 characters. |
| pincode | string | Example: "SW1A 1AA" |
| country | number | country.id (integer) Minimum 1, maximum 2147483647. |
| zone | string | At most 100 characters. |
| area | string | At most 100 characters. |
| type | string | One of: "home", "work", "billing", "shipping", "other". |
Response
201. The payload in data is not described in the spec yet. Personal address created
Fetch One Of My Addresses
GET/useraddress/{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 of type object.
Delete My Address
POST/useraddress/delete/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Response
201. The payload in data is not described in the spec yet.
Update My Address
POST/useraddress/update/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Request body application/json or multipart/form-data
| Field | Type | Description |
|---|---|---|
| firstname | string | At most 100 characters. |
| lastname | string | At most 100 characters. |
| mobile | string | Example: "+447700900123" |
| company | string | At most 150 characters. |
| landmark | string | At most 255 characters. |
| address_1 | string | At most 255 characters. |
| address_2 | string | At most 255 characters. |
| city | string | At most 100 characters. |
| pincode | string | Example: "SW1A 1AA" |
| country | number | country.id (integer) Minimum 1, maximum 2147483647. |
| zone | string | At most 100 characters. |
| area | string | At most 100 characters. |
| type | string | One of: "home", "work", "billing", "shipping", "other". |
Response
201. The payload in data is not described in the spec yet.