Skip to navigation

Create a payment method

Adds a payment method that needs no buyer step: a card already attached to the customer at the processor (type: card), or a dedicated bank transfer account (type: bankTransfer), which returns the existing account for that currency with a 200 if there is one, un-archiving it if needed. To collect a new card, create a payment method setup.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the payments=v1 beta. Send this header to use it.

Allowed values:

Request

Body
cardobjectRequired
OR
bankTransferobjectRequired

Response

200
cardobject
OR
usBankAccountobject
OR
bankTransferobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error