Перейти к основному содержанию
GET
/
v1
/
shared
/
auth
/
profile
/
orders
cURL
curl --request GET \
  --url https://api.example.com/v1/shared/auth/profile/orders/
[
  {
    "id": 123,
    "rent_start": "2023-11-07T05:31:56Z",
    "rent_end": "2023-11-07T05:31:56Z",
    "delivery_address": "<string>",
    "delivery_address_return": "<string>",
    "reviews_cnt": 123,
    "price": "<string>",
    "price_discount": "<string>",
    "status": 0,
    "payment_status": 0,
    "time_exceed": true,
    "penalty_amount": "<string>",
    "additional_discount": "<string>",
    "paid_amount": "<string>",
    "discount_amount": "<string>",
    "products": [
      "<unknown>"
    ],
    "bag": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]

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

delivery
boolean
payment_status__in
integer[]

Несколько значений могут быть разделены запятыми.

status__in
integer[]

Несколько значений могут быть разделены запятыми.

Ответ

200 - application/json
id
integer
обязательно
rent_start
string<date-time>
обязательно
rent_end
string<date-time>
обязательно
delivery_address
string
обязательно
delivery_address_return
string
обязательно
reviews_cnt
integer
обязательно
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
price_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
status
enum<integer>
  • 0 - Запрос
  • 1 - Забронировано
  • 2 - В аренде
  • 3 - Отменено
  • 4 - Завершено
  • 5 - Должник
Доступные опции:
0,
1,
2,
3,
4,
5
Требуемый диапазон: 0 <= x <= 32767
payment_status
enum<integer>
  • 0 - Ожидается оплата
  • 1 - Оплата произведена
  • 2 - Частичная оплата
Доступные опции:
0,
1,
2
Требуемый диапазон: 0 <= x <= 32767
time_exceed
boolean
penalty_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
additional_discount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
paid_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
discount_amount
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
products
any[]
bag
string<uuid> | null