Skip to main content

Manage prorations on an offering

PUT 

https://euwest.api.elasticpath.com/v2/subscriptions/offerings/:offering_uuid/relationships/proration-policies

Proration ensures that subscribers are only charged for the actual time they use a service, whether they upgrade, downgrade, start, or cancel their subscription partway through a billing cycle. By default, proration is not enabled for Subscriptions. Once you have attached a proration policy to an offering, proration is enabled automatically.

You must create a proration policy before you can attach the policy to an offering. See Create a Proration Policy.

Request

Path Parameters

    offering_uuid UUIDrequired

    The unique identifier of the offering.

Body

    data objectnullablerequired
    type ProrationPolicyType (string)required

    Possible values: [subscription_proration_policy]

    id UUID (string)required

    The unique identifier.

Responses

Success. A proration policy relationship is added to the offering.

Schema
    data objectnullable
    type ProrationPolicyType (string)required

    Possible values: [subscription_proration_policy]

    id UUID (string)required

    The unique identifier.

Authorization: http

name: BearerTokentype: httpscheme: bearer
curl -L -X PUT 'https://euwest.api.elasticpath.com/v2/subscriptions/offerings/:offering_uuid/relationships/proration-policies' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"data": {
"type": "subscription_proration_policy",
"id": "00000000-0000-0000-0000-000000000000"
}
}'
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— pathrequired
Body
{
  "data": {
    "type": "subscription_proration_policy",
    "id": "00000000-0000-0000-0000-000000000000"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!