Use this flow for a new recurring card plan.Documentation Index
Fetch the complete documentation index at: https://developer.pagou.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Subscriptions must be enabled for your account.
- The customer must already exist in
/v2/customers. - The card must be collected with Payment Element and returned as a
pgct_token.
Backend request
Behavior
amountis in cents and is used for each billing cycle.- Without
trial_end, the first charge runs immediately and the subscription starts asactiveafter success. - With
trial_end, Pagou may validate the card first and keep the subscription astrialinguntil the trial ends. - An unknown
customer_idreturns404. - A disabled subscription permission returns
403.
What to store
- subscription
id - customer
id - current
status current_period_startandcurrent_period_end- latest transaction
id, when present

