Добавлен адаптер к tbank и формирование ссылки на оплату
This commit is contained in:
+6
-5
@@ -12,15 +12,16 @@ grant_type=client_credentials&client_id={{client_id}}&client_secret={{client_sec
|
||||
GET {{base_url}}/v2/orders?cdek_number=10240410458
|
||||
Authorization: Bearer {{auth_token}}
|
||||
|
||||
### 3. Регистрация заказа (тип "доставка", до двери)
|
||||
POST {{base_url}}/v2/orders
|
||||
Authorization: Bearer {{auth_token}}
|
||||
### 3. Инициализация оплаты доставки
|
||||
POST http://localhost:8000/api/v1/delivery/init-payment
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"order_uuid": "order-uuid-1",
|
||||
"price": 125000,
|
||||
"type": 2,
|
||||
"tariff_code": 535,
|
||||
"comment": "Тестовый заказ",
|
||||
"comment": "Тестовая оплата доставки",
|
||||
"sender": {
|
||||
"name": "Петр Петров",
|
||||
"email": "sender@example.com",
|
||||
@@ -58,7 +59,7 @@ Content-Type: application/json
|
||||
}
|
||||
|
||||
> {%
|
||||
client.global.set("order_uuid", response.body.entity.uuid);
|
||||
client.global.set("payment_url", response.body.payment_url);
|
||||
%}
|
||||
|
||||
### 5. Список доступных тарифов
|
||||
|
||||
Reference in New Issue
Block a user