- 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
Create Option Template
Develop Env
https://echo.apifox.com/anything
Develop Env
https://echo.apifox.com/anything
POST
https://echo.apifox.com/anything
Product Option Templates
Last modified:2025-02-20 07:53:20
Maintainer:Not configured
Scopes
products.read_write
- Products Read and WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Query Params
with
enum<string>
optional
with=details
to fetch list of product option templates with details
object.Allowed value:
details
Example:
details
Body Params application/json
name
string
optional
type
enum<string>
optional
Allowed values:
checkboxradio
display_type
enum<string>
optional
Allowed values:
textimagecolor
translations
object
optional
en
object
optional
fr
object
optional
details
object
required
with=details
query paramter is passedid
number
required
name
string
required
is_default
boolean
required
display_value
string
required
translation
object
required
Example
{
"name": "image url",
"display_type": "image",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "couleur"
}
},
"details": [
{
"name": "profile pic",
"is_default": true,
"display_value": "fb.com",
"translations": {
"en": {
"name": "pic"
},
"fr": {
"name": "pic"
}
}
}
]
}
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 POST 'https://echo.apifox.com/anything/products/options/templates' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "image url",
"display_type": "image",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "couleur"
}
},
"details": [
{
"name": "profile pic",
"is_default": true,
"display_value": "fb.com",
"translations": {
"en": {
"name": "pic"
},
"fr": {
"name": "pic"
}
}
}
]
}'
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
object (OptionsTemplate)
optional
id
string
required
name
string
required
type
enum<string>
required
Allowed values:
checkboxradio
display_type
enum<string>
required
Allowed values:
textimagecolor
translations
object
required
Example
{
"status": 201,
"success": true,
"data": [
{
"id": 1473353380,
"name": "اللون",
"type": "radio",
"display_type": "color",
"translations": [
{
"id": 1473353380,
"name": "color",
"locale": "en"
},
{
"id": 566146469,
"name": "color",
"locale": "fr"
}
]
}
]
}
🟢200With Details
🟠422Validation
🟠401Unauthorized

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

