Skip to main content
curl --request POST \
  --url https://api.revolv3.com/api/Payments/authorization/{paymentMethodId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "networkProcessing": null,
  "amount": {
    "currency": "USD",
    "value": 30.99
  },
  "orderProcessingChannel": null,
  "dynamicDescriptor": null,
  "includeRawProcessorResponse": false
}
'
{
"networkTransactionId": "e913800e-2e74-415f-b7db-66c76a200b58",
"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": "custom-payment-method-ref-id-001",
"paymentMethodAchDetails": null,
"paymentMethodCreditCardDetails": {
"binNumber": "411111",
"paymentLast4Digit": "1111",
"paymentExpirationDate": "0835",
"accountUpdateMessage": null,
"accountUpdateDateTime": null
}
},
"paymentProcessor": "WorldPay",
"processorMerchantId": "10071676",
"responseMessage": "Approved",
"responseCode": "000",
"rawResponse": null,
"message": "Approved"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

paymentMethodId
integer<int64>
required

The unique identifier for the payment method information

Body

amount
object
required

The amount information for the payment.

networkProcessing
object

Network processing information.

Processors supporting this feature: Adyen, Nuvei, WorldPay, TSYS, BridgePay, Paymentech, PaymentLync.

orderProcessingChannel
enum<string>

Specifies the sales channel through which the shopper provides their card details.

Ecommerce - Internet or electronic commerce transaction. Moto - Single mail or telephone order transaction.

Processors supporting this feature: WorldPay, BridgePay. For other processors, Ecommerce is used by default.

Available options:
Ecommerce,
Moto
dynamicDescriptor
object

Allows the merchant to define a dynamic descriptor, which appears in the payment statement. For dynamic descriptor, special configuration is required.

Processors supporting this feature: Nuvei, WorldPay, BridgePay, EPX, Paymentech, PaymentLync.

includeRawProcessorResponse
boolean
default:false

Determine whether to return raw processor data in the response.

Response

OK

networkTransactionId
string

The identifier returned for Visa, Mastercard, and Discover transactions. Visa and Discover use this value to link subsequent payments in a recurring/installment stream back to the initial transaction. You must include this value in the request message (originalNetworkTransactionId element) for subsequent recurring payments.

paymentMethodAuthorizationId
integer<int64>

Unique identifier for a previously pre-authorized payment method.

paymentMethod
object

The payment method information for the payment.

paymentProcessor
string

The name of the processor by which the transaction was processed.

processorMerchantId
string

The merchant account ID (MID) of the processor by which the transaction was processed.

responseMessage
string

The processor response message.

responseCode
string

The processor response code.

rawResponse
string

Conditional. The value is returned if includeRawProcessorResponse = true. This field contains the raw data received from the processor after attempting to bill this payment. It does not contain any sensitive information. The field value is a string with the serialized response from the processor in JSON format.

message
string

The message returned directly from payment processor or a special message provided by system.