Atendimentos

Veja como obter um atendimento.

Obter Atendimento

GET

https://myturn.com.br/api/public/v1/stores/:store_id/customer_services/:id

Headers

Header NameHeader Value
Content-Typeapplication/json
AuthorizationBearer [SEU TOKEN]

URL Params

Param NameParam Value TypeParam Example
store_idInteger1
idInteger1
includedArrayseller

Inclusões Suportadas

Included Name
seller
service-details
no-conversion-reason

Exemplo de inclusão:

https://myturn.com.br/api/public/v1/stores/:store_id/customer_services?included[]=seller&included[]=service-details

Response Payload

{
  "data": {
    "id": "1",
    "type": "customer-services",
    "attributes": {
      "converted": true,
      "no-conversion-reason": null,
      "service-details": [
        {
          "id": 1,
          "title": "Cliente veio pela campanha online",
          "created-at": "2025-05-20T15:20:45.195-03:00",
          "updated-at": "2025-05-20T15:20:45.195-03:00"
        }
      ],
      "seller": {
        "id": 1,
        "name": "Bruno",
        "email": "[email protected]",
        "phone-number": "(31) 99999-9999",
        "created-at": "2025-07-20T11:45:13.766-03:00",
        "updated-at": "2025-07-20T11:45:13.770-03:00",
        "photo-url": "/rails/active_storage/representations/redirect/photo.png"
      },
      "amount-cents": 50000,
      "finished-at": "2025-08-04T18:00:09.432-03:00",
      "duration-seconds": 1140,
      "created-at": "2025-08-04T17:41:09.432-03:00",
      "updated-at": "2025-08-04T17:41:09.436-03:00",
    }
  }
}