Charges
Cancel a charge
Cancel an existing charge.
post/charges/{charge_id}/cancel
Request
- Base URLhttps://app-sandbox.resolvepay.com/api
- Auth
- HTTP bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
charge_idstring required
ID of the charge to cancel
Response
An object representing a charge.
Example response
{
"id": "PMMlaE5wbg0",
"amount": 1000,
"customer_id": "X50sgfRd",
"captured": true,
"captured_at": "2020-01-02T00:00:00.730Z",
"created_at": "2020-01-01T00:00:00.730Z",
"invoice_url": "https://example.com/invoice.pdf",
"metadata": {
"source": "checkout"
},
"number": "ch_100001",
"terms": "net30",
"updated_at": "2020-01-02T00:00:00.730Z",
"merchant_invoice_id": "INabc123",
"order_number": "5055",
"po_number": "PO-555",
"fee": 25.5
}Changes
No recorded changes to this operation across all 1 revision of this API.