POST
/
api
/
v3
/
chargers
/
{charger_uuid}
/
licenses
/
payment-intent
Create Payment Intent
curl --request POST \
  --url https://cloud.volttime.com/api/v3/chargers/{charger_uuid}/licenses/payment-intent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product": "architecto"
}'
{
  "payment_intent": "pi_XXXX",
  "ephemeral_key": "ek_test_XXXX",
  "customer": "cus_XXXX",
  "publishable_key": "pk_test_XXXX"
}

Authorizations

Authorization
string
header
required

See the documentation for more information.

Path Parameters

charger_uuid
string
required

Body

application/json
product
string
required

The <code>sku</code> of an existing record in the products table.

Example:

"architecto"

Response

200 - application/json
payment_intent
string
Example:

"pi_XXXX"

ephemeral_key
string
Example:

"ek_test_XXXX"

customer
string
Example:

"cus_XXXX"

publishable_key
string
Example:

"pk_test_XXXX"