Innoshop Frontend API
HomeInnoShop
Source Code
  • Github
  • Gitee
  • GitCode
HomeInnoShop
Source Code
  • Github
  • Gitee
  • GitCode
  1. Checkout
  • Account
    • Me
      GET
    • Update Profile
      PUT
    • Set Password
      POST
    • Update Password
      PUT
  • Address
    • Address List
      GET
    • Address Create
      POST
    • Address Update
      PUT
    • Address Delete
      DELETE
    • Address Detail
      GET
  • Authorization
    • Login
      POST
    • Register
      POST
  • Brand
    • Brands
      GET
    • Grouped
      GET
  • Cart
    • Cart List
      GET
    • Cart Create
      POST
    • Cart Update
      PUT
    • Cart Delete
      DELETE
    • Batch Select
      POST
    • Batch Unselect
      POST
  • Category
    • Category Tree
      GET
    • Category List
      GET
  • Checkout
    • Get Checkout
      GET
    • Update Checkout
      PUT
    • Confirm
      POST
  • Favorite
    • Favorite Create
    • Favorite List
    • Favorite Cancel
  • Order
    • Order List
    • Order Detail
    • Number Detail
    • Order Pay
  • Product
    • Product List
    • Product Detail
    • Product Reviews
  • Review
    • Review List
    • Create Review
    • Delete Review
  • Upload
    • Upload Images
  • Home
    GET
  • Setting
    GET
  1. Checkout

Get Checkout

Developing
GET
/checkout

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
locale
string 
required
Example:
zh_cn
platform
string 
required
Example:
miniapp

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 GET 'https://api.innoshop.net/api/checkout' \
--header 'locale: zh_cn' \
--header 'platform: miniapp'

Responses

🟢200OK
application/json
Body
success
boolean 
required
message
string 
required
data
object 
required
cart_list
array [object {17}] 
required
address_list
array [object {17}] 
required
地址列表
shipping_methods
array [object {3}] 
required
billing_methods
array [object {5}] 
required
checkout
object 
required
fee_list
array [object {4}] 
required
total
integer 
required
amount
integer 
required
amount_format
string 
required
is_virtual
boolean 
required
Examples
{
    "success": true,
    "message": "Read successfully",
    "data": {
        "cart_list": [
            {
                "id": 2,
                "quantity": 4,
                "product_id": 1,
                "product_name": "Galaxy Glittering Evening Gown Shines Everywhere",
                "variant_label": "Color:Red; Size:Small; ",
                "tax_class_id": 0,
                "sku_id": 2,
                "sku_code": "GGE002",
                "is_virtual": 0,
                "price": 222,
                "price_format": "$222.00",
                "origin_price": 223,
                "origin_price_format": "$223.00",
                "subtotal": 888,
                "subtotal_format": "$888.00",
                "image": "https://innoshop.funnlink.net/cache/images/demo/product/1-100x100.png",
                "selected": true
            }
        ],
        "address_list": [
            {
                "id": 1,
                "customer_id": 3,
                "guest_id": "",
                "name": "水电费",
                "phone": "15127923830",
                "country_id": 72,
                "country_code": "CN",
                "country_name": "China",
                "state_id": 0,
                "state_code": "",
                "state_name": "",
                "state": "",
                "city_id": 0,
                "city": "邢台",
                "zipcode": "105s",
                "address_1": "是否",
                "address_2": ""
            }
        ],
        "shipping_methods": [
            {
                "code": "fixed_shipping",
                "name": "Fixed Shipping",
                "quotes": [
                    {
                        "type": "shipping",
                        "code": "fixed_shipping.0",
                        "name": "Fixed Shipping",
                        "description": "Fixed Shipping",
                        "icon": "https://innoshop.funnlink.net/cache/plugins/fixedshipping/images/logo-100x100.png",
                        "cost": 2,
                        "cost_format": "$2.00"
                    }
                ]
            }
        ],
        "billing_methods": [
            {
                "type": "billing",
                "code": "bank_transfer",
                "name": "Bank Transfer",
                "description": "Bank Transfer",
                "icon": "https://innoshop.funnlink.net/cache/plugins/banktransfer/images/logo-100x100.png"
            }
        ],
        "checkout": {
            "id": 1,
            "customer_id": 3,
            "guest_id": "WpMuh5xHDuS4mc3aSrFMQIlFl9KifMeWkIsIPjCk",
            "shipping_address_id": 1,
            "shipping_method_code": "fixed_shipping.0",
            "shipping_method_name": "Fixed Shipping",
            "billing_address_id": 1,
            "billing_method_code": "bank_transfer",
            "billing_method_name": "Bank Transfer",
            "reference": [],
            "shipping_quote_name": "Fixed Shipping"
        },
        "fee_list": [
            {
                "code": "subtotal",
                "title": "Subtotal",
                "total": 888,
                "total_format": "$888.00"
            },
            {
                "code": "shipping",
                "title": "Shipping",
                "total": 2,
                "total_format": "$2.00"
            }
        ],
        "total": 890,
        "amount": 890,
        "amount_format": "$890.00",
        "is_virtual": false
    }
}
Modified at 2024-08-20 09:57:52
Previous
Category List
Next
Update Checkout
Built with