BETA

Proxy Endpoints

The Merchant Center API Gateway exposes different proxy endpoints.

A proxy endpoint is meant to forward the request to the underlying configured service, while validating the authentication and authorization of the user.

Available endpoints

The following proxy endpoints are available:

In addition to those endpoints, there is a /graphql endpoint that also works as a proxy.

Request format

Each proxy endpoint works with the same format. To send a request through the proxy, you simply append the real URL (according to the targeted API) after the proxy endpoint prefix.

For example, to make requests to the commercetools platform HTTP API, you would prefix the request with /proxy/ctp

// Proxied request to the commercetools platform HTTP API
fetch(`https://mc-api.commercetools.com/proxy/ctp/${projectKey}/orders`);
// Underlying request to the commercetools platform HTTP API
fetch(`https://api.commercetools.com/${projectKey}/orders`);
Developer Center
HTTP APIGraphQL APIBETAPlatform Release NotesCustom ApplicationsBETASDKs & Client LibrariesImport & Export ToolsSUNRISE Starter FrontendsTutorialsFAQ
Merchant Center
DocumentationRelease Notes
Copyright © 2020 commercetools