Skip to main content

Create a Proration Policy

POST 

/subscriptions/proration-policies

Create a Proration Policy

Request

Body

    data ProrationPolicyCreaterequired
    type ProrationPolicyType (string)required

    Possible values: [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]

    Whether to round up or down

    unit stringrequired

    Possible values: [day, month, year]

    The unit to apportion over

    behaviour stringrequired

    Possible values: [immediately, next_invoice]

    Behaviour for payment application

    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.

Responses

Success. The proration policy is created.

Schema
    data ProrationPolicy
    id UUID (string)

    The unique identifier.

    type ProrationPolicyType (string)required

    Possible values: [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]

    Whether to round up or down

    unit stringrequired

    Possible values: [day, month, year]

    The unit to apportion over

    behaviour stringrequired

    Possible values: [immediately, next_invoice]

    Behaviour for payment application

    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.

Loading...