Skip to main content
POST
/
v1
/
organizations
/
billing
/
confirm-payment-method
Confirm Payment Method
curl --request POST \
  --url https://api.mixpeek.com/v1/organizations/billing/confirm-payment-method \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payment_method_id": "<string>"
}
'
{
  "payment_method": {
    "payment_method_id": "<string>",
    "type": "<string>",
    "card_last4": "<string>",
    "card_brand": "<string>"
  },
  "auto_billing_enabled": true,
  "billing_period_start": "2023-11-07T05:31:56Z",
  "success": true
}

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

Body

application/json

Payment method confirmation

payment_method_id
string
required

Stripe PaymentMethod ID from frontend

Response

Successful Response

Response after confirming payment method.

payment_method
PaymentMethodInfo · object
required

Confirmed payment method details

auto_billing_enabled
boolean
required

Whether auto-billing is now enabled

billing_period_start
string<date-time>
required

When the current billing period started

success
boolean
default:true

Whether payment method was successfully confirmed