cURL
curl --request POST \ --url https://app.aegister.com/api/v1/organizations/{organizationid}/stripe \ --header 'Content-Type: application/json' \ --header 'X-Aegister-Token: <api-key>' \ --data ' { "price_id": "<string>" } '
{ "error": 0, "messages": "<array>", "data": { "organization": 123, "price": {}, "invoice": {} } }
Create Organization’s Stripe payment intent. Returns the invoice to pay, used by the stripe.js frontend for payment element construction.
Organization ID.
Stripe price ID to subscribe to.
Any value different from 0 indicates an error. More details can be found in messages.
messages
0 <= x <= 0
0
If error is 1, contains zero or more details on the error.
error
1
[]
Show child attributes