Hi
I am building our subscriptions functionality for the recurring period subscriptions to our website content.
To create the subscription we create an order for a subscription, retrieve its payment link, and the user pays it. This is working fine.
I am now working on the administrative functions where we might wish to discount a period as a goodwill gesture to a customer. At the end of the discounted billing period, charging will return to normal.
I am aware that this temporary price changing is not supported on the Subscriptions API, but I can submit an override price down the API, and submit another request later to remove the override price.
To do this I believe I should hit the
/subscriptions/[sub_id] end point with a PUT request containing
“price_override_money”: {
“amount”: 2000,
“currency”: “USD”
}
but I am getting an error
Status code 400
{“errors”: [{“code”: “BAD_REQUEST”,“detail”: “Price override not permitted when order template ID present.”,“category”: “INVALID_REQUEST_ERROR”}]}
I check the subscription and it does have an order template ID present in the JSON.
Can I do anything to override the price if it was originally set up on an order like mine was?
I suppose I could achieve this with plan changes with a different price then a later plan change to put it back but I’d prefer to keep the plan the same if I can.
Thanks for your attention
Richard