Skip to main content

List proration policies

GET 

/subscriptions/proration-policies

Retrieves a list of all proration policies.

Request

Query Parameters

    page[offset] int64

    Possible values: <= 10000

    The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.

    page[limit] int64

    The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the page length store setting is used.

Responses

Success. A list of proration policies is returned.

Schema
    data ProrationPolicy[]
  • Array [
  • id UUID (string)

    The unique identifier.

    type ProrationPolicyType (string)required

    Possible values: [subscription_proration_policy]

    attributes ProrationPolicyAttributesrequired
    name stringrequired

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

    A name for the proration policy.

    rounding stringrequired

    Possible values: [up, down, nearest]

    When rounding in proration, you must decide how to round the units of time used to calculate the charges.

    • round up to the next unit, ensuring subscribers are charged slightly more to cover any partial use.
    • round down to the previous whole unit, providing subscribers with a slight benefit by not charging for partial use.
    • round to the nearest whole unit, whether up or down, based on standard rounding rules. For example, rounding 0.5 up and rounding 0.5 down.
    external_ref ExternalRef (string)

    Possible values: <= 2048 characters

    A unique attribute that you could use to contain information from another company system, for example. The maximum length is 2048 characters.

    meta ProrationPolicyMetarequired
    owner stringrequired

    The owner of a resource, either store or organization.

    timestamps Timestampsrequired
    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

  • ]
  • links object
    anyOf
    title
Loading...