Add gift card to the cart
POST
v1/stores/{store_id}/carts/gift-cardAdds a new gift card to the cart.
Request
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.
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.
A unique identifier for the current cart session.
The currency in which the data should be returned. This should be provided as an ISO 4217 currency code. For example, SAR for Saudi Riyal, USD for United States Dollar, KWD for Kuwaiti Dinar, etc.
Name of the person sending the gift card.
Name of the recipient of the gift card.
Link to any media associated with the gift.
Optional custom message to include with the gift card.
Custom design for the gift card.
{
"sender_name": "Mohamed Ali",
"receiver_name": "Fatima Ahmed",
"media_link": "https://media.example.com/path/to/media",
"gift_message": "عيد سعيد، يا فاطمة!",
"card_design": {
"file": "https://media.example.com/path/to/design"
}
}
Request samples
Responses
{}