Skip to main content
POST
/
pouch
/
{pouchId}
/
checkout
cURL
curl --request POST \
  --url https://api.steamgold.dev/v1/pouch/{pouchId}/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "name": "<string>",
  "phone": "<string>",
  "comment": "<string>",
  "delivery": {
    "type": "door",
    "rates": {
      "tariff_code": 123,
      "tariff_name": "<string>",
      "tariff_description": "<string>",
      "delivery_mode": 123,
      "period_min": 123,
      "period_max": 123,
      "delivery_sum": 123
    },
    "address": {
      "name": "<string>",
      "postal_code": "<string>",
      "country_code": "<string>",
      "city": "<string>",
      "city_code": 123,
      "type": "<string>",
      "have_cashless": true,
      "have_cash": true,
      "allowed_cod": true,
      "is_dressing_room": true,
      "code": "<string>",
      "address": "<string>",
      "work_time": "<string>",
      "location": [
        123
      ],
      "position": [
        123
      ],
      "kind": "<string>",
      "precision": "<string>",
      "formatted": "<string>"
    }
  }
}
'
{
  "code": 200,
  "paymentId": "payment_12345",
  "paymentUrl": "<string>",
  "message": "Payment initiated"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pouchId
string
required

ID корзины

Body

application/json
email
string<email>

Email покупателя

name
string

Имя покупателя

Maximum string length: 200
phone
string

Телефон покупателя

Maximum string length: 50
comment
string

Комментарий к заказу

Maximum string length: 1000
delivery
object

Информация о доставке из CDEK виджета

Response

Оплата успешно инициирована

code
integer
Example:

200

paymentId
string

ID платежа

Example:

"payment_12345"

paymentUrl
string

Ссылка на оплату

message
string
Example:

"Payment initiated"