Create App Proxy

🔒

Requires write_app_proxy access scope. Please refer access scope

The Create App Proxy API is used to create a proxy connection between a Shoplazza store and a developer's application. This enables external applications to interact with the Shoplazza platform by forwarding requests to the specified proxy_url, while maintaining the appearance of operating within the Shoplazza store's environment.

This API is especially useful for:

  1. Integrating custom application functionalities into Shoplazza stores.
  2. Seamlessly forwarding user requests from Shoplazza to external developer-hosted applications.
  3. Dynamically rendering Liquid content or providing JSON/HTML responses via external applications, without exposing the external server to the end user.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Body Parameters

NameTypeRequiredDescriptionExample
real_pathstringYesURL path for accessing the proxy. Must start with apps/.apps/testappproxy
proxy_urlstringYesURL for the developer's application to process requests.http://www.example.com

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response Fields

FieldTypeDescriptionExample
app_proxy.idstringUnique identifier of the app proxy4
app_proxy.real_pathstringURL path configured for accessing the proxyapps/testappproxy
app_proxy.proxy_urlstringURL of the developer's applicationhttp://www.example.com/app
app_proxy.created_atstringTimestamp when the app proxy was created2024-12-30T03:36:08+08:00
app_proxy.updated_atstringTimestamp when the app proxy was last updated2024-12-30T03:36:08+08:00

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "file number error"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "page not found"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
422Unprocessable EntityEmpty ProxyUrl"ProxyUrl is required",
invalid ProxyUrl"parse "123": invalid URI for request"

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!