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"
}
Create a Refund
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"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
OK
The refund
object.
Was this page helpful?