Capture an authorized order. An order can be captured multiple times up to the full authorized amount.
Security
bearerAuth or basicAuth
Fields for capturing an authorized order.
Amount to capture in USD. Must not exceed the remaining authorized amount.
Example:500
Unique key to ensure idempotent capture requests.
Example:"capture-2024-001"
URL of the merchant invoice PDF. Provide either this or line_items, not both.
Example:"https://example.com/invoice.pdf"
- Mock serverhttps://docs.resolvepay.com/_mock/merchant-api/openapi/orders/{order_id}/capture
- Sandbox serverhttps://app-sandbox.resolvepay.com/api/orders/{order_id}/capture
curl -i -X POST \
'https://docs.resolvepay.com/_mock/merchant-api/openapi/orders/{order_id}/capture' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"amount": 500,
"idempotency_key": "capture-2024-001",
"number": "inv_100001",
"merchant_invoice_url": "https://example.com/invoice.pdf",
"line_items": [
{
"name": "Widget A",
"quantity": 2,
"unit_price": 50,
"sku": "ABC-123",
"total_price": 100,
"type": "product",
"tax_amount": 8.5
}
]
}'An object representing an order.
Remaining authorized amount available for capture in USD.
Example:500
Timestamp of the first capture event.
Example:"2024-01-15T10:00:00.000Z"
Timestamp when the order was last updated.
Example:"2024-01-15T10:00:00.000Z"
Response
{ "id": "ORDlaE5wbg0", "checkout_id": "CHKabc123", "number": "ord_100001", "po_number": "PO-555", "advance_requested": false, "source": "checkout", "status": "authorized", "amount_authorized": 1000, "amount_captured": 500, "amount_canceled": 0, "amount_remaining": 500, "first_captured_at": "2024-01-15T10:00:00.000Z", "line_items": [ { … } ], "authorization_expires_at": "2024-02-15T10:00:00.000Z", "authorization_expiry_source": "system", "capture_events": [ { … } ], "authorized_at": "2024-01-01T00:00:00.000Z", "updated_at": "2024-01-15T10:00:00.000Z", "customer": { "id": "X50sgfRd", "name": "Acme Corp", "remaining_credit": 5000 } }