Create a PaymentMethod

Required permissions for this API:

  • WRITE:FINANCE
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
applepay
object

Apple pay information. This must be provided if type is set to applepay.

card
object

Card information. This must be provided if type is set to card.

string
required

The Customer this PaymentMethod belongs to. This PaymentMethod is automatically added to the Customer as one of the available PaymentMethods. See Customers API for further details.

googlepay
object

Google pay information. This must be provided if type is set to googlepay.

metadata
object

A set of key-value pairs that you can attach to this PaymentMethod.

string
required

Client-generated idempotency key. Must be unique per request attempt. Conversion requests with the same request_id will be rejected. Parameter supports a maximum of 64 characters.

string
required

Type of the PaymentMethod. one of card, applepay, googlepay.

Responses

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