chargebee-go
chargebee-go copied to clipboard
Fix: Retain forward slashes in Chargebee IDs
Description
Fix: Retain forward slashes in Chargebee IDs
If the Chargebee ID contains a forward slash ("/"), this should not be URL escaped in the query as Chargebee will not be able to interpret it. Thus, we retain any forward slashes in IDs when querying the API.
When querying, this does not work:
curl https://acme.chargebee.com/api/v2/subscriptions/ACME%20GmbH%2FCompany%20GmbH/renewal_estimate
This works, however:
curl https://acme.chargebee.com/api/v2/subscriptions/ACME%20GmbH/Company%20GmbH/renewal_estimate