Updates the content of the store's loyalty program info page.
🔑Scopes
loyalty_program.read_write - Loyalty Program Read & Write
Request
Header Params
Accept
string
required
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
Default:
application/json
Authorization
string
required
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.
Example:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36
Accept-Language
enum<string>
optional
Preferred language for the response. Defaults to en if not specified.
Allowed values:
enar
Example:
en
X-Manager-Token
string
required
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.
<h4 style=\"margin-right:80px;\"><span style=\"background-color:hsl(30, 75%, 60%);\">مرحبًا بكم في برنامج الولاء الخاص بنا</span></h4><p>نحن نقدر ولاءكم ونقدم لكم مكافآت حصرية.</p><p> </p>
content_en
string
optional
The HTML-formatted content in English.
Example:
<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>
Example
{"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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.zid.sa/v1/managers/store/loyalty-program-info' \
--header'Accept;' \
--header'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxMTciLCJqdGkiOiJhMTg5ZTg3MmYxMzhkMWVhYjU5MjVkMDkyMGE5NmI0YjliNjg0Y2E2ZTdmM2M2MjljZWYxNmQ4NDJjMmJlYmVhMjI4YTdmMTA0ZWQ4NWE5NCIsImlhdCI6MTY3OTU3Njk5OS41NjY4NzcsIm5iZiI6MTY3OTU3Njk5OS41NjY4OCwiZXhwIjoxNzExMTk5Mzk5LjQ4NjE1Mywic3ViIjoiMTgyNDc1Iiwic2NvcGVzIjpbInRoaXJkLXBhcnRpZXMtYXBpcyJdfQ.i07ef09nVNXGZF-g-QXpNoS2vlFQK_zntAqAMS4Az2XD2EyMLhxLZZRL-QlR11zUPqMmXjMAl_4ooKa3M3zkfZQ6Ga6qStvamk8RnC_39VUx0lfN2A4k65ERZpqwrMy6-t3dE99zay3aicIdNvbgi0zeuMSE5Tn99u-2AtSRa8ffbfAcYPPXacHrhdmlYzdiZS_x_skovFEow1E-nDjdL1WHqO92XdZ7RfNLkiYFTjZlZmM_UruvioaR3q6TXJbqRK_ZrziivezL8ohIQ2SBosUp58I29rlKzvlw_R2j0rKKYZbdxYDaxAHOISmOFKAlO66k7dNevAHI3s4uGIjoGA6ZXHknccWPLLLiaAQ0r64HV8GowW5dg2rhZNurJGDTnLlBQ6F-ql42ptHzSAfzzi576CEoN3gMVpgXcbntUY3reETkFsTBPUjeSuMpANMioXAA0GRp3Ut-84fTnrWxqsCW1WVUIx33HvmfCGPXIdkaCCWoA6G6KXo04MtFbKXQmXkK9esQWI-rqdVnMD3zSR3g3yFHZSL1U-mZeNja03706Rav1ordsRNOtRwtLuoRRbk9KasbUpEwqq4Ao9lqZZwRIjdEw-pQtnUT8V53fhmuuRIefCLFO7eGEtGUnh9o6Uh_pgi6AB6uSlnN9GEMGgI1alqvMmTjxvC-HHt0V-Y' \
--header'User-Agent;' \
--header'Accept-Language;' \
--header'X-Manager-Token: eyJpdiI6Imh3L2dGbmJmRnVCOUY4WW5WQ2s3RFE9PSIsInZhbHVlIjoiZklpRnJyVGV1OWcrZUJBNk44bVp5SjZzSS92V3czcTJjbnJ2dFYvenZ3SFBtWHNSMFU3ZEMzZ0ZJNnpucVE4Ui9rNFdicUduOGpKUlg1VXdGOFFIaVUzZjZyUUZybWx3R0tNY3orUmxoUUUxQ29wSkEyVDZTVnVYb2dlUXJSVzBYVkdESjBpS0xiN05Hbndzc2wzV2N0YitGM1NEdkk4ckZZOTZsTFdEL1ZQRlJJTE5FQmttZng2elpwL1RCeXFRdUd1U3JTc0FHV1kySS80RFJaWlIyZ3gwM2FsQVRFbkt3VWtFOUQyKzdGOD0iLCJtYWMiOiJmZDQ0YzM4ODE0OWQxOWRhYWU0NDhhYmIzYzQ1MDAxMDAzODZjZGM3ZGM4NGJhMGNkMDEyYWZlM2UzYjAxMTI4IiwidGFnIjoiIn0=' \
--header'Content-Type: application/json' \
--data-raw'{
"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>"
}'
Responses
🟢200OK
application/json
The store loyalty program info page content is updated successfully.
Body
status
string
optional
Indicates the overall status of the API response.
Example:
error
message
object
optional
Contains detailed information about the error encountered.
type
string
optional
Specifies the type of message. Here, it is "error" indicating an error message.
Example:
error
code
string
optional
A specific code representing the error type. In this instance, the code is "ERROR_SESSION_INVALID", which indicates that the session is invalid.
Example:
ERROR_SESSION_INVALID
name
string
optional
A short, human-readable title or name for the error message.
Example:
عذراً
description
string
optional
A detailed description of the error, providing more context about what went wrong.
Example:
لم يتم إيجاد المتجر المطلوب
Example
{"status":"error","message":{"type":"error","code":"ERROR_SESSION_INVALID","name":"عذراً","description":" لم يتم إيجاد المتجر المطلوب"}}