Skip to main content
POST
/
cards
/
webhook
/
simulate
/
refund
curl -X POST "https://api.cryptomate.me/cards/webhook/simulate/refund" \
  -H "x-api-key: $CRYPTOMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "card_id": "aBcD1efGh2iJkL3mnOpQ4rStUvWxYz56",
    "bill_amount": 100.00
  }'
{
  "code": "NOT_FOUND",
  "message": "Cleared transaction not found for card aBcD1efGh2iJkL3mnOpQ4rStUvWxYz56"
}
Simulates a card refund webhook notification for testing. Refunds the most recently cleared transaction on the card. Available in non-production environments only. Requires an API key with access level 2 or higher.

Body

card_id
string
required
Card identifier to simulate the refund against.
bill_amount
number
required
Amount to refund in USD.

Response

Returns HTTP 201 with an empty body on success.
curl -X POST "https://api.cryptomate.me/cards/webhook/simulate/refund" \
  -H "x-api-key: $CRYPTOMATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "card_id": "aBcD1efGh2iJkL3mnOpQ4rStUvWxYz56",
    "bill_amount": 100.00
  }'
{
  "code": "NOT_FOUND",
  "message": "Cleared transaction not found for card aBcD1efGh2iJkL3mnOpQ4rStUvWxYz56"
}