Перейти к основному содержанию
GET
/
v1
/
crm
/
requests
/
{request_id}
/
services
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/requests/{request_id}/services/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "service": {
        "id": 123,
        "tarifs": [
          {
            "id": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "updated_at": "2023-11-07T05:31:56Z",
            "service": 123,
            "name": "<string>",
            "price": "<string>",
            "one_time_payment": true,
            "published": true,
            "tenant": 123,
            "duriation": 123
          }
        ],
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "disabled": 0,
        "name": "<string>",
        "type": 0,
        "unique_id": "<string>",
        "bonus": "<string>",
        "extra": "<unknown>",
        "slug": "<string>",
        "published": true,
        "price": "<string>",
        "image": "<string>",
        "deleted": true,
        "deleted_at": "2023-11-07T05:31:56Z",
        "tenant": 123,
        "category": 123,
        "discount": 123
      },
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "tarif_price": "<string>",
      "tarif_duration": "<string>",
      "start_at": "2023-11-07T05:31:56Z",
      "end_at": "2023-11-07T05:31:56Z",
      "price": "<string>",
      "price_tax": "<string>",
      "price_discount": "<string>",
      "info": "<string>",
      "extra": "<unknown>",
      "tenant": 123,
      "request": 123,
      "client": 123,
      "request_inventory": 123,
      "worker": 123,
      "tarif": 123
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры пути

request_id
integer
обязательно

Параметры запроса

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"