Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Malformed URL when trying to use ApplicationCharge Admin API

Malformed URL when trying to use ApplicationCharge Admin API

a6kme
Visitor
2 0 0

Hey team,

 

We are getting a malformed URL on Billing Success from Shopify on our platform. This is causing issues when we are trying to confirm the billing for our customers.

 

We are using the API - https://shopify.dev/api/admin-rest/2021-10/resources/applicationcharge#[post]/admin/api/2021-10/appl... to create One time charges on the platform.

 

The "return_url" we are providing in the API is of the form - {API_ENDPOINT}/api/v1/shopify/{self.website.subdomain}/topup/activate/?sku={topup.sku}

 

The path that Shopify is hitting us with is of the form:

 

- {API_ENDPOINT}/api/v1/shopify/{self.website.subdomain}/topup/activate/?sku={topup.sku}?charge_id={CHARGE_ID}

 

Please note that "?" before charge_id instead of "&".

 

Example format of a correct URL:

- {API_ENDPOINT}/api/v1/shopify/{self.website.subdomain}/topup/activate/?sku={topup.sku}&charge_id={CHARGE_ID}

 

The URL parameters should be separated with "&" rather than with "?".

 

Is there something that I am missing here?

 

Thanks,

Abhishek.

Replies 0 (0)