Capture Payment
See the detailed API Reference for more information.
Why Capture Payment Matters
The Capture Payment call should be made by merchants when shipping an order. Capturing triggers the customer’s invoice, which reflects the payment terms selected at checkout.
Merchants can also perform a Partial Capture, which is particularly useful when:
- Orders are shipped in multiple deliveries.
- Only part of an order is fulfilled.
- Adjustments are needed without canceling or reprocessing the entire transaction.
Response Fields
- CapturedAmount – The total amount successfully captured in this API call.
- AuthorizedAmount – The full order amount as originally submitted during the Authorize call.
- RemainingAuthorizedAmount – The amount still available for capture after this request.
- CaptureNumber – A unique identifier for this capture in Riverty’s system. Required for refunds and subsequent operations. See Transaction Reference Numbers for more details.
Key Considerations
-
Reservation state
When Riverty receives an Authorize request, the final outcome is either accepted or rejected.- If accepted, the order is placed in a reserved state.
- The reservation is finalized only when a Capture or Cancel request is submitted.
- If no follow-up action occurs, the reservation will be automatically voided after 30 days.
-
Invoice numbers
Always provide your own unique reference in the invoiceNumber field. If omitted, Riverty will generate one for customer communication. Using inconsistent invoice numbers may cause confusion. -
Partial captures
For partial captures, you must include the specific order lines being captured in the request payload.
Example Request
{
"invoiceNumber": "Invoice123",
"orderDetails": {
"items": [
{
"imageUrl": "https://developer-sandbox.riverty.com/images/brown_wool_hat.jpg",
"quantity": 1,
"productId": "3323-BRN-M",
"vatAmount": 4.79,
"vatPercent": 19,
"description": "Woolen hat, brown, Size M",
"netUnitPrice": 25.21,
"grossUnitPrice": 30
},
{
"type": "ShippingFee",
"quantity": 1,
"productId": "SHIP",
"vatAmount": 0.8,
"vatPercent": 19,
"description": "Shipping",
"netUnitPrice": 4.2,
"grossUnitPrice": 5
}
],
"totalNetAmount": 29.41,
"totalGrossAmount": 35
}
}
Example Request
{
"captureNumber": "Invoice123",
"capturedAmount": 35,
"authorizedAmount": 185,
"remainingAuthorizedAmount": 150
}
FAQ
We support rounding differences. Please make sure that following applies:
- TotalGrossAmount equals the sums of grossUnitPrice * Quantity for all line items
- The rounding difference between grossUnitPrice and netUnitPrice + vatAmount may not be bigger then 1 Cent per quantity (e.g. you have a quantity of 2; we will allow a difference of 2 cents for grossUnitPrice versus netUnitPrice + vatAmount)
- Same rounding difference logic also applied for the totalNetAmount
You do not need to send in productUrl and imageUrl if they are already part of the Authorize request and the same product id is used
You can do multiple Partial Captures for the same order, as long as there is a balance left over in the Remaining Authorized Amount. Please make sure to send a unique invoiceNumber per capture.
Do you find this page helpful?