Merchant API//
- Update a charge
List charges
Fetch a charge
Capture a charge
Cancel a charge
Update a charge
Update a charge.
Security
bearerAuth or basicAuth
Fields to update on a charge.
- Mock serverhttps://docs.resolvepay.com/_mock/merchant-api/openapi/charges/{charge_id}
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/charges/{charge_id}
curl -i -X PUT \
'https://docs.resolvepay.com/_mock/merchant-api/openapi/charges/{charge_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 1000,
"invoice_url": "https://example.com/invoice.pdf",
"order_number": "5055",
"po_number": "PO-555",
"metadata": {
"source": "checkout"
},
"user_id": "usr_123",
"captured": true,
"canceled": false
}'An object representing a charge.
URL of the invoice document associated with this charge.
Example:"https://example.com/invoice.pdf"
Payment terms associated with the charge.
Enum:"due_upon_receipt""net7""net10""net10th""net15""net20""net30""net45""net60""net75"
Example:"net30"
Response
{ "id": "PMMlaE5wbg0", "amount": 1000, "customer_id": "X50sgfRd", "amount_refunded": 0, "canceled": false, "canceled_at": null, "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, "fee_refunded": 0 }