- Creates a refund proposal
Returns a refund for the given payment, if there is one
Creates a refund proposal
As a merchant you can only propose refunds; it is ultimately the buyer's decision to either accept or reject it (within a reasonable timeframe).
The following rules apply when proposing a refund:
Refunds must be enabled for your merchant account.
There can only be one active refund per payment. A new proposal is only allowed if the previous one was rejected.
The proposed amount must be at least
0.01and cannot exceed the original payment total.Refunds are not allowed for payments older than 3 months.
Offramp payments cannot be refunded.
A proposal that the buyer does not accept expires after 30 days, after which its status becomes
expired.
Security
ApiKey
- Developmenthttps://docs.xmoney.com/_mock/crypto_api/reference/stores/refund/{payment_id}
- Production server (live)https://merchants.api.crypto.xmoney.com/api/stores/refund/{payment_id}
- Sandbox server (test)https://merchants.api.sandbox.crypto.xmoney.com/api/stores/refund/{payment_id}
curl -i -X POST \
'https://docs.xmoney.com/_mock/crypto_api/reference/stores/refund/{payment_id}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/vnd.api+json' \
-d '{}'Response
{ "data": { "id": "payment-c8d65cc2-0c82-429a-95ea-3f65011fc2cc", "type": "refunds", "attributes": { … } } }