Create a payment method

Create and store a payment method in the vault. Supports both credit card details
and gatewayPaymentMethodIds from supported payment processors.

Payment Method Types:

  • creditCard: Credit card details that will be tokenized and stored
  • gatewayPaymentMethodId: Pre-existing gatewayPaymentMethodId from a supported payment gateway
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request to create a new payment method

string
enum
required

Type of payment method to create:

  • creditCard: Use raw credit card details that will be tokenized
  • gatewayPaymentMethodId: Use an existing token from a supported payment gateway
Allowed:
string | null

Unique identifier for the customer

paymentMethod
object

Payment method details for either credit card or gatewayPaymentMethodId

Headers
string
enum
Defaults to 2.0

Selects the RAP API version for this request. New integrations should pin 2.1 (identical to 2.0 today; future refinements land there). Omit to use the base version (2.0). A value naming an unsupported version — including an empty value — returns HTTP 400; if the header is sent, it must name a supported version. See the API description for the full version policy.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json