Skip to main content

Get All Billing Cycles

GET 

/subscriptions/:subscriptionId/billing-cycles

Returns a list of all Billing Cycles linked to a subscription with pagination. The Billing Cycles returned also show the list of the transactions executions linked to each cycle including the retries.

info

The request must provide the following header: x-api-key: {merchantKey}

Request​

Path Parameters

    subscriptionId stringrequired

    Unique Identifier of the created Subscription. Format: Subscription + - + <UUID>

    Example: Subscription-4903f0f3-d718-404b-a675-167eacfabe12

Query Parameters

    page integer

    Number of the page for which the data is to be returned.

    pageSize integer

    Number of the records to display per page.

Header Parameters

    Content-Type stringrequired

    Must be application/json

    Accept-Language stringrequired

    Must be be en-US

    Origin stringrequired

    The origin of the request

    User-Agent stringrequired

    The client making the request

    x-api-key stringrequired

    x-api-key: {merchantKey}

Responses​

Successful response

Schema
    pageinteger

    Number of the page for which the data is returned.

    pageSizeinteger

    Number of the records displayed per page.

    countinteger

    Number of total records (Billing Cycles) returned for the made search/request.

    totalPagesinteger

    Number of pages returned for the made search/request.

    data object[]
  • Array [
  • idstringrequired

    Unique Identifier of the Billing Cycle. Format: BillingCycle + - + <UUID>

    Example: BillingCycle-90d9e9bc-fd51-4698-b254-b8a57d3a72d9
    createdAtstring<date-time>required

    Timestamp of when the Billing Cycle was created.

    Example: 2021-02-11T15:00:44.718Z
    updatedAtstring<date-time>required

    Timestamp of when the Billing Cycle was last updated.

    Example: 2021-02-11T15:00:44.718Z
    paidAtstring<date-time>nullable

    Timestamp of when the Billing Cycle was paid, if applicable.

    Example: 2021-02-11T15:00:44.718Z
    billingDatestring<date>required

    The date of billing.

    Example: 2021-03-31
    billingPeriodStartstring<date>required

    The start date of the billing period.

    Example: 2021-03-01
    billingPeriodEndstring<date>required

    The end date of the billing period.

    Example: 2021-03-31
    statusstringrequired

    Status of the billing cycle. Default: PENDING.

    Possible values: [PENDING, CREATED, AUTHORIZATION PENDING, AUTHORIZATION COMPLETED, FAILED, CAPTURE PENDING, EXPIRED, CAPTURED, ERROR]

    Example: PENDING
    amountnumber<decimal>required

    Amount of the transaction.

    Example: 10
    currencystringrequired

    Currency code of the transaction. Format ISO 4217.

    Possible values: >= 3 characters and <= 3 characters

    Example: EUR
    shortCardNumberstringrequired

    Masked PAN for card, masked IBAN for SEPA, or masked email for PayPal.

    Possible values: <= 255 characters

    Example: 520000****0072
    billingAgreementNamestringrequired

    Display name of the payment option which has been stored.

    Possible values: <= 255 characters

    Example: Mastercard
    billingAgreementIdstring

    ID of the associated billing agreement.

    Example: BillingAgreement-df9cae2e-e424-490f-8bcb-ce52e81e6781
    billingAgreementCarrierNumberstring

    Carrier number of the associated billing agreement.

    Example: 12541****1235
  • ]