/
Cancel a payout
Возможна, только пока заявку не взял исполнитель (waiting_trader). Заявка уходит в fail с cancelled_by_merchant, средства возвращаются.
Безопасность
apiKeyAuth
- Mock serverhttps://b2b-app.lumowallet.io/_mock/apis/payouts/{id}/cancel
- Productionhttps://b2b.lumowallet.io/payouts/{id}/cancel
- Staginghttps://b2b-staging.lumowallet.io/payouts/{id}/cancel
curl -i -X POST \
'https://b2b-app.lumowallet.io/_mock/apis/payouts/{id}/cancel' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Cancelled
Enum:"timeout""no_traders""bank_not_exists""requisites_invalid""trader_declined""dispute_lost""cancelled_by_admin""cancelled_by_merchant""service_unavailable""other"
Момент возврата средств. Единственный признак того, что деньги вернулись, — ориентируйтесь на него, а не на статус fail.
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "status": "pending", "amountRub": 12000, "chargedUsdt": 147.71, "rate": 81.24, "requisiteType": "card", "requisite": "string", "bankId": "string", "bank": "string", "recipientFirstName": "string", "recipientLastName": "string", "failReason": "timeout", "comment": "string", "refundedAt": "2019-08-24T14:15:22Z", "dispute": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "open", "resolution": "user_won", "comment": "string", "openedAt": "2019-08-24T14:15:22Z", "resolvedAt": "2019-08-24T14:15:22Z" }, "takenAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }