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

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