order_id: The ID of the order. - You can take it from /orders response.data.order_idfop_type (string): The form of payment used for the transaction.currency (string): The currency in which the payment is made.total_amount (string): The total amount of the payment.u_psp_id (number): required param ONLY for b2c - unique identificator, you can take value from response {{url}}/api/air/orders where response.data.payment_methods[X].u_psp_id{
"fop_type": "cash",
"currency": "RUB",
"total_amount": "132933.7"
}
status (string): The status of the payment request.payload.status (string): The status of the payment transaction.{
"status": "ok",
"payload": {
"status": "ok"
}
}
curl --location -g --request POST 'https://stage-api.etm-system.ru/api/air/orders/{{order_id}}/payment' \
--header 'Accept: application/json' \
--header 'Etm-Auth-Key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"currency": "RUB",
"fop_type": "cash",
"total_amount": "17665"
}'{
"status": "ok",
"payload": {
"status": "ok"
}
}