Update Info Page
PUT
v1/managers/store/loyalty-program-infoUpdates the content of the store's loyalty program info page.
Request
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
The User-Agent header contains information about the user agent (browser or app) making the request. It allows the server to provide a tailored response depending on the user agent's capabilities and preferences.
Preferred language for the response. Defaults to en
if not specified.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
The title in Arabic.
The title in English.
The HTML-formatted content in Arabic.
The HTML-formatted content in English.
{
"title_ar": "برنامج الولاء",
"title_en": "Loyalty Program",
"content_ar": "<h4 style=\\\"margin-right:80px;\\\"><span style=\\\"background-color:hsl(30, 75%, 60%);\\\">مرحبًا بكم في برنامج الولاء الخاص بنا</span></h4><p>نحن نقدر ولاءكم ونقدم لكم مكافآت حصرية.</p><p> </p>",
"content_en": "<h4 style=\\\"margin-right:80px;\\\"><span style=\\\"background-color:hsl(30, 75%, 60%);\\\">Welcome to our Loyalty Program</span></h4><p>We appreciate your loyalty and offer you exclusive rewards.</p><p> </p>"
}
Request samples
Responses
The store loyalty program info page content is updated successfully.
Indicates the overall status of the API response.
Contains detailed information about the error encountered.
Specifies the type of message. Here, it is "error" indicating an error message.
A specific code representing the error type. In this instance, the code is "ERROR_SESSION_INVALID", which indicates that the session is invalid.
A short, human-readable title or name for the error message.
A detailed description of the error, providing more context about what went wrong.
{
"status": "error",
"message": {
"type": "error",
"code": "ERROR_SESSION_INVALID",
"name": "عذراً",
"description": " لم يتم إيجاد المتجر المطلوب"
}
}