- Account
- Address
- Authorization
- Brand
- Cart
- Category
- Checkout
- Favorite
- Order
- Product
- Review
- Upload
- HomeGET
- SettingGET
Cart Create
Developing
POST
/carts
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
sku_id
string
required
quantity
string
required
Example
{
"sku_id": "12",
"quantity": "40"
}
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.innoshop.net/api/carts' \
--header 'Content-Type: application/json' \
--data-raw '{
"sku_id": "12",
"quantity": "40"
}'
Responses
🟢200成功
application/json
Body
object {0}
Example
{}
Modified at 2024-08-15 06:20:56