curl --request POST \
--url https://api.revolv3.com/api/Payments/capture/{paymentMethodAuthorizationId} \
--header 'Content-Type: application/json-patch+json' \
--data '{
"customerId": null,
"includeRawProcessorResponse": false,
"invoice": {
"merchantInvoiceRefId": null,
"orderProcessingChannel": null,
"amount": {
"currency": 1,
"value": 30.99
}
},
"dynamicDescriptor": null
}'
{
"customerId": 1,
"invoiceId": 1,
"merchantInvoiceRefId": "1234-5678-9101",
"merchantPaymentMethodRefId": null,
"networkTransactionId": "43b550ff-094c-43fc-90f8-1d399e3a01d4",
"invoiceStatus": "Paid",
"invoiceAttemptStatus": "Success",
"message": "Approved",
"amount": {
"currency": "USD",
"value": 30.99
},
"paymentMethodId": 1,
"paymentMethodTypeId": 0,
"paymentProcessor": null,
"processorMerchantId": null,
"rawResponse": "Processor raw response (without parsing on revolv3 side)"
}
Сapture the previous authorization. A capture can be performed on the amount equal to or less than the amount of the referenced authorization.
The required argument for this endpoint are authorized payment method ID and invoice.
curl --request POST \
--url https://api.revolv3.com/api/Payments/capture/{paymentMethodAuthorizationId} \
--header 'Content-Type: application/json-patch+json' \
--data '{
"customerId": null,
"includeRawProcessorResponse": false,
"invoice": {
"merchantInvoiceRefId": null,
"orderProcessingChannel": null,
"amount": {
"currency": 1,
"value": 30.99
}
},
"dynamicDescriptor": null
}'
{
"customerId": 1,
"invoiceId": 1,
"merchantInvoiceRefId": "1234-5678-9101",
"merchantPaymentMethodRefId": null,
"networkTransactionId": "43b550ff-094c-43fc-90f8-1d399e3a01d4",
"invoiceStatus": "Paid",
"invoiceAttemptStatus": "Success",
"message": "Approved",
"amount": {
"currency": "USD",
"value": 30.99
},
"paymentMethodId": 1,
"paymentMethodTypeId": 0,
"paymentProcessor": null,
"processorMerchantId": null,
"rawResponse": "Processor raw response (without parsing on revolv3 side)"
}
OK
The response is of type object
.