POST
/
billing
/
payment-methods
curl --request POST \
  --url https://api.altostrat.io/billing/payment-methods \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>"
}'
{
  "id": "<string>",
  "brand": "<string>",
  "last4": "<string>",
  "exp_month": 123,
  "exp_year": 123,
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Standard OAuth2 flow for user authentication. Use Authorization Code Grant or Implicit Grant. JWT Bearer tokens obtained are used for subsequent requests.

Body

application/json

Response

201
application/json

Default payment method updated successfully. Returns the details of the new default method.

The response is of type object.