curl --request POST \
--url https://api.revolv3.com/api/Payments/sale \
--header 'Content-Type: application/json-patch+json' \
--data '{
"networkProcessing": {
"processingType": 1,
"originalNetworkTransactionId": 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": null,
"billingFirstName": "Joe",
"billingLastName": "Doe",
"billingFullName": null
},
"customerId": 1,
"includeRawProcessorResponse": false,
"invoice": {
"merchantInvoiceRefId": "123456789",
"orderProcessingChannel": null,
"amount": {
"currency": 1,
"value": 30.99
}
},
"dynamicDescriptor": null
}'
{
"customerId": 1,
"invoiceId": 1,
"merchantInvoiceRefId": "1234-5678-9101",
"merchantPaymentMethodRefId": null,
"networkTransactionId": "043e7d21-2a6f-4d3d-a837-94ba074ad1e0",
"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)"
}
Initiate a payment. The payment can be either one-time or it can include data to define the initial transaction in a recurring or installment stream. This allows the networks to tie subsequent transactions back to the original approval, ensuring a seamless and efficient payment process.
The required argument for this endpoint are payment method information and invoice.
curl --request POST \
--url https://api.revolv3.com/api/Payments/sale \
--header 'Content-Type: application/json-patch+json' \
--data '{
"networkProcessing": {
"processingType": 1,
"originalNetworkTransactionId": 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": null,
"billingFirstName": "Joe",
"billingLastName": "Doe",
"billingFullName": null
},
"customerId": 1,
"includeRawProcessorResponse": false,
"invoice": {
"merchantInvoiceRefId": "123456789",
"orderProcessingChannel": null,
"amount": {
"currency": 1,
"value": 30.99
}
},
"dynamicDescriptor": null
}'
{
"customerId": 1,
"invoiceId": 1,
"merchantInvoiceRefId": "1234-5678-9101",
"merchantPaymentMethodRefId": null,
"networkTransactionId": "043e7d21-2a6f-4d3d-a837-94ba074ad1e0",
"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
.