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>"
}
}
]Get all payment methods associated with the company’s current Stripe customer.
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>"
}
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Unique identifier for the payment method
Type of the payment method. In this app, only card is supported.
Details of the card associated with the payment method
Mostrar atributos secundarios
Card brand. Can be American Express, Diners Club, Discover, Eftpos Australia, Girocard, JCB, MasterCard, UnionPay, Visa, or Unknown.
Last four digits of the card
Two-digit number representing the card's expiration month
Four-digit number representing the card's expiration year