curl --request POST \
  --url https://api.dots.dev/api/v2/refunds \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "payment_intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "reason": "duplicate",
  "metadata": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Response

200 - application/json
OK

The refund object.