Zid Docs
Merchant APIApp APIThemes
Merchant APIApp APIThemes
Help Center
Slack
  1. Bundle Offers
  • Start Here ๐Ÿš€
  • Overview to Zid Apps
  • Authorization
  • Responses
  • Webhooks
  • Rate Limiting
  • APIs
    • Orders
      • Update Order by ID
      • Get Order Credit Notes
      • Get Order by ID
      • List of Orders
    • Reverse Orders
      • Reverse Order Reasons
      • Create Reverse Orders
      • Create Reverse Orders Waybill
      • Add Reverse Order Reasons
    • Carts
      • Get Abandoned Cart Details
      • List Abandoned Carts
    • Products
      • Managing Products
        • Get a Product by ID
        • Retrieve a list of products
        • Create a new product
        • Update an existing product.
        • Bulk update of products using their IDs or SKUs
        • Delete a product.
        • Product Setting
      • Digital Vouchers
        • Product Vouchers
        • Order Voucher
        • Add Product Voucher
        • Import Vouchers
        • Export Vouchers
        • Update Product Voucher
        • Remove Product Voucher
      • Product Categories
        • Get Single Category Details
        • Get all categories
        • Create Store Category
        • Update a Store Category
        • Add a product to a certain category
        • Publish/Unpublish a Category
        • Detach Category from All Products
        • Remove Category from Product
      • Product Badge
        • Product Badge
      • Product Attributes
        • Get Product Attributes
        • Get Product Attributes
        • Retrieve a product attribute
        • Add a New Product Attribute
        • Add a New Product Attribute
        • Update a product attribute
        • Delete a product attribute
      • Product Attribute Presets
        • Get attribute presets
        • Create Attribute Preset
        • Update Attribute Preset
        • Delete an attribute preset
      • Product Customizations
        • Add Product Variants
        • Insert Custom Options to a Product
        • Insert Custom User-Input Fields to a Product
      • Product Manual Sorting
        • Set Custom Product Order
        • Reset the manual sorting of all products
      • Product Images
        • Get List of images of a product.
        • Add an image to a product
        • Update a product Image Order
        • Delete a product image
      • Product Notifications
        • Availability Notification Stats
        • Availability Notifications Settings
        • List Availability Notifications
        • Add Availability Notification
        • Save Availability Notifications Settings
        • Manually Send Availability Notification Email
        • Export Availability Notifications
      • Product Import
        • Email All Products to Store Owner
        • Import Products via CSV or xlsx File
      • Product Stock (Multi-Inventory)
        • Get Product Stock by ID
        • List Product Stocks
        • Add Product Stock
        • Update Single Product Stock
        • Bulk Update Product Stocks
      • Product Questions & Answers
        • Get Question
        • Get Answer
        • Get All Questions
        • List Question Answers
        • Create Question
        • Create Answer
        • Update Question
        • Update Answer
        • Delete Question
        • Delete Answer
      • Product Reviews
        • List Reviews
        • New Reviews Total
      • Digital Products
        • Create Downloadable Product
        • Generate an Upload URL
        • Upload File to S3
        • Create Product Downloadables
        • Get Product Downloadables
        • Delete Product Downloadables
        • Get Store Downloadables
        • Create Store Downloadables
        • Delete Store Downloadables
    • Inventories
      • Get Store Location by ID
      • List Store Locations
      • Add a New Location
      • Update a Location by ID
      • Update Products Stock by Location ID
    • Shipping
      • List Store Delivery Options
      • Add Shipping Option
    • Marketing
      • Gift Cards
        • Get Store Settings
        • Add gift card to the cart
        • Update Store Settings
        • Upload gift card designs
        • Remove gift card from the cart
      • Coupons
        • Create a New Coupon
        • List Coupons
        • Get Coupon Details
        • Update Coupon
        • Delete Coupon
      • Bundle Offers
        • Retrieve all Bundle Offers
          GET
      • Loyalty Program
        • Loyalty Program Points per Order
        • Store Loyalty Status
        • Info Page
        • Loyalty Program Activation
        • Loyalty Status
        • Set Points Expiration
        • Cashback Rule Method Update
        • Cashback Rule Method Update Status
        • Add Points Redemption Method
        • Update Points Redemption Method
        • Delete Points Redemption Method
        • Toggle Redemption Method Status
        • Show Loyalty Points Info for Specific Customer
        • Customer Profile
        • List Data
        • Customer Points History
        • Info Page - Managers
        • Update Info Page
        • Adjust Customer Points
    • Customers
      • List of Customers
      • Get Customer by ID
    • Store Settings
      • ๐Ÿ“„ User Roles and Permissions
      • Get Manager's Profile
      • Get VAT Settings
      • List of Payment Method
    • Countries and Cities
      • Retrieve Store Operating Countries
      • Retrieve Cities by Country ID
      • Countries List
    • Webhook
      • List of Webhooks
      • Create a Webhook
      • Delete a Webhook by OriginalId
      • Delete a Webhook by Subscriber
  • Store Events
    • Order
    • Product
    • Abandoned Cart
    • Customer
    • Product Category
  1. Bundle Offers

Retrieve all Bundle Offers

GET
https://api.zid.sa/v1/managers/store/discounts/bundle-offers
Coupons and Bundle Offers
This endpoint retrieves all available bundle offers for the store. Bundle offers are special promotions where customers can get a discount if they buy a specific bundle of products.
๐Ÿ”‘Scopes
bundle_offers.read - Bundle Offers Read

Request

Query Params
code
stringย 
optional
A code to filter the bundle offers. Example: bundle_offer.
start_date
stringย <date>
optional
A date to filter the bundle offers by their start dates. Supports standard comparison operators like >=.
end_date
stringย <date>
optional
A date to filter the bundle offers by their end dates.
order_by
stringย 
optional
A field to order the bundle offers by. Example: start_date.
sort_by
stringย 
optional
A sort direction. Example: desc.
page
integerย 
optional
The page number for pagination.
per_page
integerย 
optional
The number of results per page.
search_term
stringย 
optional
A term to search the bundle offers by their names.
status
stringย 
optional
The status of the bundle offers. The possible values are: expired, disabled, unstarted, active.
type
stringย 
optional
The type of bundle offer.
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.
Example:
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
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.
Example:
eyJpdiI6Imh3L2dGbmJmRnVCOUY4WW5WQ2s3RFE9PSIsInZhbHVlIjoiZklpRnJyVGV1OWcrZUJBNk44bVp5SjZzSS92V3czcTJjbnJ2dFYvenZ3SFBtWHNSMFU3ZEMzZ0ZJNnpucVE4Ui9rNFdicUduOGpKUlg1VXdGOFFIaVUzZjZyUUZybWx3R0tNY3orUmxoUUUxQ29wSkEyVDZTVnVYb2dlUXJSVzBYVkdESjBpS0xiN05Hbndzc2wzV2N0YitGM1NEdkk4ckZZOTZsTFdEL1ZQRlJJTE5FQmttZng2elpwL1RCeXFRdUd1U3JTc0FHV1kySS80RFJaWlIyZ3gwM2FsQVRFbkt3VWtFOUQyKzdGOD0iLCJtYWMiOiJmZDQ0YzM4ODE0OWQxOWRhYWU0NDhhYmIzYzQ1MDAxMDAzODZjZGM3ZGM4NGJhMGNkMDEyYWZlM2UzYjAxMTI4IiwidGFnIjoiIn0=
Accept-Language
enum<string>ย 
optional
Preferred language for the response. Defaults to en if not specified.
Allowed values:
enar
Example:
en
Currency
stringย 
required
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.
Example:
SAR

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 GET 'https://api.zid.sa/v1/managers/store/discounts/bundle-offers?code&start_date&end_date&order_by&sort_by&page&per_page&search_term&status&type' \
--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 'X-Manager-Token: eyJpdiI6Imh3L2dGbmJmRnVCOUY4WW5WQ2s3RFE9PSIsInZhbHVlIjoiZklpRnJyVGV1OWcrZUJBNk44bVp5SjZzSS92V3czcTJjbnJ2dFYvenZ3SFBtWHNSMFU3ZEMzZ0ZJNnpucVE4Ui9rNFdicUduOGpKUlg1VXdGOFFIaVUzZjZyUUZybWx3R0tNY3orUmxoUUUxQ29wSkEyVDZTVnVYb2dlUXJSVzBYVkdESjBpS0xiN05Hbndzc2wzV2N0YitGM1NEdkk4ckZZOTZsTFdEL1ZQRlJJTE5FQmttZng2elpwL1RCeXFRdUd1U3JTc0FHV1kySS80RFJaWlIyZ3gwM2FsQVRFbkt3VWtFOUQyKzdGOD0iLCJtYWMiOiJmZDQ0YzM4ODE0OWQxOWRhYWU0NDhhYmIzYzQ1MDAxMDAzODZjZGM3ZGM4NGJhMGNkMDEyYWZlM2UzYjAxMTI4IiwidGFnIjoiIn0=' \
--header 'Accept-Language;' \
--header 'Currency;'

Responses

๐ŸŸข200Returns a list of all bundle offers for the store.
application/json
Body
status
objectย 
optional
Response status
discount_rules
array[objectย (DiscountRule) {15}]ย 
optional
Array of the store's bundle discount rules
id
stringย 
optional
Unique identifier of the discount rule
Example:
652285f7-11af-41ca-85cb-b2b9a18b9137
name
objectย 
optional
description
objectย 
optional
code
stringย 
optional
The discount code the Customer inserts on the checkout page in order to activate the bundle offer.
Example:
2FOR1BUNDLE
conditions
array[objectย (DiscountRuleCondition) {5}]ย 
optional
Conditions required to activate the discount rule
actions
array[objectย (DiscountRuleAction) {6}]ย 
optional
Actions taken once conditions of the discount rule are met
conditions_criteria
stringย 
optional
Criteria to meet for the conditions to apply (e.g., "all", "any")
Example:
all
uses_total
integerย 
optional
Total number of uses allowed for this discount rule.
Example:
100
uses_customer
integerย 
optional
Total number of uses allowed per customer for this discount rule.
Example:
1
enabled
booleanย 
optional
Activation Status of the discount rule, whether it's enabled or not
Example:
true
auto_adding
booleanย 
optional
Whether the discount rule is automatically added to the cart. If true, the discount rule will be automatically applied to the basket if its conditions are met.
Example:
true
status_code
stringย 
optional
Current status code of the discount rule.
Example:
expired
start_date
stringย <date>
optional
Start date of the discount rule
Example:
2022-06-01
end_date
stringย <date>
optional
End date of the discount rule
Example:
2022-06-30
meta
objectย 
optional
Additional metadata for the discount rule
page
integerย 
optional
The current page of the pagination result
Example:
1
next_page
integerย ย |ย nullย 
optional
The next page of the pagination result. null if there is no next page.
Example:
null
last_page
integerย 
optional
The last page of the pagination result
Example:
1
total
integerย 
optional
The total number of results
Example:
1
message
objectย 
optional
Message with status information
Example
{
  "status": {},
  "discount_rules": [
    {
      "id": "652285f7-11af-41ca-85cb-b2b9a18b9137",
      "name": {
        "en": "Buy One, Get One Free",
        "ar": "ุงุดุชุฑ ูˆุงุญุฏุฉ ูˆุงุญุตู„ ุนู„ู‰ ูˆุงุญุฏุฉ ู…ุฌุงู†ู‹ุง"
      },
      "description": {
        "en": "When you purchase this product, you will receive a 50% discount on selected products.",
        "ar": "ุนู†ุฏ ุดุฑุงุฆูƒ ู„ู‡ุฐุง ุงู„ู…ู†ุชุฌุŒ ุณุชุญุตู„ ุนู„ู‰ ุฎุตู… 50% ุนู„ู‰ ุงู„ู…ู†ุชุฌุงุช ุงู„ู…ุฎุชุงุฑุฉ."
      },
      "code": "2FOR1BUNDLE",
      "conditions": [
        {
          "field": "products_quantity",
          "value": 1,
          "operator": ">=",
          "product_ids": [
            "string"
          ],
          "products": {
            "next": "string",
            "previous": "string",
            "count": 0,
            "results": [
              {
                "is_external_product": false,
                "id": null,
                "parent_id": null,
                "product_class": "string",
                "sku": "string",
                "barcode": "string",
                "name": {
                  "ar": "string",
                  "en": "string"
                },
                "slug": "string",
                "price": 0,
                "short_description": null,
                "sale_price": 50,
                "formatted_price": "10$",
                "formatted_sale_price": "8$",
                "currency": "string",
                "currency_symbol": "string",
                "attributes": [
                  {}
                ],
                "categories": [
                  {}
                ],
                "display_order": null,
                "has_options": false,
                "has_fields": true,
                "images": [
                  {}
                ],
                "is_draft": true,
                "quantity": null,
                "is_infinite": true,
                "html_url": "string",
                "weight": {
                  "value": 100,
                  "unit": "kg"
                },
                "keywords": [
                  {}
                ],
                "requires_shipping": true,
                "is_taxable": false,
                "structure": "string",
                "seo": {
                  "title": {
                    "ar": "string",
                    "en": "string"
                  },
                  "description": {}
                },
                "rating": {
                  "average": 3.9,
                  "total_count": 400,
                  "1_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "2_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "3_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "4_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "5_ratings": {
                    "percentage": 0,
                    "count": 0
                  }
                },
                "store_id": 0,
                "purchase_restrictions": {
                  "min_quantity_per_cart": null,
                  "max_quantity_per_cart": null,
                  "availability_period_start": null,
                  "availability_period_end": null,
                  "sale_price_period_start": "2024-09-18T21:00:00.000000Z",
                  "sale_price_period_end": "2024-09-19T20:59:59.000000Z"
                },
                "metafields": null,
                "meta": {},
                "badge": {
                  "body": {
                    "ar": "string",
                    "en": "string"
                  },
                  "icon": {
                    "code": "string"
                  }
                },
                "related_products_settings": "string",
                "related_products_title": null,
                "variants": [
                  {}
                ],
                "options": [
                  {}
                ],
                "cost": 0,
                "is_published": true,
                "waiting_customers_count": null,
                "description": {},
                "custom_user_input_fields": [
                  {}
                ],
                "custom_option_fields": [
                  {}
                ],
                "related_products": [
                  {}
                ],
                "next_product": null,
                "previous_product": null,
                "group_products": [
                  {
                    "id": "143",
                    "item": {
                      "id": "string",
                      "product_class": null,
                      "sku": "string",
                      "barcode": "string",
                      "parent_id": null,
                      "name": {
                        "ar": "string",
                        "en": "string"
                      },
                      "slug": "string",
                      "price": 0,
                      "short_description": null,
                      "sale_price": null,
                      "formatted_price": "string",
                      "formatted_sale_price": null,
                      "currency": "string",
                      "currency_symbol": "string",
                      "attributes": [
                        {}
                      ],
                      "categories": [
                        {}
                      ],
                      "display_order": null,
                      "has_options": true,
                      "has_fields": true,
                      "images": [
                        {}
                      ],
                      "is_draft": true,
                      "quantity": null,
                      "is_infinite": true,
                      "html_url": "string",
                      "weight": {
                        "value": null,
                        "unit": "string"
                      },
                      "keywords": [
                        {}
                      ],
                      "requires_shipping": true,
                      "is_taxable": true,
                      "structure": "string",
                      "seo": {
                        "title": {
                          "ar": "string",
                          "en": "string"
                        },
                        "description": {}
                      },
                      "rating": {
                        "average": 4.1,
                        "total_count": 50,
                        "1_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "2_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "3_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "4_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "5_ratings": {
                          "percentage": 0,
                          "count": 0
                        }
                      },
                      "store_id": 0,
                      "purchase_restrictions": {
                        "min_quantity_per_cart": null,
                        "max_quantity_per_cart": null,
                        "availability_period_start": null,
                        "availability_period_end": null
                      },
                      "metafields": null,
                      "meta": null,
                      "badge": null,
                      "related_products_settings": "string",
                      "related_products_title": null,
                      "created_at": "string",
                      "updated_at": "string",
                      "options": [
                        {}
                      ],
                      "group_products": null,
                      "stocks": [
                        {
                          "id": "string",
                          "location": {
                            "id": "string",
                            "name": {},
                            "type": "string"
                          },
                          "available_quantity": null,
                          "is_infinite": false
                        }
                      ]
                    },
                    "origin_product_id": "string",
                    "item_id": "string",
                    "item_quantity": 0,
                    "in_stock": true
                  }
                ],
                "stocks": [
                  {
                    "id": "string",
                    "location": {
                      "id": "string",
                      "name": {
                        "ar": "string"
                      },
                      "type": "string"
                    },
                    "available_quantity": null,
                    "is_infinite": true
                  }
                ],
                "sold_products_count": null,
                "created_at": "string",
                "updated_at": "string"
              }
            ],
            "filters": {}
          }
        }
      ],
      "actions": [
        {
          "type": "percentage",
          "field": "products",
          "value": 50,
          "product_ids": [
            "string"
          ],
          "products_quantity": 1,
          "products": {
            "next": "string",
            "previous": "string",
            "count": 0,
            "results": [
              {
                "is_external_product": false,
                "id": null,
                "parent_id": null,
                "product_class": "string",
                "sku": "string",
                "barcode": "string",
                "name": {
                  "ar": "string",
                  "en": "string"
                },
                "slug": "string",
                "price": 0,
                "short_description": null,
                "sale_price": 50,
                "formatted_price": "10$",
                "formatted_sale_price": "8$",
                "currency": "string",
                "currency_symbol": "string",
                "attributes": [
                  {}
                ],
                "categories": [
                  {}
                ],
                "display_order": null,
                "has_options": false,
                "has_fields": true,
                "images": [
                  {}
                ],
                "is_draft": true,
                "quantity": null,
                "is_infinite": true,
                "html_url": "string",
                "weight": {
                  "value": 100,
                  "unit": "kg"
                },
                "keywords": [
                  {}
                ],
                "requires_shipping": true,
                "is_taxable": false,
                "structure": "string",
                "seo": {
                  "title": {
                    "ar": "string",
                    "en": "string"
                  },
                  "description": {}
                },
                "rating": {
                  "average": 3.9,
                  "total_count": 400,
                  "1_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "2_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "3_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "4_ratings": {
                    "percentage": 0,
                    "count": 0
                  },
                  "5_ratings": {
                    "percentage": 0,
                    "count": 0
                  }
                },
                "store_id": 0,
                "purchase_restrictions": {
                  "min_quantity_per_cart": null,
                  "max_quantity_per_cart": null,
                  "availability_period_start": null,
                  "availability_period_end": null,
                  "sale_price_period_start": "2024-09-18T21:00:00.000000Z",
                  "sale_price_period_end": "2024-09-19T20:59:59.000000Z"
                },
                "metafields": null,
                "meta": {},
                "badge": {
                  "body": {
                    "ar": "string",
                    "en": "string"
                  },
                  "icon": {
                    "code": "string"
                  }
                },
                "related_products_settings": "string",
                "related_products_title": null,
                "variants": [
                  {}
                ],
                "options": [
                  {}
                ],
                "cost": 0,
                "is_published": true,
                "waiting_customers_count": null,
                "description": {},
                "custom_user_input_fields": [
                  {}
                ],
                "custom_option_fields": [
                  {}
                ],
                "related_products": [
                  {}
                ],
                "next_product": null,
                "previous_product": null,
                "group_products": [
                  {
                    "id": "143",
                    "item": {
                      "id": "string",
                      "product_class": null,
                      "sku": "string",
                      "barcode": "string",
                      "parent_id": null,
                      "name": {
                        "ar": "string",
                        "en": "string"
                      },
                      "slug": "string",
                      "price": 0,
                      "short_description": null,
                      "sale_price": null,
                      "formatted_price": "string",
                      "formatted_sale_price": null,
                      "currency": "string",
                      "currency_symbol": "string",
                      "attributes": [
                        {}
                      ],
                      "categories": [
                        {}
                      ],
                      "display_order": null,
                      "has_options": true,
                      "has_fields": true,
                      "images": [
                        {}
                      ],
                      "is_draft": true,
                      "quantity": null,
                      "is_infinite": true,
                      "html_url": "string",
                      "weight": {
                        "value": null,
                        "unit": "string"
                      },
                      "keywords": [
                        {}
                      ],
                      "requires_shipping": true,
                      "is_taxable": true,
                      "structure": "string",
                      "seo": {
                        "title": {
                          "ar": "string",
                          "en": "string"
                        },
                        "description": {}
                      },
                      "rating": {
                        "average": 4.1,
                        "total_count": 50,
                        "1_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "2_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "3_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "4_ratings": {
                          "percentage": 0,
                          "count": 0
                        },
                        "5_ratings": {
                          "percentage": 0,
                          "count": 0
                        }
                      },
                      "store_id": 0,
                      "purchase_restrictions": {
                        "min_quantity_per_cart": null,
                        "max_quantity_per_cart": null,
                        "availability_period_start": null,
                        "availability_period_end": null
                      },
                      "metafields": null,
                      "meta": null,
                      "badge": null,
                      "related_products_settings": "string",
                      "related_products_title": null,
                      "created_at": "string",
                      "updated_at": "string",
                      "options": [
                        {}
                      ],
                      "group_products": null,
                      "stocks": [
                        {
                          "id": "string",
                          "location": {
                            "id": "string",
                            "name": {},
                            "type": "string"
                          },
                          "available_quantity": null,
                          "is_infinite": false
                        }
                      ]
                    },
                    "origin_product_id": "string",
                    "item_id": "string",
                    "item_quantity": 0,
                    "in_stock": true
                  }
                ],
                "stocks": [
                  {
                    "id": "string",
                    "location": {
                      "id": "string",
                      "name": {
                        "ar": "string"
                      },
                      "type": "string"
                    },
                    "available_quantity": null,
                    "is_infinite": true
                  }
                ],
                "sold_products_count": null,
                "created_at": "string",
                "updated_at": "string"
              }
            ],
            "filters": {}
          }
        }
      ],
      "conditions_criteria": "all",
      "uses_total": 100,
      "uses_customer": 1,
      "enabled": true,
      "auto_adding": true,
      "status_code": "expired",
      "start_date": "2022-06-01",
      "end_date": "2022-06-30",
      "meta": {
        "category_id": "387031",
        "auto_add_products": true
      }
    }
  ],
  "page": 1,
  "next_page": null,
  "last_page": 1,
  "total": 1,
  "message": {}
}
Modified atย 2025-01-29 06:22:47
Previous
Bundle Offers
Next
Loyalty Program
Built with