POST/v1/refunds
Refunds a charge, in full or in part. The money goes back to the original payment method.
Parameters
- charge
- string, required. The charge to refund.
- amount
- integer, optional. Cents. Defaults to the full charge.
- reason
- string, optional. Shown on the receipt.
Request
curl https://api.harbor.dev/v1/refunds \ -H "Authorization: Bearer $HARBOR_KEY" \ -d charge=ch_8Kq2Vd \ -d amount=1250
Response, 201
{
"id": "re_3Lw9Xa",
"charge": "ch_8Kq2Vd",
"amount": 1250,
"status": "pending"
}