Skip to main content
POST
Create Payment Intent
Creates a Stripe payment intent for purchasing a charger license. If the authenticated user’s current team is an active partner, the license cost is added as a pending invoice item on their partner subscription instead.
charger
string
required
The UUID of the charger.
product
string
required
The SKU of the product to purchase. Must be a valid product SKU from the products catalog.

Response

Standard payment response

payment_intent
string
The client secret of the Stripe PaymentIntent, used for client-side confirmation (e.g., pi_XXXX_secret_YYYY).
ephemeral_key
string
The Stripe ephemeral key for client-side confirmation (e.g., ek_test_XXXX).
customer
string
The Stripe Customer ID (e.g., cus_XXXX).
publishable_key
string
The Stripe publishable key for client-side use (e.g., pk_test_XXXX).

Partner billing response

When the user’s team is an active partner, the response differs:
license
integer
The ID of the created license.
pending_invoice_item
boolean
Always true when billed through the partner subscription.