Addresses
Get All Addresses
This endpoint retrieves all addresses associated to current user.
HTTP Request
GET /v1/addresses
Query Parameters
Parameter | Default | Description |
---|---|---|
page | 1 | The current page |
count | 30 | The number of items per page |
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/addresses' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
[
{
"id": 2531,
"firstname": "Sherlock",
"lastname": "Holmes",
"company": "Sherlock Holmes Investigation Ltd.",
"street1": "221b Baker Street",
"street2": null,
"city": "Londres",
"zipcode": "AB10 1",
"country": "ROYAUME-UNI",
"phone": "+44 132 456 798",
"email": "email@domain.tld",
"vat_number": null,
"detail": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"reference": "My reference"
},
{
"id": 1429,
"firstname": "Astérix",
"lastname": "Obelix",
"company": "La Gauloise du Sanglier",
"street1": "Village insoumis",
"street2": null,
"city": "Armorique",
"zipcode": "59000",
"country": "GAULE",
"phone": "02 34 56 78 91",
"email": "email@domain.tld",
"vat_number": null,
"detail": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"reference": "My reference"
}
]
Get a Specific Address
This endpoint retrieves a specific address.
HTTP Request
GET /v1/addresses/{id}
URL Parameters
Parameter | Description |
---|---|
id | The id of the address to retrieve |
info
You can't get a specific address that you don't own.
Example
- Request
- Response
$ curl --request GET --url 'https://app.winesitting.com/v1/addresses/2531' \
--header 'AccessKey: YourAccessKey' \
--header 'SecretKey: YourSecretKey' \
--header 'content-type: application/json'
{
"id": 2531,
"firstname": "Sherlock",
"lastname": "Holmes",
"company": "Sherlock Holmes Investigation Ltd.",
"street1": "221b Baker Street",
"street2": null,
"city": "Londres",
"zipcode": "AB10 1",
"country": "ROYAUME-UNI",
"phone": "+44 132 456 798",
"email": "email@domain.tld",
"vat_number": null,
"detail": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"reference": "My reference"
}