loyalty_program.read_write - Loyalty Program Read & Write
Request
Header Params
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.
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
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.
It deals with the status and details related to the activation of a loyalty program.
status
boolean
optional
Indicates the loyalty program status.
Default:
true
activated
integer
optional
Indicates that the loyalty program has been successfully activated.
Example:
1
message
string
optional
This is a confirmation message that indicates the loyalty program has been activated without issues.
Example:
Loyalty Program activation successfully
message
object
optional
Contains detailed information about the message.
type
string
optional
Specifies the type of message.
code
null
optional
A specific code representing the message type.
name
null
optional
A short, human-readable title or name for the message.
description
null
optional
A detailed description of the message, providing more context.
Example
{"status":"string","loyalty_program":{"status":true,"activated":1,"message":"Loyalty Program activation successfully"},"message":{"type":"string","code":null,"name":null,"description":null}}