Pular para o conteúdo principal
POST
Record the payment of a manual period

Autorizações

api_access_token
string
header
obrigatório

Token de um Platform App, gerado pelo super admin. Usado para provisionar contas, usuários, papéis e bots.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

Corpo

period_end
string<date>
obrigatório

Last day of the period being paid, taken to the end of that day.

Resposta

Period recorded as paid

Billing state of the account. The provider-agnostic keys are always present; the catalog, subscription, ai_actions and suspension keys are added when native billing is enabled.

provider
enum<string>
Opções disponíveis:
stripe,
asaas,
dlocal_go,
paypal,
shopify
state
enum<string>

Status of the current subscription, or legacy when the account has none under the native catalog.

Opções disponíveis:
legacy,
pending,
incomplete,
trialing,
active,
past_due,
canceled,
expired,
suspended
plan
object | null
amount
integer | null

Recurring amount in cents, add-ons included.

currency
string | null
billing_period
enum<string> | null
Opções disponíveis:
month,
semester,
year,
null
trial_ends_at
string<date-time> | null
current_period_end
string<date-time> | null
last_verified_at
string<date-time> | null
catalog
enum<string>

Present and set to native when native billing is enabled.

Opções disponíveis:
native
source
enum<string> | null

How the subscription was created.

Opções disponíveis:
gateway,
courtesy,
manual,
trial,
null
billing_profile_required
boolean
suspension
object | null

Present only while the account is suspended.

allowed_actions
object

What the current user interface is allowed to offer for this account.

ai_actions
object | null

AI Actions balance of the account.

subscription
object | null