curl --request POST \
--url https://api.revolv3.com/api/Invoices/payment \
--header 'Content-Type: application/json-patch+json' \
--data '{
"customerId": 1,
"firstName": null,
"lastName": null,
"merchantCustomerRefId": null,
"email": null,
"invoice": {
"merchantInvoiceRefId": "123456789",
"invoiceLineItems": [
{
"name": "LineItem1",
"description": "Line Item 1 Description",
"value": 10,
"valueType": "Standard"
},
{
"name": "LineItem2",
"description": "Line Item 2 Description",
"value": 20,
"valueType": "Standard"
},
{
"name": "LineItem3",
"description": "Line Item 3 Description",
"value": 30,
"valueType": "Standard"
}
]
},
"dynamicDescriptor": {
"subMerchantId": null,
"subMerchantName": "REV*revolv3",
"subMerchantPhone": "00442030513031",
"countryCode": null,
"city": null
},
"paymentMethod": {
"paymentMethodTypes": [
1
],
"billingAddress": {
"addressId": null,
"addressLine1": "100 Main",
"addressLine2": null,
"city": "Santa Ana",
"state": "CA",
"postalCode": "91111",
"phoneNumber": null,
"email": null,
"country": "US"
},
"creditCard": {
"paymentAccountNumber": "4111111111111111",
"expirationDate": "1025",
"securityCode": null,
"networkToken": null,
"processingMethodType": 5
},
"ach": null,
"googlePay": null,
"applePay": null,
"merchantPaymentMethodRefId": "payment-method-ref-id_hgays-213-4rf4",
"billingFirstName": "Joe",
"billingLastName": "Doe",
"billingFullName": null
},
"paymentMethodAuthorizationId": null,
"paymentMethodId": null
}'
{
"customerId": 1,
"invoiceId": 1,
"merchantInvoiceRefId": "123456789",
"invoiceStatus": "Paid",
"invoiceAttemptStatus": "Success",
"message": "Approve",
"subtotal": 11.97,
"taxAmount": 1.2,
"total": 13.17,
"paymentMethodId": 1
}
A one-time payment without a subscription allows you to both authorize and capture funds in a single transaction, as well as capture previously authorized amounts. You can also send a partial capture if needed. The required arguments for this endpoint are customer ID or customer information, payment method details or authorized payment method ID or payment method ID (previously created and tokenized payment method), and an invoice with invoice line items.
curl --request POST \
--url https://api.revolv3.com/api/Invoices/payment \
--header 'Content-Type: application/json-patch+json' \
--data '{
"customerId": 1,
"firstName": null,
"lastName": null,
"merchantCustomerRefId": null,
"email": null,
"invoice": {
"merchantInvoiceRefId": "123456789",
"invoiceLineItems": [
{
"name": "LineItem1",
"description": "Line Item 1 Description",
"value": 10,
"valueType": "Standard"
},
{
"name": "LineItem2",
"description": "Line Item 2 Description",
"value": 20,
"valueType": "Standard"
},
{
"name": "LineItem3",
"description": "Line Item 3 Description",
"value": 30,
"valueType": "Standard"
}
]
},
"dynamicDescriptor": {
"subMerchantId": null,
"subMerchantName": "REV*revolv3",
"subMerchantPhone": "00442030513031",
"countryCode": null,
"city": null
},
"paymentMethod": {
"paymentMethodTypes": [
1
],
"billingAddress": {
"addressId": null,
"addressLine1": "100 Main",
"addressLine2": null,
"city": "Santa Ana",
"state": "CA",
"postalCode": "91111",
"phoneNumber": null,
"email": null,
"country": "US"
},
"creditCard": {
"paymentAccountNumber": "4111111111111111",
"expirationDate": "1025",
"securityCode": null,
"networkToken": null,
"processingMethodType": 5
},
"ach": null,
"googlePay": null,
"applePay": null,
"merchantPaymentMethodRefId": "payment-method-ref-id_hgays-213-4rf4",
"billingFirstName": "Joe",
"billingLastName": "Doe",
"billingFullName": null
},
"paymentMethodAuthorizationId": null,
"paymentMethodId": null
}'
{
"customerId": 1,
"invoiceId": 1,
"merchantInvoiceRefId": "123456789",
"invoiceStatus": "Paid",
"invoiceAttemptStatus": "Success",
"message": "Approve",
"subtotal": 11.97,
"taxAmount": 1.2,
"total": 13.17,
"paymentMethodId": 1
}
OK
The response is of type object
.