Песочница
Step02 Mark Order Acquiring Payment Failed
[POST] /medusa/v1.0/sandbox/mark_order_acquiring_payment_failed
Ошибка при оплате
Request
{
"orderExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step02 Mark Order Paid By Acquirerы
[POST] /medusa/v1.0/sandbox/mark_order_paid_by_acquirer
Успешно провести шаг оплаты покупателем
Request
{
"orderExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step03A Proceed Service Payout To Recipient
[POST] /medusa/v1.0/sandbox/proceed_service_payout_to_recipient
Успешно провести выплату получателю
Request
{
"serviceExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step03B Proceed Refund
[POST] /medusa/v1.0/sandbox/proceed_refund
Успешно провести возврат
Request
{
"serviceExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step04 Proceed Service Payout Commission
[POST] /medusa/v1.0/sandbox/proceed_service_payout_commission
Произвести удержание комиссии за выплату
Request
{
"serviceExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step05 Proceed Acquiring Commission
[POST] /medusa/v1.0/sandbox/proceed_acquiring_commission
Произвести удержание комиссии за эквайринг
Request
{
"orderExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step06 Move Platform Commission To Commission Account
[POST] /medusa/v1.0/sandbox/move_platform_commission_to_commission_account
Перевести комиссию платформы на счет для комиссии
Request
{
"orderExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Step07 Proceed Platform Commission
[POST] /medusa/v1.0/sandbox/proceed_platform_commission
Перевести комиссию платформы на расчетный счет
Request
{
"orderExtId": "string"
}
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful Response
{
"Data": {
"result": "string"
},
"Links": {
"self": "string"
},
"Meta": {
"totalPages": "integer"
}
}
Bad Request
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
401 Unauthorized
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Forbidden
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Not Found
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}
Server error
{
"code": "string",
"id": "string",
"message": "string",
"Errors": [
{
"errorCode": "string",
"message": "string",
"url": "string"
}
]
}