Skip to main content
POST
Create Payment Method

Authorizations

x-revolv3-token
string
header
required

Body

billingFirstName
string

Conditional: either both BillingFirstName and BillingLastName or BillingFullName must be provided.

The customer’s first name associated with a payment method that is used for billing purposes.

Maximum string length: 100
billingLastName
string

Conditional: either both BillingFirstName and BillingLastName or BillingFullName must be provided.

The customer’s last name associated with a payment method that is used for billing purposes.

Maximum string length: 100
billingFullName
string

Conditional: either BillingFullName or both BillingFirstName and BillingLastName must be provided.

The customer’s full name associated with a payment method that is used for billing purposes.

Maximum string length: 200
billingAddress
object

The address associated with a payment method that is used for billing purposes. Either an Address ID or detailed address information can be provided.

creditCard
object

Conditional: one payment method type is required.

Payment card information.

ach
object

Conditional: one payment method type is required.

ACH account information.

googlePay
object

Conditional: one payment method type is required.

Google Pay information.

applePay
object

Conditional: one payment method type is required.

Apple Pay information. If you have encrypted Apple Pay token data use ApplePayToken for further payments. If you have Decrypted Apple Pay token data use ApplePayDecryptedPackage.

merchantPaymentMethodRefId
string

Merchant's unique identifier for the payment method.

Maximum string length: 100

Response

The payment method was successfully created

paymentMethodId
integer<int64>

The unique identifier for the payment method information.

Required range: 1 <= x <= 1000000000
billingAddressId
integer<int64>

The unique identifier of the address.

Required range: 1 <= x <= 1000000000
billingAddress
object
billingFirstName
string | null
Maximum string length: 100
billingLastName
string | null
Maximum string length: 100
merchantPaymentMethodRefId
string

Merchant's unique identifier for the payment method.

Maximum string length: 100
paymentMethodAchDetails
object | null

ACH account information.

paymentMethodCreditCardDetails
object | null

The details of credit card payment method.