Skip to main content
POST
/
organization
/
{organizationId}
/
creditCard
Add credit card
curl --request POST \
  --url https://api.qovery.com/organization/{organizationId}/creditCard \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "<string>",
  "cvv": "<string>",
  "expiry_month": 6,
  "expiry_year": 2025
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "expiry_month": 6,
  "expiry_year": 2025,
  "last_digit": "7890",
  "is_expired": true,
  "brand": "<string>"
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

organizationId
string<uuid>
required

Organization ID

Body

application/json
number
string
required
cvv
string
required
expiry_month
integer
required
Example:

6

expiry_year
integer
required
Example:

2025

Response

Add credit card

id
string<uuid>
required
created_at
string<date-time>
required
expiry_month
integer
required
Example:

6

expiry_year
integer
required
Example:

2025

last_digit
string
required
Example:

"7890"

is_expired
boolean
required
brand
string
required