Orders are not showing up online

hamzakhanhamzakhan Member Posts: 25


I am placing order using API

After placing order I cannot see any order data on my https://api-trial.ikentoo.com

Endpoint: https://api-trial.ikentoo.com/o/op/1/order/toGo

Response is "Ok" successful

Request params


"businessLocationId" => 276638843535362,

      "thirdPartyReference" => uniqid()." Tryngo order - sauce-123-M-",

      "endpointId" => "tesst",

      "customerInfo" => [

        "firstName" => "Peter",

        "lastName" => "Smith",

        "thirdPartyReference" => uniqid()."test party referencesauce-123-M-",

        "email" => "peteth" . uniqid() ."@gmail.com",

        "contactNumberAsE164" => "+44207183875044",

        "notes" => "Test notes goes here ",

        "salutation" => "Mr"

      ],

      "orderNote" => "test order note",

      "maxTimeToAttemptOrderDeliverToPos" => 1000,

      // "staffId" => 0,

            "staffId" => 38608, // https://console-trial.ikentoo.com/configuration/editUser/38608

      "accountProfileCode" => "PICKUP",       

      // "scheduledTimeForOrderAsIso8601" => "2021-09-23T01:23:45.678+09:00",

      // "scheduledTimeForOrderAsIso8601" => "2021-09-23T01:23:45.678+09:00",

      "payment" => [

          "paymentMethod" => "MASTERCARD",

          "paymentAmount" => 101.00,

          "tipAmount" => 10.00,

          "min_TTL" => 0

        ],

      "collectionCode" => "",

      // "orderCollectionTimeAsIso8601" => "2021-09-23T01:23:45.678+09:00",

      "items" => [

            [

            "quantity" => 3,

            "sku" => "MSG2".uniqid(),

            "customItemName" => "Accélérer SVP",

            "customItemPrice" => 10.52,

            "modifiers" => [

              [

                // "modifierId" => "sauce-123-M-"

                "modifierId" => "276638843535472"

              ]

            ],

            "discountCode" => "",

            "subItems" => [

                  [

                    "quantity" => 12,

                    "sku" => "abc" .uniqid(),

                    "customItemName" => "TestUser" .rand(10,1000),

                    "customItemPrice" => 12.00,

                    "modifiers" => [

                      [

                        // "modifierId" => "sauce-123-M-"

                        "modifierId" => "276638843535472"

                      ]

                    ]

                  ]

                ]

            ]

          ],

      "takeAway" => true,

      "deliveryAddress" => [

            "addressLine1" => "123 address ".rand(10,1000),

            "addressLine2" => "street 456".rand(10,1000),

            "zip" => "54800",

            "city" => "Lahore"

          ],

      // "min_TTL" => 0

    ];

Answers

Sign In or Register to comment.