Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

User address

5 routes. Paths are relative to https://api.intersink.com/v1.

All groups

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

FieldTypeDescription
firstnamerequiredstringAt most 100 characters.
lastnamestringAt most 100 characters.
mobilestringExample: "+447700900123"
companystringAt most 150 characters.
landmarkstringAt most 255 characters.
address_1requiredstringAt most 255 characters.
address_2stringAt most 255 characters.
citystringAt most 100 characters.
pincodestringExample: "SW1A 1AA"
countrynumbercountry.id (integer) Minimum 1, maximum 2147483647.
zonestringAt most 100 characters.
areastringAt most 100 characters.
typestringOne 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

NameTypeDescription
idrequiredstring, 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

NameTypeDescription
idrequiredstring, 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

NameTypeDescription
idrequiredstring, path

Request body application/json or multipart/form-data

FieldTypeDescription
firstnamestringAt most 100 characters.
lastnamestringAt most 100 characters.
mobilestringExample: "+447700900123"
companystringAt most 150 characters.
landmarkstringAt most 255 characters.
address_1stringAt most 255 characters.
address_2stringAt most 255 characters.
citystringAt most 100 characters.
pincodestringExample: "SW1A 1AA"
countrynumbercountry.id (integer) Minimum 1, maximum 2147483647.
zonestringAt most 100 characters.
areastringAt most 100 characters.
typestringOne of: "home", "work", "billing", "shipping", "other".

Response

201. The payload in data is not described in the spec yet.