Skip to main content

Get Billing Cycle

GET 

/subscriptions/:subscriptionId/billing-cycles/:billingCycleId

Returns the details of a specific Billing Cycle linked to the provided subscription ID and billing cycle ID.

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
    billingCycleId stringrequired

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

    Example: BillingCycle-44401c1b-c762-42dd-81bc-fd1fbad54af2

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
    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