---
updatedAt: 2025-11-11T00:10:33.000Z
agentTools:
  projectIndex: https://docs.interswitchgroup.com/llms.txt
---

# Order Checkout

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "retail-ecosystem",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://retail-ecosystem-service.k8.isw.la"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/retail-ecosystem/api/v1/orders/checkout": {
      "post": {
        "summary": "Order Checkout",
        "description": "",
        "operationId": "order-checkout",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "orderItems"
                ],
                "properties": {
                  "orderItems": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "quantity": {
                          "type": "string"
                        },
                        "amount": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "productId": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "storeId": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "martketPlaceId": {
                          "type": "integer",
                          "format": "int32"
                        },
                        "variantName": {
                          "type": "string"
                        },
                        "variantValue": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "quantity",
                        "amount",
                        "productId",
                        "storeId",
                        "martketPlaceId",
                        "variantName",
                        "variantValue"
                      ],
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 201,\n    \"message\": \"Order checked out successfully!\",\n    \"data\": {\n        \"orderItems\": [\n            {\n                \"storeId\": 10003,\n                \"marketplaceId\": 21,\n                \"quantity\": 1,\n                \"amount\": 9000,\n                \"variantName\": null,\n                \"variantValue\": null,\n                \"productId\": 17\n            },\n            {\n                \"storeId\": 10011,\n                \"marketplaceId\": 25,\n                \"quantity\": 1,\n                \"amount\": 600000,\n                \"variantName\": null,\n                \"variantValue\": null,\n                \"productId\": 40\n            }\n        ],\n        \"checkoutId\": \"F9D0FB5E-AFFD-4AFB-BA96-00D96FF794D7\"\n    },\n    \"validation\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 201,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Order checked out successfully!"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "orderItems": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "storeId": {
                                "type": "integer",
                                "example": 10003,
                                "default": 0
                              },
                              "marketplaceId": {
                                "type": "integer",
                                "example": 21,
                                "default": 0
                              },
                              "quantity": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "amount": {
                                "type": "integer",
                                "example": 9000,
                                "default": 0
                              },
                              "variantName": {},
                              "variantValue": {},
                              "productId": {
                                "type": "integer",
                                "example": 17,
                                "default": 0
                              }
                            }
                          }
                        },
                        "checkoutId": {
                          "type": "string",
                          "example": "F9D0FB5E-AFFD-4AFB-BA96-00D96FF794D7"
                        }
                      }
                    },
                    "validation": {}
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Authourization",
        "value": "Bearer <token>"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```