Logo PopinaPopina API

Get an address

Get an address based on the id provided.

GET/v1/addresses/{id}
authorization<token>

Use device JWT token

In: header

Path Parameters

idstring

Address id

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:4012/v1/addresses/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "003b9759-320d-44db-98d4-d37a17c84b0c",
  "address1": "12 Avenue des Champs-Élysées",
  "address2": "3ème étage",
  "city": "Paris",
  "country": "France",
  "zipCode": "75008",
  "regionCode": "IDF",
  "isPrimary": true,
  "type": "shipping",
  "createdAt": "2023-10-01T12:00:00.000Z",
  "updatedAt": "2023-10-01T12:00:00.000Z",
  "customerId": "abcdef01-2345-6789-abcd-ef0123456789"
}
{
  "message": "string",
  "code": "INSUFFICIENT_BALANCE",
  "meta": {
    "property1": null,
    "property2": null
  }
}
{
  "message": "string",
  "code": "INSUFFICIENT_BALANCE",
  "meta": {
    "property1": null,
    "property2": null
  }
}