Atendimentos

Veja como listar atendimentos.

Listar Atendimentos

GET

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

Headers

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

URL Params

Param NameParam Value TypeParam Example
store_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
Esse endpoint suporta todos os filtros descritos na seção Filtros

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",
      }
    },
  ],
  "links": {
    "self": "https://myturn.com.br/api/public/v1/stores/1/customer_services?page=1&page_size=10",
    "first": "https://myturn.com.br/api/public/v1/stores/1/customer_services?page=1&page_size=10",
    "prev": null,
    "next": "https://myturn.com.br/api/public/v1/stores/1/customer_services?page=2&page_size=10",
    "last": "https://myturn.com.br/api/public/v1/stores/1/customer_services?page=2&page_size=10"
  },
  "meta": {
    "page": 1,
    "total-pages": 1,
    "total-items": 20
  }
}