curl --request POST \
--url https://api.every.ru/b2b/esim/order/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 1234567890,
"status": "paid"
}
'{
"order": {
"id": 1234567890,
"country": "RU",
"packet": 1234567890,
"count": 1,
"created_at": "2023-12-01T10:30:00Z",
"expired_at": "2023-12-08T10:30:00Z",
"status": "inited"
},
"esim": {
"iccid": "89882470000012345678",
"name": "US.1",
"smdp": "https://smdp.example.com",
"activation": "LPA:1$smdp.example.com$1234567890",
"provisioned_at": "2023-12-01T10:35:00Z"
}
}Завершает заказ, устанавливая его статус в ‘paid’ или ‘canceled’.
Для статуса ‘canceled’:
Для статуса ‘paid’:
curl --request POST \
--url https://api.every.ru/b2b/esim/order/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": 1234567890,
"status": "paid"
}
'{
"order": {
"id": 1234567890,
"country": "RU",
"packet": 1234567890,
"count": 1,
"created_at": "2023-12-01T10:30:00Z",
"expired_at": "2023-12-08T10:30:00Z",
"status": "inited"
},
"esim": {
"iccid": "89882470000012345678",
"name": "US.1",
"smdp": "https://smdp.example.com",
"activation": "LPA:1$smdp.example.com$1234567890",
"provisioned_at": "2023-12-01T10:35:00Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.