Перейти к основному содержанию
GET
/
v1
/
crm
/
requests
/
{request_id}
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/requests/{request_id}/
{
  "id": 123,
  "services": [
    {
      "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
    }
  ],
  "actions": [
    {
      "id": 123,
      "user": 123,
      "created_at": "2023-11-07T05:31:56Z",
      "type": 0,
      "inventories": [
        123
      ]
    }
  ],
  "discount_type": 123,
  "status_color": "exceed",
  "pending_inventories": 123,
  "inrent_inventories": 123,
  "completed_inventories": 123,
  "bonus_max": "<string>",
  "bonus_used": "<string>",
  "bonus_available": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "rent_start": "2023-11-07T05:31:56Z",
  "rent_end": "2023-11-07T05:31:56Z",
  "status": 0,
  "plus_id": 0,
  "unique_id": "<string>",
  "rent_fact_start": "2023-11-07T05:31:56Z",
  "rent_fact_end": "2023-11-07T05:31:56Z",
  "autorenewal": true,
  "autowithdraw": true,
  "duriation": "<string>",
  "initial_duriation": "<string>",
  "counting_duration": "<string>",
  "price": "<string>",
  "price_discount": "<string>",
  "price_inventory": "<string>",
  "price_inventory_discount": "<string>",
  "price_service": "<string>",
  "price_service_discount": "<string>",
  "price_delivery": "<string>",
  "price_referral": "<string>",
  "tax_percent": "<string>",
  "tax_included": true,
  "price_tax": "<string>",
  "discount_amount": "<string>",
  "discount_inventory_amount": "<string>",
  "discount_service_amount": "<string>",
  "discount_combine": true,
  "additional_discount": "<string>",
  "payment_status": 0,
  "paid_amount": "<string>",
  "time_exceed": true,
  "penalty_amount": "<string>",
  "penalty_auto": "<string>",
  "penalty_custom": "<string>",
  "penalty_duriation": "<string>",
  "penalty_step_duriation": "<string>",
  "penalty_disabled": true,
  "extra": "<unknown>",
  "deleted": true,
  "active": true,
  "tenant": 123,
  "client": 123,
  "discount": 123,
  "rental_point": 123,
  "rental_point_return": 123,
  "bag": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "default_tarif_period": 123
}

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

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

Ответ

200 - application/json
id
integer
обязательно
services
object[]
обязательно
actions
object[]
обязательно
discount_type
integer
обязательно
status_color
enum<string>
обязательно
  • exceed - exceed
  • request - Запрос
  • reserve - reserve
  • inrent - В аренде
  • cancel - cancel
  • completed - Завершено
  • debtor - Должник
Доступные опции:
exceed,
request,
reserve,
inrent,
cancel,
completed,
debtor
pending_inventories
integer
обязательно
inrent_inventories
integer
обязательно
completed_inventories
integer
обязательно
bonus_max
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
bonus_used
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
bonus_available
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
rent_start
string<date-time>
обязательно
rent_end
string<date-time>
обязательно
status
enum<integer>
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
Требуемый диапазон: 0 <= x <= 32767
plus_id
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
unique_id
string | null
Maximum string length: 64
rent_fact_start
string<date-time> | null
rent_fact_end
string<date-time> | null
autorenewal
boolean
autowithdraw
boolean
duriation
string | null
initial_duriation
string | null
counting_duration
string | null
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_inventory
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_inventory_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_service
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_service_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_delivery
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_referral
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
tax_percent
string<decimal>
Pattern: ^-?\d{0,3}(?:\.\d{0,2})?$
tax_included
boolean
price_tax
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_inventory_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_service_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_combine
boolean
additional_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
payment_status
enum<integer>
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
paid_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
time_exceed
boolean
penalty_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_auto
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_custom
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
penalty_duriation
string | null
penalty_step_duriation
string
penalty_disabled
boolean
extra
any
deleted
boolean
active
boolean
tenant
integer
client
integer | null
discount
integer | null
rental_point
integer | null
rental_point_return
integer | null
bag
string<uuid> | null
default_tarif_period
integer | null