Update Market
Update an existing market.
Authorization
default You can retrieve your token by logging in.
In: header
Path Parameters
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
Sector ID. Must match an existing stored value.
English market name.
Arabic market name.
English description.
Arabic description.
Logo image URL. Must be a valid URL.
Cover image URL. Must be a valid URL.
Market email address. Must be a valid email address.
Phone prefix (country code). This field is required when phone is present. Must match an existing stored value.
Phone number. This field is required when phone_prefix is present. Must be at least 8.
Commercial Registration Number.
Tax number.
Whether the market is active.
Must be 6 digits.
Must be 6 digits.
Country ID. Prefer country_code; this is kept for older clients. Must match an existing stored value.
ISO 3166-1 alpha-2 country code. Resolved to country_id server-side; takes precedence when both are sent. Must match an existing stored value.
Starting order number. Must be at least 0.
Whether to display customer information on order invoices.
Whether to display the receipt messages on order invoices.
Whether to display product notes on order invoices.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.flavours.sa/dev/api/v2/markets/dolor" \ -H "X-API-Version: 2.3.0" \ -H "Content-Type: application/json" \ -d '{ "includes": [ "blanditiis" ] }'{
"meta": {
"code": 200,
"status": "success",
"message": "Business updated successfully."
},
"data": {
"id": "848aa3f5-fc3d-42d3-8cc9-4c6edd0140d0",
"sector_id": 10,
"name_en": "Howell, Baumbach and Hagenes",
"name_ar": "Ankunding, Marks and Stracke",
"description_en": "Culpa et inventore quo error sed.",
"description_ar": null,
"logo_img": "https://via.placeholder.com/200x200.png/006655?text=business+logo+quidem",
"cover_img": "https://via.placeholder.com/200x200.png/00cc77?text=business+cover+dolorem",
"email": "[email protected]",
"phone_prefix": "973",
"phone_number": "7148591204",
"crn": "030-077-7963",
"tax_number": "90476326386",
"created_by": null,
"email_verified_at": 1787446674909,
"phone_verified_at": 1787446674909,
"created_at": 1787446674760,
"updated_at": 1787446695752,
"deleted_at": null,
"is_active": true,
"merchant_id": null,
"reseller_id": null,
"slug": "kunde-ltd",
"code": "ENT-0000000001",
"links": {
"website": null,
"instagram": null,
"youtube": null,
"x": null,
"call_center": null
},
"branches_count": 5,
"active_branches_count": 4,
"inactive_branches_count": 1,
"level": null,
"phone": "7148591204",
"merchant": null,
"reseller": null,
"location": null,
"plans": [],
"setting": null,
"sector": {
"id": 10,
"icon": "👟",
"name_en": "rem consequatur",
"name_ar": "rem consequatur",
"type": "GROCERY",
"deleted_at": null,
"pages": [],
"features": []
}
}
}{
"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": 422,
"status": "error",
"message": "The email must be a valid email address."
},
"data": [
{
"code": 0,
"message": "The email must be a valid email address.",
"field": "email"
}
]
}{
"meta": {
"code": 500,
"status": "error",
"message": "Internal server error."
},
"data": null
}