Download OpenAPI specification:Download
This is a documentation that covers all of BayEngage's Custom APIs.
Disclaimer: These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future.
To use these APIs, authentication is required. Please refer to the V2 documentation for details on the Authentication API.
url: https://developer.targetbay.com/bayengage/v2/#tag/Authentication/paths/~1oauth2~1token/post
The Insights API delivers key email campaign metrics like opens, clicks, sales conversions, and deliverability filtered by date.
Retrieves sales analytics for products within a specified date range, including quantity sold and product details.
Authorization: This endpoint requires a bearer token with the read_preview scope
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| start_date required | string <DD-MM-YYYY HH:MM AM/PM> Example: start_date=01-01-2025 Start date for the sales data in dd-mm-yyyy format |
| end_date required | string <DD-MM-YYYY HH:MM AM/PM> Example: end_date=30-01-2025 End date for the sales data in d-m-yyyy format |
| page | integer >= 1 Default: 1 Example: page=1 The page number for pagination |
| limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 The number of items to return per page |
| sort_by | string Default: "desc" Enum: "asc" "desc" Example: sort_by=asc Sort order for quantity sold |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "products": [
- {
- "id": 201001,
- "title": "Apple iPhone 15 Pro Max 256GB",
- "platform_product_id": "4829301745",
- "price": "899.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 45
}, - {
- "id": 201002,
- "title": "Dell XPS 13 Laptop - Intel i7, 16GB RAM, 512GB SSD",
- "platform_product_id": "9357201843",
- "price": "1249.00",
- "description": null,
- "type": "physical",
- "quantity_sold": 18
}, - {
- "id": 201003,
- "title": "Samsung Galaxy Buds2 Pro Wireless Earbuds",
- "platform_product_id": "9357201483",
- "price": "199.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 65
}, - {
- "id": 201004,
- "title": "Apple Watch Series 9 GPS 45mm",
- "platform_product_id": "4867201843",
- "price": "349.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 30
}, - {
- "id": 201005,
- "title": "Logitech MX Master 3S Wireless Mouse",
- "platform_product_id": "9357201123",
- "price": "129.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 72
}, - {
- "id": 201006,
- "title": "Sony WH-1000XM5 Noise Cancelling Headphones",
- "platform_product_id": "5632201843",
- "price": "499.00",
- "description": null,
- "type": "physical",
- "quantity_sold": 25
}, - {
- "id": 201007,
- "title": "Anker PowerCore 26800 Portable Charger",
- "platform_product_id": "4859330489",
- "price": "59.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 110
}, - {
- "id": 201008,
- "title": "Nintendo Switch OLED Model - White Joy-Con",
- "platform_product_id": "7458615987",
- "price": "349.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 40
}, - {
- "id": 201009,
- "title": "Kindle Paperwhite Signature Edition (32 GB)",
- "platform_product_id": "1124896007",
- "price": "189.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 55
}, - {
- "id": 201010,
- "title": "GoPro HERO12 Black Action Camera",
- "platform_product_id": "9446572280",
- "price": "399.99",
- "description": null,
- "type": "physical",
- "quantity_sold": 22
}
], - "total": 15,
- "per_page": 10,
- "page": 1,
- "last_page": 2
}
}Retrieves a list of products filtered by inventory status insights including low inventory, high inventory, and newly added products.
Authorization: This endpoint requires a bearer token with the read_preview scope
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| insight_type required | string Enum: "low_inventory" "high_inventory" "newly_added" Example: insight_type=high_inventory Type of inventory insight to filter products |
| page | integer >= 1 Default: 1 Example: page=1 The page number for pagination |
| limit | integer [ 1 .. 100 ] Default: 20 Example: limit=20 The number of items to return per page |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "products": [
- {
- "id": 201001,
- "price": "899.99",
- "title": "Apple iPhone 15 Pro Max 256GB",
- "inventory_quantity": 45
}, - {
- "id": 201002,
- "price": "1249.00",
- "title": "Dell XPS 13 Laptop - Intel i7, 16GB RAM, 512GB SSD",
- "inventory_quantity": 18
}, - {
- "id": 201003,
- "price": "199.99",
- "title": "Samsung Galaxy Buds2 Pro Wireless Earbuds",
- "inventory_quantity": 65
}, - {
- "id": 201004,
- "price": "349.99",
- "title": "Apple Watch Series 9 GPS 45mm",
- "inventory_quantity": 30
}, - {
- "id": 201005,
- "price": "129.99",
- "title": "Logitech MX Master 3S Wireless Mouse",
- "inventory_quantity": 72
}, - {
- "id": 201006,
- "price": "499.00",
- "title": "Sony WH-1000XM5 Noise Cancelling Headphones",
- "inventory_quantity": 25
}, - {
- "id": 201007,
- "price": "59.99",
- "title": "Anker PowerCore 26800 Portable Charger",
- "inventory_quantity": 110
}, - {
- "id": 201008,
- "price": "139.99",
- "title": "Kindle Paperwhite 11th Gen 8GB",
- "inventory_quantity": 40
}, - {
- "id": 201009,
- "price": "399.00",
- "title": "GoPro HERO12 Black Action Camera",
- "inventory_quantity": 22
}, - {
- "id": 201010,
- "price": "1599.00",
- "title": "Nikon Z6 II Mirrorless Camera Body",
- "inventory_quantity": 15
}
], - "total": 248,
- "per_page": 10,
- "page": 1,
- "last_page": 25
}
}Retrieves a list of categories filtered by purchase analytics including most purchased, least purchased, and newly added categories.
Authorization: This endpoint requires a bearer token with the read_preview scope
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| insight_type required | string Enum: "most_purchased" "least_purchased" Example: insight_type=least_purchased Type of purchase insight to filter categories |
| page | integer >= 1 Default: 1 Example: page=1 The page number for pagination |
| limit | integer [ 1 .. 100 ] Default: 20 Example: limit=20 The number of items to return per page |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "categories": [
- {
- "id": 15322,
- "title": "Smartphones",
- "handle": "smartphones",
- "image": null,
- "total_products_sold": 450
}, - {
- "id": 15323,
- "title": "Laptops",
- "handle": "laptops",
- "image": null,
- "total_products_sold": 320
}, - {
- "id": 15324,
- "title": "Tablets",
- "handle": "tablets",
- "image": null,
- "total_products_sold": 180
}, - {
- "id": 15325,
- "title": "Smartwatches",
- "handle": "smartwatches",
- "image": null,
- "total_products_sold": 210
}, - {
- "id": 15326,
- "title": "Headphones",
- "handle": "headphones",
- "image": null,
- "total_products_sold": 520
}, - {
- "id": 15327,
- "title": "Gaming Consoles",
- "handle": "gaming-consoles",
- "image": null,
- "total_products_sold": 140
}, - {
- "id": 15328,
- "title": "Cameras",
- "handle": "cameras",
- "image": null,
- "total_products_sold": 95
}, - {
- "id": 15329,
- "title": "Home Audio",
- "handle": "home-audio",
- "image": null,
- "total_products_sold": 260
}, - {
- "id": 15330,
- "title": "Computer Accessories",
- "handle": "computer-accessories",
- "image": null,
- "total_products_sold": 400
}, - {
- "id": 15331,
- "title": "Power Banks",
- "handle": "power-banks",
- "image": null,
- "total_products_sold": 310
}
], - "total": 25,
- "per_page": 10,
- "page": 1,
- "last_page": 3
}
}Retrieves a paginated list of product categories based on the newly_added insight type.Useful for identifying recently added categories in the store.
Authorization: This endpoint requires a bearer token with the read_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| insight_type required | string Value: "newly_added" Example: insight_type=newly_added Insight type for filtering categories. Must be |
| page | integer >= 1 Default: 1 Example: page=1 The page number for pagination |
| limit | integer [ 1 .. 100 ] Default: 20 Example: limit=20 The number of items to return per page |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "categories": [
- {
- "id": 15322,
- "title": "Smartphones",
- "handle": "smartphones",
- "image": null
}, - {
- "id": 15323,
- "title": "Laptops",
- "handle": "laptops",
- "image": null
}, - {
- "id": 15324,
- "title": "Tablets",
- "handle": "tablets",
- "image": null
}, - {
- "id": 15325,
- "title": "Smartwatches",
- "handle": "smartwatches",
- "image": null
}, - {
- "id": 15326,
- "title": "Headphones",
- "handle": "headphones",
- "image": null
}, - {
- "id": 15327,
- "title": "Gaming Consoles",
- "handle": "gaming-consoles",
- "image": null
}, - {
- "id": 15328,
- "title": "Cameras",
- "handle": "cameras",
- "image": null
}, - {
- "id": 15329,
- "title": "Home Audio",
- "handle": "home-audio",
- "image": null
}, - {
- "id": 15330,
- "title": "Computer Accessories",
- "handle": "computer-accessories",
- "image": null
}, - {
- "id": 15331,
- "title": "Power Banks",
- "handle": "power-banks",
- "image": null
}
], - "total": 25,
- "per_page": 10,
- "page": 1,
- "last_page": 3
}
}The Media API lets users fetch a list of uploaded media files through a GET and POST request. It's useful for managing assets like images and documents across campaigns and templates.
Retrieves user-uploaded media from the BayEngage Content Studio.
Authorization: Requires Bearer Token with read_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| page | integer >= 1 Default: 1 Example: page=1 The page number for pagination. |
| limit | integer [ 1 .. 100 ] Default: 10 Example: limit=10 The number of items to return per page. |
| format | string Enum: "image/gif" "image/jpeg" "image/png" "image/webp" Example: format=image/png Filter results by file format. |
| source | string Enum: "url" "file" "ai_generated" Example: source=file Filter results by the source of the media file. |
| search | string Example: search=banner Search media assets by name. |
| sort_by | string Enum: "id:desc" "id:asc" Example: sort_by=id:desc Sort media by ID in ascending or descending order. |
{- "success": true,
- "code": 0,
- "locale": "en",
- "message": "OK",
- "data": {
- "media": [
- {
- "platform_media_id": 197731,
- "file_name": "Iphone-17-Pro-front.png",
- "size": "213.93 KB",
- "custom_properties": {
- "source": "file"
},
}, - {
- "platform_media_id": 197732,
- "file_name": "Samsung-earbuds-2-Pro.png",
- "size": "108.93 KB",
- "custom_properties": {
- "source": "url"
},
}, - {
- "platform_media_id": 197888,
- "file_name": "ai-generated-laptop.png",
- "size": "1.69 MB",
- "custom_properties": {
- "source": "ai_generated",
- "state_id": 154,
- "generated_at": "2025-09-19T09:55:03.173968Z",
- "is_generated": true,
- "request_parameters": {
- "count": 1,
- "style": "Photorealistic",
- "prompt": "Place the product on a table and change its color to rainbow.",
- "quality": "high",
- "aspect_ratio": "1024x1024"
}
},
}
], - "image_source": "user_uploaded",
- "total": 3,
- "per_page": 10,
- "page": 1,
- "last_page": 1
}
}Retrieves a list of icons from BayEngage's Content Studio.
Authorization: Requires Bearer Token with read_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| page | integer >= 1 Example: page=1 Page number for pagination. |
| limit | integer >= 1 Example: limit=20 Number of icons to return per page. |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "items": [
- {
- "id": 26,
- "title": "Christmas santa snow man",
- "created_at": "2022-12-09T09:46:10.000000Z"
}, - {
- "id": 25,
- "title": "Santa Christmas Eve",
- "created_at": "2022-12-09T09:44:54.000000Z"
}, - {
- "id": 24,
- "title": "Santa Christmas Gifts",
- "created_at": "2022-12-09T09:43:53.000000Z"
}, - {
- "id": 23,
- "title": "Christmas holiday",
- "created_at": "2022-12-09T09:41:53.000000Z"
}, - {
- "id": 22,
- "title": "Christmas santa",
- "created_at": "2022-12-09T09:40:15.000000Z"
}, - {
- "id": 20,
- "title": "Thanksgiving Offer Sale",
- "created_at": "2022-11-11T10:05:50.000000Z"
}, - {
- "id": 19,
- "title": "Thanksgiving New Offer",
- "created_at": "2022-11-11T10:05:31.000000Z"
}, - {
- "id": 12,
- "title": "Black Friday Sale On",
- "created_at": "2022-11-11T10:03:51.000000Z"
}, - {
- "id": 13,
- "title": "Black Friday Sale Offer",
- "created_at": "2022-11-11T10:04:06.000000Z"
}, - {
- "id": 21,
- "title": "Cyber Monday Sale",
- "created_at": "2022-11-11T10:06:01.000000Z"
}, - {
- "id": 3,
- "title": "New Launch",
- "created_at": "2022-11-11T10:01:06.000000Z"
}, - {
- "id": 2,
- "title": "Offer Sale",
- "created_at": "2022-11-11T10:00:49.000000Z"
}, - {
- "id": 4,
- "title": "Season Offer",
- "created_at": "2022-11-11T10:01:20.000000Z"
}, - {
- "id": 5,
- "title": "Trust Badge",
- "created_at": "2022-11-11T10:01:45.000000Z"
}, - {
- "id": 6,
- "title": "Offer Sale",
- "created_at": "2022-11-11T10:01:59.000000Z"
}, - {
- "id": 7,
- "title": "Offer Price",
- "created_at": "2022-11-11T10:02:13.000000Z"
}, - {
- "id": 8,
- "title": "New Offer Sale",
- "created_at": "2022-11-11T10:02:36.000000Z"
}, - {
- "id": 9,
- "title": "Sale Offer",
- "created_at": "2022-11-11T10:02:51.000000Z"
}, - {
- "id": 10,
- "title": "Offer Sale",
- "created_at": "2022-11-11T10:03:08.000000Z"
}, - {
- "id": 11,
- "title": "Sale",
- "created_at": "2022-11-11T10:03:39.000000Z"
}
], - "image_source": "bayengage",
- "total": 26,
- "current_page_total": 20,
- "per_page": 20,
- "page": 1,
- "last_page": 2
}
}Uploads an image (either base64 encoded or URL) to the preview environment.
Authorization: Requires Bearer Token with write_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| image required | string Image base64 value or image URL |
{
}{- "success": true,
- "code": 0,
- "locale": "en",
- "message": "OK",
- "data": {
- "media": [
- {
- "size": 6102,
- "type": "url"
}
]
}
}The Coupon API lets users fetch a All the Coupon codes through a GET request. It's useful for check and verify the all available coupon codes along with values.
Retrieves a list of coupons with filtering, sorting, and pagination options.
Authorization: This endpoint requires a bearer token with the read_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| search | string Example: search=sale-coupon Search coupons by title. |
| type | string Enum: "static" "dynamic" "unique" "all" Example: type=static Filter coupons by type. |
| status | string Enum: "active" "expired" "action_needed" "all" Example: status=active Filter coupons by status. |
| sort_by | string Enum: "created_at:desc" "created_at:asc" "id:desc" "id:asc" Example: sort_by=created_at:desc Sort coupons by field and order. |
| page | integer Example: page=1 Page number for pagination. |
| limit | integer Example: limit=20 Number of records per page. |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "coupons": [
- {
- "id": 2727,
- "title": "New year offers",
- "handle": "coupon_newyearoffe",
- "type": "dynamic",
- "status": "active",
- "stage": 15,
- "usage_type": "all",
- "stats": {
- "used": 0,
- "total": 100,
- "import": {
- "status": "completed",
- "percentage": 100
}, - "skipped": 0,
- "available": 100,
- "requested_limit": 0,
- "recent_import_total": 100
}, - "discount_type": "fixed_amount",
- "value": "20.00",
- "starts_at": "2025-09-29T08:04:02.000000Z",
- "expire_at": null,
- "created_at": "2025-09-29T08:04:02.000000Z",
- "updated_at": "2025-09-29T08:07:15.000000Z",
- "deleted_at": null
}, - {
- "id": 2724,
- "title": "Expired coupon",
- "handle": "coupon_expiredcouo",
- "type": "static",
- "status": "expired",
- "stage": 5,
- "usage_type": "all",
- "stats": {
- "total": 1,
- "import": {
- "status": "completed",
- "percentage": 100
}, - "skipped": 0,
- "available": 1,
- "recent_import_total": 1
}, - "discount_type": null,
- "value": null,
- "starts_at": "2025-09-27T11:27:10.000000Z",
- "expire_at": null,
- "created_at": "2025-09-27T11:27:10.000000Z",
- "updated_at": "2025-09-27T11:27:15.000000Z",
- "deleted_at": null
}, - {
- "id": 2723,
- "title": "Dynamic coupon",
- "handle": "coupon_dynancoup",
- "type": "unique",
- "status": "active",
- "stage": 10,
- "usage_type": "all",
- "stats": {
- "total": 19,
- "import": {
- "status": "completed",
- "percentage": 100
}, - "skipped": 0,
- "available": 2,
- "notification": {
- "used_percentage": 80
}, - "recent_import_total": 20
}, - "discount_type": null,
- "value": null,
- "starts_at": "2025-09-27T11:26:43.000000Z",
- "expire_at": "2035-09-26T17:16:18.000000Z",
- "created_at": "2025-09-27T11:26:43.000000Z",
- "updated_at": "2025-09-27T11:27:39.000000Z",
- "deleted_at": null
}, - {
- "id": 2722,
- "title": "Static Coupon",
- "handle": "coupon_staticcopp",
- "type": "static",
- "status": "active",
- "stage": 5,
- "usage_type": "all",
- "stats": {
- "used": 6514,
- "total": 1,
- "import": {
- "status": "completed",
- "percentage": 100
}, - "skipped": 0,
- "available": -6513,
- "notification": {
- "used_percentage": 651400
}, - "recent_import_total": 1
}, - "discount_type": null,
- "value": null,
- "starts_at": "2025-09-27T11:25:59.000000Z",
- "expire_at": null,
- "created_at": "2025-09-27T11:25:59.000000Z",
- "updated_at": "2025-09-27T11:26:03.000000Z",
- "deleted_at": null
}
], - "total": 4,
- "per_page": 20,
- "page": 1,
- "last_page": 1
}
}Retrieves coupon codes for a given coupon ID, with support for sorting, searching, filtering by type, and pagination.
Authorization: Requires a bearer token with the read_preview scope
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| couponId required | integer Example: 3065 The ID of the coupon |
| search | string Example: search=XZ5B56 Search by coupon code |
| type | string Enum: "issued_at" "claimed_at" "not-issued" "all" Example: type=all Filter coupon codes by type |
| sort_by | string Enum: "issued_at:desc" "issued_at:asc" "claimed_at:desc" "claimed_at:asc" Example: sort_by=issued_at:asc Sort coupon codes by issued or claimed date |
| page | integer Example: page=1 Page number for pagination |
| limit | integer Example: limit=20 Number of records per page |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "coupon_codes": [
- {
- "id": 707196,
- "platform_coupon_id": 1117,
- "code": "7H6XJQ",
- "type": "read",
- "stage": "read",
- "stage_value": 20,
- "couponable_id": 45728,
- "couponable_type": 2,
- "customer_id": 135406098,
- "email": "johndoe@targetbay.com",
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": 2,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": "2023-06-06T14:37:52.000000Z",
- "claimed_at": null
}, - {
- "id": 712165,
- "platform_coupon_id": 1117,
- "code": "229W5M",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 708590,
- "platform_coupon_id": 1117,
- "code": "ZZWGX6",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 708455,
- "platform_coupon_id": 1117,
- "code": "22R6F3",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 708071,
- "platform_coupon_id": 1117,
- "code": "22QTB8",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 711942,
- "platform_coupon_id": 1117,
- "code": "22PT33",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707308,
- "platform_coupon_id": 1117,
- "code": "22N7JK",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707878,
- "platform_coupon_id": 1117,
- "code": "22F5DW",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 708626,
- "platform_coupon_id": 1117,
- "code": "22F3R5",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 710183,
- "platform_coupon_id": 1117,
- "code": "22CP4K",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 711970,
- "platform_coupon_id": 1117,
- "code": "22B333",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707242,
- "platform_coupon_id": 1117,
- "code": "222RC7",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707405,
- "platform_coupon_id": 1117,
- "code": "229Q8H",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 708810,
- "platform_coupon_id": 1117,
- "code": "229H5N",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 709245,
- "platform_coupon_id": 1117,
- "code": "229H3K",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707589,
- "platform_coupon_id": 1117,
- "code": "228Z76",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707460,
- "platform_coupon_id": 1117,
- "code": "228P46",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 709152,
- "platform_coupon_id": 1117,
- "code": "227SF5",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 707508,
- "platform_coupon_id": 1117,
- "code": "2259J5",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}, - {
- "id": 708296,
- "platform_coupon_id": 1117,
- "code": "223769",
- "type": "unique",
- "stage": "unique",
- "stage_value": 10,
- "couponable_id": null,
- "couponable_type": null,
- "customer_id": null,
- "email": null,
- "platform_order_id": null,
- "order_id": null,
- "order_number": null,
- "country_code": null,
- "contact_id": null,
- "contact_type": null,
- "created_at": "2023-06-06T14:23:31.000000Z",
- "expired_at": null,
- "issued_at": null,
- "claimed_at": null
}
], - "total": 5001,
- "per_page": 20,
- "current_page": 1,
- "last_page": 251
}
}The Product attribute API lets users fetch the all available product attribute through a GET request. It's useful for check and verify the all available product attribute's along with values.
Fetches product attributes by custom attribute, pagination, and sorting.
Authorization: Requires Bearer Token with read_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| search | string Example: search=team Use Search to Get Specific Product Attributes |
| page | integer Example: page=1 Page number for pagination |
| limit | integer Example: limit=10 Number of records per page |
| sort_by | string Enum: "id:asc" "id:desc" Example: sort_by=id:desc Sort order by ID |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "custom_attributes": [
- {
- "id": 171,
- "handle": "brand",
- "label": "Brand"
}, - {
- "id": 172,
- "handle": "team",
- "label": "Team"
}, - {
- "id": 173,
- "handle": "style",
- "label": "Style"
}, - {
- "id": 174,
- "handle": "league",
- "label": "League"
}, - {
- "id": 175,
- "handle": "item_type",
- "label": "ItemType"
}, - {
- "id": 176,
- "handle": "sport",
- "label": "Sport"
}, - {
- "id": 177,
- "handle": "gender",
- "label": "Gender"
}, - {
- "id": 178,
- "handle": "condition",
- "label": "Condition"
}, - {
- "id": 179,
- "handle": "color",
- "label": "Color"
}, - {
- "id": 180,
- "handle": "size",
- "label": "Size"
}
], - "total": 15,
- "per_page": 10,
- "current_page": 1,
- "last_page": 2
}
}Fetches product attribute values by using custom attribute key, pagination, and sorting.
Authorization: Requires Bearer Token with read_preview scope.
**Disclaimer:** `These are experimental APIs and may be deprecated or changed without prior notice. For the most stable and up-to-date version, use the V2 APIs. These endpoints are expected to be promoted to V2 in the future`.
| attributeKey required | string Example: team Search by attribute handle by custom attribute |
| page | integer Example: page=1 Page number for pagination |
| limit | integer Example: limit=10 Number of records per page |
{- "success": true,
- "locale": "en",
- "message": "OK",
- "data": {
- "custom_attributes": [
- {
- "id": 71,
- "value": "Lakers"
}, - {
- "id": 72,
- "value": "Mavericks"
}, - {
- "id": 73,
- "value": "Celtics"
}, - {
- "id": 74,
- "value": "Suns"
}, - {
- "id": 75,
- "value": "Bulls"
}, - {
- "id": 76,
- "value": "Jazz"
}, - {
- "id": 77,
- "value": "Heat"
}, - {
- "id": 78,
- "value": "Pacers"
}, - {
- "id": 79,
- "value": "Warriors"
}, - {
- "id": 80,
- "value": "Hornets"
}
], - "total": 15,
- "per_page": 10,
- "current_page": 1,
- "last_page": 2
}
}