v1

latestOpenAPI 3.0.02026-08-06363576.8 KB
Temporary payment method

Create a temporary payment method from a credit card

The resulting token is a reference to a temporary payment method. You have to confirm this payment method by e.g. using it to activate a subscription, or adding a new payment method to a customer. Requires a public api key.

post/temporarypaymentmethod/

Request body

card_numberstring required
expiration_yearstring required
expiration_monthstring required
cvv_numberstring required
planinteger

Example request

{
  "card_number": "9999999999999999",
  "expiration_year": "22",
  "expiration_month": "11",
  "cvv_number": "123",
  "plan": 1
}

Response

Response when creating a temporary payment method

tokenstring
card_verification_urlstring

Example response

{
  "token": "637302f0412e2e11adc0ba21adafcf11",
  "card_verification_url": "https://askell.is/verify/637302f0412e2e11adc0ba21adafcf11/"
}