---
title: "Create a temporary payment method from a credit card"
method: POST
path: "/temporarypaymentmethod/"
tags: ["Temporary payment method"]
---

# Create a temporary payment method from a credit card

`POST /temporarypaymentmethod/`

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.

## Request body

- PaymentMethodCreate
  - `card_number` string, required
  - `expiration_year` string, required
  - `expiration_month` string, required
  - `cvv_number` string, required
  - `plan` integer

## Response `201`

Response when creating a temporary payment method

- InlineResponse2012
  - `token` string
  - `card_verification_url` string

## Other responses

- `400` — Invalid status value

---

[API](https://skmtc.dev/askell/apis/a-skell-api.md) · [All operations](https://skmtc.dev/askell/apis/a-skell-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/askell/a-skell-api/revisions/9234f937fa26/schema)
