v1

latestOpenAPI 3.1.02026-07-241040774.6 KB

Obter ciclo

Através do identificador do ciclo (cycle_id) é possível recuperar as informação do ciclo de uma assinatura.

get/subscriptions/{subscription_id}/cycles/{cycle_id}

Path parameters

subscription_idstring required

Código da assinatura.<br>Formato: sub_XXXXXXXXXXXXXXXX.

cycle_idstring required

Código do ciclo. Formato: cycle_XXXXXXXXXXXXXXXX.

Response

200

idstring
billing_atstring
cycleinteger
start_atstring
end_atstring
durationinteger
created_atstring
updated_atstring
statusstring

Example response

{
  "id": "cycle_Qal5a0LCpphoDpnR",
  "billing_at": "2019-04-30T00:00:00Z",
  "cycle": 1,
  "start_at": "2019-04-30T00:00:00Z",
  "end_at": "2019-07-29T23:59:59Z",
  "duration": 7862399,
  "created_at": "2019-04-30T18:09:32Z",
  "updated_at": "2019-04-30T18:09:33Z",
  "status": "billed"
}