Preview Modifier Charge
Compute a per-modifier before/after price, tax, and total for a paginated list of product modifiers against a priceable (order type or payment method), reflecting saved overrides or a staged overrides payload.
Authorization
API-TOKEN Your partner API key. Send it in the API-TOKEN header on every request.
In: header
Header Parameters
API contract version to target. See the Changelog for what changed in each version.
"2.0.0""2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"Request Body
application/json
Page number for pagination. Must be at least 1.
Number of items per page. Must be at least 1.
Search in the product name.
Sort field and direction (e.g., price, -price).
Key of the priceable (order type key or payment method key). This field is required when priceable_type is present.
Priceable the charge belongs to (ORDER_TYPE or PAYMENT_METHOD). This field is required when priceable_id is present.
"ORDER_TYPE" | "PAYMENT_METHOD"Per-product charge amount. This field is required when values is not present.
Charge amount type (NOMINAL or PERCENT). Required unless "values" is sent. This field is required when values is not present.
"PERCENT" | "NOMINAL"Multiple stacked charges applied in order (alternative to a single value/value_type, e.g. a payment method with several charges). Each is summed onto the running price. Must have at least 1 items.
ENTIRELY applies the charge to every modifier; SPECIFIC charges only modifiers with an override.
"ENTIRELY" | "SPECIFIC"Staged per-modifier charges. When present, the server treats them as authoritative instead of the saved overrides. Must have at least 0 items.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.flavours.sa/dev/api/v2/products/modifiers/preview" \ -H "X-API-Version: 2.3.0" \ -H "Content-Type: application/json" \ -d '{ "mode": "ENTIRELY" }'{
"meta": {
"code": 200,
"status": "success",
"message": "Modifier charge preview retrieved successfully."
},
"data": {
"current_page": 1,
"data": [
{
"id": 738792818449241,
"modifierable_id": "9d8ae5db-c3cc-449e-8246-c397920a9e26",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 10,
"tax": 0,
"total": 10,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": null,
"product_id": "9d8ae5db-c3cc-449e-8246-c397920a9e26",
"sku": null,
"updated_at": 1792593340420,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "10.2000000000",
"total": "10.2000000000"
},
"barcode_img": null,
"product": {
"id": "9d8ae5db-c3cc-449e-8246-c397920a9e26",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Docs Burger",
"name_ar": "برجر",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 42,
"images": null,
"is_active": true,
"created_at": 1792593340422,
"updated_at": 1792593340422,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792820452320,
"modifierable_id": "194feeae-e875-4fb7-a7d3-086b53eaf3e8",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "194feeae-e875-4fb7-a7d3-086b53eaf3e8",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "194feeae-e875-4fb7-a7d3-086b53eaf3e8",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Est occaecati",
"name_ar": "modi",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 43,
"images": null,
"is_active": true,
"created_at": 1792593340930,
"updated_at": 1792593340930,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792822714486,
"modifierable_id": "828ce6f8-2be0-4ac8-8baf-c57f10675f41",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "828ce6f8-2be0-4ac8-8baf-c57f10675f41",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "828ce6f8-2be0-4ac8-8baf-c57f10675f41",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Ex dicta",
"name_ar": "velit",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 44,
"images": null,
"is_active": true,
"created_at": 1792593341483,
"updated_at": 1792593341483,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792827388285,
"modifierable_id": "53aa23cb-a3f1-44ec-a318-70d4050d207f",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "53aa23cb-a3f1-44ec-a318-70d4050d207f",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "53aa23cb-a3f1-44ec-a318-70d4050d207f",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Vero beatae",
"name_ar": "at",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 45,
"images": null,
"is_active": true,
"created_at": 1792593342625,
"updated_at": 1792593342625,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792831492792,
"modifierable_id": "df13765d-0d60-46c6-9ae3-47f1c888c3f3",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "df13765d-0d60-46c6-9ae3-47f1c888c3f3",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "df13765d-0d60-46c6-9ae3-47f1c888c3f3",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Autem laborum",
"name_ar": "quod",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 46,
"images": null,
"is_active": true,
"created_at": 1792593343627,
"updated_at": 1792593343627,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792831559854,
"modifierable_id": "94068f90-2f01-460c-bff1-56772b5abe02",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792831618439,
"modifierable_id": "3922e8d4-439a-4b4c-a726-fc11dbd96061",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792831793506,
"modifierable_id": "7c2939f2-bf43-4fbf-a399-8a3d2ca9b857",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "7c2939f2-bf43-4fbf-a399-8a3d2ca9b857",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "7c2939f2-bf43-4fbf-a399-8a3d2ca9b857",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Aspernatur id",
"name_ar": "natus",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 47,
"images": null,
"is_active": true,
"created_at": 1792593343699,
"updated_at": 1792593343699,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792831837654,
"modifierable_id": "f142f096-e96b-4190-81fe-1b2fea7d055d",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792832002629,
"modifierable_id": "2bb26b7a-7333-4157-bc1e-cc84eb67aa2b",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "2bb26b7a-7333-4157-bc1e-cc84eb67aa2b",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "2bb26b7a-7333-4157-bc1e-cc84eb67aa2b",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Quibusdam repellendus",
"name_ar": "et",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 48,
"images": null,
"is_active": true,
"created_at": 1792593343751,
"updated_at": 1792593343751,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792832050558,
"modifierable_id": "d00cea0f-e6da-42ea-989c-ebb776d96372",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792832219200,
"modifierable_id": "a42dbf45-2dbe-4fbe-a4b0-470a7d2c8715",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "a42dbf45-2dbe-4fbe-a4b0-470a7d2c8715",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "a42dbf45-2dbe-4fbe-a4b0-470a7d2c8715",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Cupiditate reprehenderit",
"name_ar": "totam",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 49,
"images": null,
"is_active": true,
"created_at": 1792593343803,
"updated_at": 1792593343803,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792832270764,
"modifierable_id": "0de5d00f-c615-4735-8857-7e7023b91ac0",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792832293067,
"modifierable_id": "40f6301c-ad74-4174-9f4f-dfaed1c90829",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792832512125,
"modifierable_id": "1c075e42-e74c-421c-8ab7-9c5a8016359a",
"name_en": null,
"name_ar": null,
"type": "OPTION",
"calorie": null,
"price": 20,
"tax": 0,
"total": 20,
"cost": null,
"profit": null,
"is_tax_included": true,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"modifierable_type": "PRODUCT_MODIFIER_PRODUCT",
"stock": 50,
"product_id": "1c075e42-e74c-421c-8ab7-9c5a8016359a",
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "20.4000000000",
"total": "20.4000000000"
},
"barcode_img": null,
"product": {
"id": "1c075e42-e74c-421c-8ab7-9c5a8016359a",
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": "2438ea30-370a-4ca0-9423-f635f83f1bec",
"name_en": "Sint iste",
"name_ar": "et",
"description_en": null,
"description_ar": null,
"stock": 0,
"order": 50,
"images": null,
"is_active": true,
"created_at": 1792593343875,
"updated_at": 1792593343875,
"deleted_at": null,
"rating_amount": 0,
"rating_avg": "0.00",
"sold_amount": 0,
"sold_revenue": 0,
"qoyod_id": null,
"min_additionals": null,
"max_additionals": null,
"is_global": false,
"product_category_id": null,
"preparation_time": null
}
},
{
"id": 738792832571996,
"modifierable_id": "4d61b325-d103-40c7-bf65-33d63c993910",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": null,
"price": 2,
"tax": 0,
"total": 2,
"cost": null,
"profit": null,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792832780060,
"modifierable_id": "4c4183d0-ce73-4e0f-ac68-9039575fff6c",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": 40,
"price": 2,
"tax": 0,
"total": 2,
"cost": 1,
"profit": 1,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792833092236,
"modifierable_id": "7434413f-b8af-444e-9acd-b424aef1322c",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": 40,
"price": 2,
"tax": 0,
"total": 2,
"cost": 1,
"profit": 1,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792833262640,
"modifierable_id": "22601157-c76e-456b-b114-0f649577780d",
"name_en": "Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": 40,
"price": 2,
"tax": 0,
"total": 2,
"cost": 1,
"profit": 1,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "2.0400000000",
"total": "2.0400000000"
},
"barcode_img": null,
"product": null
},
{
"id": 738792833567133,
"modifierable_id": "80e863e3-e1e0-45e6-8a57-2d3921aebc6a",
"name_en": "Extra Garlic Sauce",
"name_ar": "صلصة ثوم",
"type": "ADDITIONAL",
"calorie": 40,
"price": 0,
"tax": 0,
"total": 0,
"cost": 1,
"profit": 0,
"is_tax_included": false,
"deleted_at": null,
"barcode": null,
"weight_amount": null,
"weight_unit": null,
"market_id": "eef0da10-dd19-4a4c-ab3d-23dd1b548801",
"branch_id": null,
"modifierable_type": "PRODUCT_MODIFIER_ADDON_GROUP",
"stock": null,
"product_id": null,
"sku": null,
"updated_at": null,
"charge_value": 2,
"charge_value_type": "PERCENT",
"is_override": false,
"preview": {
"tax": "0",
"price": "0",
"total": "0"
},
"barcode_img": null,
"product": null
}
],
"first_page_url": "https://localhost:8000/api/v2/products/modifiers/preview?page=1",
"from": 1,
"last_page": 2,
"last_page_url": "https://localhost:8000/api/v2/products/modifiers/preview?page=2",
"links": [
{
"url": null,
"label": "« Previous",
"page": null,
"active": false
},
{
"url": "https://localhost:8000/api/v2/products/modifiers/preview?page=1",
"label": "1",
"page": 1,
"active": true
},
{
"url": "https://localhost:8000/api/v2/products/modifiers/preview?page=2",
"label": "2",
"page": 2,
"active": false
},
{
"url": "https://localhost:8000/api/v2/products/modifiers/preview?page=2",
"label": "Next »",
"page": 2,
"active": false
}
],
"next_page_url": "https://localhost:8000/api/v2/products/modifiers/preview?page=2",
"path": "https://localhost:8000/api/v2/products/modifiers/preview",
"per_page": 20,
"prev_page_url": null,
"to": 20,
"total": 26
}
}{
"meta": {
"code": 401,
"status": "error",
"message": "Unauthenticated."
},
"data": null
}{
"meta": {
"code": 403,
"status": "error",
"message": "Unauthorized."
},
"data": null
}{
"meta": {
"code": 404,
"status": "error",
"message": "Resource not found."
},
"data": null
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}