> ## Documentation Index
> Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

<ParamField path="charger" type="string" required>
  The UUID of the charger.
</ParamField>

<ParamField body="product" type="string" required>
  The SKU of the product to purchase. Must be a valid product SKU from the products catalog.
</ParamField>

## Response

### Standard payment response

<ResponseField name="payment_intent" type="string">
  The client secret of the Stripe PaymentIntent, used for client-side confirmation (e.g., `pi_XXXX_secret_YYYY`).
</ResponseField>

<ResponseField name="ephemeral_key" type="string">
  The Stripe ephemeral key for client-side confirmation (e.g., `ek_test_XXXX`).
</ResponseField>

<ResponseField name="customer" type="string">
  The Stripe Customer ID (e.g., `cus_XXXX`).
</ResponseField>

<ResponseField name="publishable_key" type="string">
  The Stripe publishable key for client-side use (e.g., `pk_test_XXXX`).
</ResponseField>

### Partner billing response

When the user's team is an active partner, the response differs:

<ResponseField name="license" type="integer">
  The ID of the created license.
</ResponseField>

<ResponseField name="pending_invoice_item" type="boolean">
  Always `true` when billed through the partner subscription.
</ResponseField>
