Documentation
    Documentation
    • Introduction
    • Webhook
    • Integrations
      • REST Integration
      • Nodejs
      • Wordpress
    • Create Checkout Session
      POST
    • Schemas
      • webhooks
        • Webhook | Order Created
        • Webhook | Order Abandoned
        • Webhook | Order Refunded
        • Webhook | Order Failed
      • Cart Session Request
      • Cart Session Response

      Create Checkout Session

      POST
      /v2/public/api/cart/
      Create a new cart session for the checkout

      Request

      Body Params application/json

      Examples

      Responses

      🟢200Success
      application/json
      Body

      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/v2/public/api/cart/' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "cartObject": {
              "store": {
                  "name": "string",
                  "url": "string",
                  "logo": "string",
                  "platformUuid": "string"
              },
              "cart": {
                  "currency": "string",
                  "country": "string",
                  "items": [
                      {
                          "title": "string",
                          "description": "string",
                          "price": 0,
                          "sku": "string",
                          "productId": "string",
                          "variantId": "string",
                          "url": "string",
                          "image": "string",
                          "quantity": 0,
                          "variantOptions": [
                              "string"
                          ],
                          "zeroPay": true
                      }
                  ],
                  "extra": {
                      "meta_data1": "string"
                  },
                  "merchantUrls": {
                      "successUrl": "string",
                      "failureUrl": "string"
                  }
              }
          }
      }'
      Response Response Example
      {
          "code": "string",
          "message": "string",
          "data": {
              "cartId": "string",
              "cartData": {
                  "store": {
                      "name": "string",
                      "url": "string",
                      "logo": "string"
                  },
                  "cart": {}
              },
              "expiresOn": "string"
          }
      }
      Modified at 2025-09-23 16:05:22
      Previous
      Wordpress
      Next
      Webhook | Order Created
      Built with