Saltar al contenido principal
GET
/
v1
/
billing
/
payment_method
Get Payment Methods
import requests

url = "http://localhost:3000/v1/billing/payment_method/"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
[
  {
    "id": "<string>",
    "type": "<string>",
    "card": {
      "brand": "<string>",
      "last4": "<string>",
      "exp_month": 123,
      "exp_year": 123
    },
    "link": {
      "email": "<string>"
    }
  }
]

Authorizations

Authorization
string
header
required

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

Response

Successful Response

id
string
required

Unique identifier for the payment method

type
string
required

Type of the payment method. In this app, only card is supported.

card
Card · object
required

Details of the card associated with the payment method

Details of the link associated with the payment method