# Get Checkout

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /checkout:
    get:
      summary: Get Checkout
      deprecated: false
      description: ''
      tags:
        - Checkout
      parameters:
        - name: locale
          in: header
          description: ''
          required: true
          example: zh_cn
          schema:
            type: string
        - name: platform
          in: header
          description: ''
          required: true
          example: miniapp
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      cart_list:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            quantity:
                              type: integer
                            product_id:
                              type: integer
                            product_name:
                              type: string
                            variant_label:
                              type: string
                            tax_class_id:
                              type: integer
                            sku_id:
                              type: integer
                            sku_code:
                              type: string
                            is_virtual:
                              type: integer
                            price:
                              type: integer
                            price_format:
                              type: string
                            origin_price:
                              type: integer
                            origin_price_format:
                              type: string
                            subtotal:
                              type: integer
                            subtotal_format:
                              type: string
                            image:
                              type: string
                            selected:
                              type: boolean
                      address_list:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: integer
                            customer_id:
                              type: integer
                            guest_id:
                              type: string
                            name:
                              type: string
                            phone:
                              type: string
                            country_id:
                              type: integer
                            country_code:
                              type: string
                            country_name:
                              type: string
                            state_id:
                              type: integer
                            state_code:
                              type: string
                            state_name:
                              type: string
                            state:
                              type: string
                            city_id:
                              type: integer
                            city:
                              type: string
                            zipcode:
                              type: string
                            address_1:
                              type: string
                            address_2:
                              type: string
                        description: 地址列表
                      shipping_methods:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                            name:
                              type: string
                            quotes:
                              type: array
                              items:
                                type: object
                                properties:
                                  type:
                                    type: string
                                  code:
                                    type: string
                                  name:
                                    type: string
                                  description:
                                    type: string
                                  icon:
                                    type: string
                                  cost:
                                    type: integer
                                  cost_format:
                                    type: string
                      billing_methods:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                            code:
                              type: string
                            name:
                              type: string
                            description:
                              type: string
                            icon:
                              type: string
                          required:
                            - type
                            - code
                            - name
                            - description
                            - icon
                      checkout:
                        type: object
                        properties:
                          id:
                            type: integer
                          customer_id:
                            type: integer
                          guest_id:
                            type: string
                          shipping_address_id:
                            type: integer
                          shipping_method_code:
                            type: string
                          shipping_method_name:
                            type: string
                          billing_address_id:
                            type: integer
                          billing_method_code:
                            type: string
                          billing_method_name:
                            type: string
                          reference:
                            type: array
                            items:
                              type: string
                          shipping_quote_name:
                            type: string
                        required:
                          - id
                          - customer_id
                          - guest_id
                          - shipping_address_id
                          - shipping_method_code
                          - shipping_method_name
                          - billing_address_id
                          - billing_method_code
                          - billing_method_name
                          - reference
                          - shipping_quote_name
                      fee_list:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                            title:
                              type: string
                            total:
                              type: integer
                            total_format:
                              type: string
                          required:
                            - code
                            - title
                            - total
                            - total_format
                      total:
                        type: integer
                      amount:
                        type: integer
                      amount_format:
                        type: string
                      is_virtual:
                        type: boolean
                    required:
                      - cart_list
                      - address_list
                      - shipping_methods
                      - billing_methods
                      - checkout
                      - fee_list
                      - total
                      - amount
                      - amount_format
                      - is_virtual
                required:
                  - success
                  - message
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    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
                '2':
                  summary: Success
                  value:
                    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
                        - type: billing
                          code: we_chat_pay
                          name: WeChat Pay
                          description: WeChat Pay
                          icon: >-
                            https://innoshop.funnlink.net/cache/plugins/wechatpay/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
          headers: {}
          x-apifox-name: OK
      security:
        - bearer: []
      x-apifox-folder: Checkout
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/2760494/apis/api-89635536-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.innoshop.net/api
    description: 开发环境
security:
  - bearer: []

```
