- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- 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
- Webhooks - Store Events
Add Language
Production
Production
POST
https://api.salla.dev/admin/v2/languages
Languages
Last modified:2024-12-29 06:40:32
Scopes
metadata.read_write
- Metadata Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
locales
array [object {2}]
optional
iso_code
string
optional
Example:
fr
sort_order
string | null
optional
Example:
1
Example
{
"locales": [
{
"iso_code": "fr",
"sort_order": "1"
}
]
}
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://api.salla.dev/admin/v2/languages' \
--header 'Content-Type: application/json' \
--data-raw '{
"locales": [
{
"iso_code": "fr",
"sort_order": "1"
}
]
}'
Responses
🟢200Success
application/json
Body
status
number
optional
success
boolean
optional
data
array[object (Languages) {8}]
optional
id
number
required
Example:
1
name
string
required
Example:
العربية
status
enum<string>
required
enabled
or disabled
Allowed values:
enableddisabled
Example:
enabled
rtl
boolean
required
Default:
true
flag
string
required
Example:
https://i.ibb.co/jyqRQfQ/avatar-male.webp
iso_code
string
required
Example:
ar
country_code
string
required
Example:
sa
sort_order
string
required
Example:
2
Example
{
"status": 200,
"success": true,
"data": [
{
"id": 12,
"name": "suomen kieli",
"status": "enabled",
"rtl": false,
"flag": "https://assets.salla.sa/images/flags/fi.svg",
"iso_code": "fi",
"country_code": "fi",
"sort_order": 9
},
{
"id": 15,
"name": "Ελληνικά",
"status": "enabled",
"rtl": false,
"flag": "https://assets.salla.sa/images/flags/el.svg",
"iso_code": "el",
"country_code": "gr",
"sort_order": 10
}
]
}
🟠422Error Validation
🟠401Unauthorized
Modified at 2024-12-29 06:40:32