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

    page integer

    Number of the page for which the data is returned.

    pageSize integer

    Number of the records displayed per page.

    count integer

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

    totalPages integer

    Number of pages returned for the made search/request.

    data

    object[]

  • Array [

  • id stringrequired

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

    createdAt date-timerequired

    Timestamp of when the Billing Cycle was created.

    updatedAt date-timerequired

    Timestamp of when the Billing Cycle was last updated.

    paidAt date-timenullable

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

    billingDate daterequired

    The date of billing.

    billingPeriodStart daterequired

    The start date of the billing period.

    billingPeriodEnd daterequired

    The end date of the billing period.

    status stringrequired

    Possible values: [Captured, Failed, Error]

    Status of the billing cycle.

    amount decimalrequired

    Amount of the transaction.

    currency stringrequired

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

    Currency code of the transaction. Format ISO 4217.

    shortCardNumber stringrequired

    Possible values: <= 255 characters

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

    billingAgreementName stringrequired

    Possible values: <= 255 characters

    Display name of the payment option which has been stored.

    billingAgreementId string

    ID of the associated billing agreement.

  • ]

Loading...