- 1Merchant API
- Welcome 👋
- Get Started
- 水合失败
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- 测试
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Orders
- Webhooks - Store Events
- 其他资源-Module
- 其他资源 Copy
- 2Partner Apps APIs
- 3Shipping and Fulfilment API
- 4Twilight Themes
- Getting Started
- Requirements & Review
- Files and Folders Structure
- Twig Template Engine
- Theme Architecture
- Layouts
- Pages
- Componenets
- Overview
- Home Components
- Youtube
- Fixed banner
- Testimonials
- Parallax background
- Photos slider
- Store features
- Square photos
- Fixed products
- Products slider
- Featured products - Style 1
- Featured Products - Style 2
- Featured Products - Style 3
- Brands
- Enhanced Square Banners
- Main Links
- Enhanced Slider
- Slider Products with Headers
- Latest Products
- Vertical Menu with Slider
- Product Components
- Common Components
- Change Log
- 5Twilight JS SDK
- 6Twilight Web Components
- 7Salla CLI
- 8[ Internal ] Apps APIs
- 9[Internal] AI Services APIs
- 10这是一个长长长长长长长长长长长长的文件夹
- 11这是一个长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长的文件夹 Copy
Update Special Offer
Develop Env
https://echo.apifox.com/anything
Develop Env
https://echo.apifox.com/anything
PUT
https://echo.apifox.com/anything
Special Offers
Last modified:2025-02-20 07:53:20
Maintainer:Not configured
specialoffers
as a path parameter.Scopes
specialoffers.read_write
- Special Offers Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
specialoffer
integer
required
Body Params application/json
allOf {2}
optional
object
optional
name
string
required
message
string
optional
applied_channel
enum<string>
required
Allowed values:
browserbrowser_and_application
offer_type
enum<string>
required
Allowed values:
buy_x_get_ypercentagefixed_amountdiscounts_table
applied_to
enum<string>
required
Allowed values:
orderproductcategorypaymentMethod
start_date
string <date-time>
optional
expiry_date
string <date-time>
optional
min_purchase_amount
number
optional
min_items_count
number
optional
buy
object
optional
get
object
optional
object
optional
name
string
required
applied_channel
enum<string>
required
Allowed values:
browserbrowser_and_application
offer_type
enum<string>
required
Allowed value:
discounts_table
applied_to
enum<string>
required
Allowed values:
orderproductcategory
start_date
string <date-time>
optional
expiry_date
string <date-time>
required
status
enum<string>
optional
active
or inactive
Allowed values:
activeinactive
applied_with_coupon
boolean
optional
buy
object
optional
discounts_table
array [object {2}]
optional
offer_type
is discounts_table
Example
{
"name": "new offer",
"applied_channel": "browser_and_application",
"offer_type": "buy_x_get_y",
"applied_to": "product",
"expiry_date": "12/12/2025",
"min_purchase_amount": 100,
"min_items_count": 2,
"min_items": 0,
"buy": {
"type": "product",
"min_amount": 10,
"quantity": 3,
"products": [
401511871
],
"payment_methods": [
1473353380,
1298199463,
349994915
]
},
"get": {
"type": "product",
"discount_type": "percentage",
"discount_amount": 5,
"quantity": 20,
"products": [
401511871
]
}
}
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 PUT 'https://echo.apifox.com/anything/specialoffers/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "new offer",
"applied_channel": "browser_and_application",
"offer_type": "buy_x_get_y",
"applied_to": "product",
"expiry_date": "12/12/2025",
"min_purchase_amount": 100,
"min_items_count": 2,
"min_items": 0,
"buy": {
"type": "product",
"min_amount": 10,
"quantity": 3,
"products": [
401511871
],
"payment_methods": [
1473353380,
1298199463,
349994915
]
},
"get": {
"type": "product",
"discount_type": "percentage",
"discount_amount": 5,
"quantity": 20,
"products": [
401511871
]
}
}'
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
object (SpecialOffer)
optional
id
number
required
name
string
required
message
string
required
expiry_date
string
required
Example:
2025-01-01
start_date
string
required
offer_type
enum<string>
required
Allowed values:
buy_x_get_yfixed_amountpercentagediscounts_table
status
string
required
show_price_after_discount
boolean
required
show_discounts_table_message
boolean
required
buy
object
required
get
object
required
Example
{
"status": 200,
"success": true,
"data": {
"id": 1935541690,
"name": "new offer",
"message": "اشتري 3 قطع واحصل على 20 قطع خصم 5% من المنتجات التالية",
"expiry_date": "0000-00-00 00:00:00",
"start_date": null,
"offer_type": "buy_x_get_y",
"status": "inactive",
"show_price_after_discount": false,
"buy": {
"type": "product",
"quantity": 3,
"products": [
{
"id": 401511871,
"type": "food",
"promotion": {
"title": null,
"sub_title": null
},
"status": "sale",
"is_available": true,
"sku": "",
"name": "بيتزا",
"price": {
"amount": 40.25,
"currency": "SAR"
},
"sale_price": {
"amount": 0,
"currency": "SAR"
},
"currency": "SAR",
"url": "https://salla.sa/dev-wofftr4xsra5xtlv/بيتزا/p401511871",
"thumbnail": "https://cdn.salla.sa/bYQEn/hG0U3oATexBxt4j5QjMt8jcNUi12v97KFw9Q1xTA.jpg",
"has_special_price": false,
"regular_price": {
"amount": 40.25,
"currency": "SAR"
},
"calories": "500.00",
"mpn": null,
"gtin": null,
"favorite": null
}
]
},
"get": {
"type": "product",
"discount_type": "percentage",
"quantity": "20",
"products": []
}
}
}
🟠422Error Validation
🟠404Not Found
🟠401Unauthorized

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

