> ## Documentation Index
> Fetch the complete documentation index at: https://secdocs.asikoexpress.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Check out the current cart into an order



## OpenAPI

````yaml /openapi/order-service.json post /v1/orders/checkout
openapi: 3.0.0
info:
  title: Asiko Order Service
  description: Cart, checkout, order lifecycle
  version: '1.0'
  contact: {}
servers:
  - url: https://asikodevapi.candourit.io
    description: Production (via api-gateway)
  - url: http://localhost:3000
    description: Local development (via api-gateway)
security: []
tags:
  - name: orders
    description: ''
  - name: cart
    description: ''
paths:
  /v1/orders/checkout:
    post:
      tags:
        - orders
      summary: Check out the current cart into an order
      operationId: OrdersController_checkout
      parameters:
        - name: authorization
          required: true
          in: header
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutBody'
      responses:
        '201':
          description: ''
      security:
        - bearer: []
components:
  schemas:
    CheckoutBody:
      type: object
      properties:
        type:
          type: string
          example: RETAIL
          enum:
            - RETAIL
            - TRADE
        addressId:
          type: string
          example: b6a1e2d4-8f3c-4a5b-9e2d-1f4c6a8b9d0e
          description: >-
            Must be the id of one of the caller's saved addresses (GET
            /users/me/addresses).
        deliveryMethod:
          type: string
          example: STANDARD_DELIVERY
          enum:
            - STANDARD_DELIVERY
            - NEXT_DAY_DELIVERY
            - PICKUP
        paymentMethod:
          type: string
          example: PAYSTACK
          enum:
            - STRIPE
            - PAYPAL
            - PAYSTACK
            - INVOICE
        recipientName:
          type: string
          example: Jane Doe
          description: >-
            Defaults to the account holder's name — set this only when the order
            is for someone else.
      required:
        - type
        - addressId
        - deliveryMethod
        - paymentMethod
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````