curl --request POST \
--url https://api.revolv3.com/api/Payments/authorization/{paymentMethodId} \
--header 'Content-Type: application/json-patch+json' \
--data '{
"networkProcessing": {
"processingType": 1,
"originalNetworkTransactionId": null
},
"amount": {
"currency": 1,
"value": 30.99
},
"orderProcessingChannel": null,
"dynamicDescriptor": null
}'
{
"networkTransactionId": "6c27431e-3790-47fc-9ccc-e0d067fc5cd9",
"paymentMethodAuthorizationId": 1,
"paymentMethod": {
"paymentMethodId": 1,
"billingAddressId": 1,
"billingAddress": {
"addressId": 1,
"addressLine1": "1 Default Street",
"addressLine2": null,
"city": "Los Angeles",
"state": "CA",
"postalCode": "90210",
"phoneNumber": null,
"email": null,
"country": "US"
},
"billingFirstName": "John",
"billingLastName": "Doe",
"merchantPaymentMethodRefId": null,
"paymentMethodAchDetails": null,
"paymentMethodCreditCardDetails": null
},
"paymentProcessor": null,
"processorMerchantId": null
}
Authorize an existing payment method by its id with a specified amount.
curl --request POST \
--url https://api.revolv3.com/api/Payments/authorization/{paymentMethodId} \
--header 'Content-Type: application/json-patch+json' \
--data '{
"networkProcessing": {
"processingType": 1,
"originalNetworkTransactionId": null
},
"amount": {
"currency": 1,
"value": 30.99
},
"orderProcessingChannel": null,
"dynamicDescriptor": null
}'
{
"networkTransactionId": "6c27431e-3790-47fc-9ccc-e0d067fc5cd9",
"paymentMethodAuthorizationId": 1,
"paymentMethod": {
"paymentMethodId": 1,
"billingAddressId": 1,
"billingAddress": {
"addressId": 1,
"addressLine1": "1 Default Street",
"addressLine2": null,
"city": "Los Angeles",
"state": "CA",
"postalCode": "90210",
"phoneNumber": null,
"email": null,
"country": "US"
},
"billingFirstName": "John",
"billingLastName": "Doe",
"merchantPaymentMethodRefId": null,
"paymentMethodAchDetails": null,
"paymentMethodCreditCardDetails": null
},
"paymentProcessor": null,
"processorMerchantId": null
}