Logo PopinaPopina API

Get a customer

Get a customer based on the id provided.

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

Use device JWT token

In: header

Path Parameters

idstring

Customer id

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "http://localhost:4012/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "9f8e7d6c-5b4a-4c2d-8e0f-9a8b7c6d5e4f",
  "type": "person",
  "createdAt": "2023-10-01T12:00:00.000Z",
  "updatedAt": "2023-10-01T12:00:00.000Z",
  "birthDate": "1996-06-07T02:13:04.522Z",
  "phoneNumber": "+33123456789",
  "comment": "Lorem ipsum dolor sit",
  "firstName": "Jensen",
  "lastName": "Daniel",
  "email": "",
  "addresses": [
    {
      "id": "e7d6c5b4-3a2f-4e0d-9c8b-7a6f5e4d3c2b",
      "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"
    }
  ],
  "balances": [
    {
      "locationId": "d6c5b4a3-2f1e-4d9c-8b7a-6f5e4d3c2b1a",
      "locationName": "Main Restaurant",
      "balance": 5000
    }
  ]
}
{
  "message": "string",
  "code": "INSUFFICIENT_BALANCE",
  "meta": {
    "property1": null,
    "property2": null
  }
}
{
  "message": "string",
  "code": "INSUFFICIENT_BALANCE",
  "meta": {
    "property1": null,
    "property2": null
  }
}