Skip to main content
Use this flow for a new recurring card plan.

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

  • amount is in cents and is used for each billing cycle.
  • Without trial_end, the first charge runs immediately and the subscription starts as active after success.
  • With trial_end, Pagou may validate the card first and keep the subscription as trialing until the trial ends.
  • An unknown customer_id returns 404.
  • A disabled subscription permission returns 403.

What to store

  • subscription id
  • customer id
  • current status
  • current_period_start and current_period_end
  • latest transaction id, when present