curl --request POST \
--url https://api.hyperline.co/v2/subscriptions/{id}/refresh-seat-products \
--header 'Authorization: Bearer <token>'[
{
"id": "supd_MkTDgpM6ej6f8l",
"application_schedule": "immediately",
"apply_at": "2024-11-30T18:24:34.496Z",
"payment_schedule": "immediately",
"calculation_method": "pro_rata",
"adjustment_amount": 123,
"subscription_id": "sub_7aWtG7Gb_fwGno",
"product_id": "itm_G6nU9iSC7eoDsk",
"previous_count": 2,
"new_count": 7,
"next_refresh_date": null
}
]Triggers ‘count’ updates on connected seat products within the subscription. This action will use the dataloader query to retrieve and update the number of units for each seat product.
curl --request POST \
--url https://api.hyperline.co/v2/subscriptions/{id}/refresh-seat-products \
--header 'Authorization: Bearer <token>'[
{
"id": "supd_MkTDgpM6ej6f8l",
"application_schedule": "immediately",
"apply_at": "2024-11-30T18:24:34.496Z",
"payment_schedule": "immediately",
"calculation_method": "pro_rata",
"adjustment_amount": 123,
"subscription_id": "sub_7aWtG7Gb_fwGno",
"product_id": "itm_G6nU9iSC7eoDsk",
"previous_count": 2,
"new_count": 7,
"next_refresh_date": null
}
]Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Subscription update ID.
"supd_MkTDgpM6ej6f8l"
Indicates when the subscription should be updated.
immediately: The subscription will be updated immediately.next_period: The subscription will be updated at the end of the current billing period.custom: The subscription will be updated at a custom date.immediately, next_period, custom, scheduled Indicates when the subscription should be billed.
immediately: The subscription will be billed immediately.next_invoice: The subscription will be billed at the next invoice.custom: The subscription will be billed at a custom date.immediately, next_invoice, custom Indicates how the products price should be calculated.
pro_rata: The price will be calculated proportionally to the time elapsed since the last billing period.pay_in_full: The price will be calculated for the entire billing period.do_not_charge: The price will not be calculated.pro_rata, pay_in_full, do_not_charge Amount to adjust the subscription price.
Subscription ID.
"sub_7aWtG7Gb_fwGno"
Product ID.
"itm_G6nU9iSC7eoDsk"
Previous count.
2
New count.
7
The next refresh date. Exists if your seat item is configured to be refreshed periodically.
null
Was this page helpful?