chargebee-go icon indicating copy to clipboard operation
chargebee-go copied to clipboard

Fix: Retain forward slashes in Chargebee IDs

Open ArneZsng opened this issue 1 year ago • 1 comments

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

ArneZsng avatar Nov 15 '23 16:11 ArneZsng