This request allows you to see the permissions that are granted to this account.
curl -X POST\
\
-H "Content-Type: multipart/form-data,text/plain"\
"https://ccpl.ninjaos.com/ninjaos/api/ordersv1/submit_order"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdersApi;
import java.io.File;
import java.util.*;
public class OrdersApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: clientCredentials
OAuth clientCredentials = (OAuth) defaultClient.getAuthentication("clientCredentials");
clientCredentials.setAccessToken("YOUR ACCESS TOKEN");
OrdersApi apiInstance = new OrdersApi();
String appId = appId_example; // String |
String availabilityId = availabilityId_example; // String |
String subTotal = subTotal_example; // String |
String grandTotal = grandTotal_example; // String |
Integer outletId = 56; // Integer |
Integer orderOutletCategoryId = 56; // Integer |
Integer zoneId = 56; // Integer |
String tableNumber = tableNumber_example; // String |
String orderStatus = orderStatus_example; // String |
String orderSource = orderSource_example; // String |
String orderDate = orderDate_example; // String |
String orderIsTimeslot = orderIsTimeslot_example; // String |
String orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example; // String |
String orderPickupTimeSlotTo = orderPickupTimeSlotTo_example; // String |
String products = products_example; // String |
String customerId = customerId_example; // String |
String customerFname = customerFname_example; // String |
String customerLname = customerLname_example; // String |
Integer customerMobileNo = 56; // Integer |
String customerEmail = customerEmail_example; // String |
String customerAddressLine1 = customerAddressLine1_example; // String |
String customerAddressLine2 = customerAddressLine2_example; // String |
Integer customerPostalCode = 56; // Integer |
Integer customerUnitNo1 = 56; // Integer |
String customerUnitNo2 = customerUnitNo2_example; // String |
String customerBirthdateUpdate = customerBirthdateUpdate_example; // String |
String customerBirthdate = customerBirthdate_example; // String |
String customerGender = customerGender_example; // String |
String billingAddressLine1 = billingAddressLine1_example; // String |
Integer billingPostalCode = 56; // Integer |
String billingUnitNo1 = billingUnitNo1_example; // String |
Integer billingUnitNo2 = 56; // Integer |
Integer paymentMode = 56; // Integer |
String paymentReference = paymentReference_example; // String |
String stripeEnvir = stripeEnvir_example; // String |
String paymentType = paymentType_example; // String |
String orderCaptureToken = orderCaptureToken_example; // String |
String orderPaymentGetwayType = orderPaymentGetwayType_example; // String |
String orderPaymentGetwayStatus = orderPaymentGetwayStatus_example; // String |
String deliveryCharge = deliveryCharge_example; // String |
String additionalDelivery = additionalDelivery_example; // String |
Integer orderTatTime = 56; // Integer |
Integer taxCharge = 56; // Integer |
String orderTaxCalculateAmount = orderTaxCalculateAmount_example; // String |
String orderDataEncode = orderDataEncode_example; // String |
String orderDiscountApplied = orderDiscountApplied_example; // String |
String orderDiscountAmount = orderDiscountAmount_example; // String |
String orderDiscountType = orderDiscountType_example; // String |
String orderSpecialDiscountAmount = orderSpecialDiscountAmount_example; // String |
String orderSpecialDiscountType = orderSpecialDiscountType_example; // String |
String validationOnly = validationOnly_example; // String |
String discountApplied = discountApplied_example; // String |
String discountAmount = discountAmount_example; // String |
String redeemApplied = redeemApplied_example; // String |
Integer redeemPoint = 56; // Integer |
Integer redeemAmount = 56; // Integer |
String rewardPointStatus = rewardPointStatus_example; // String |
try {
apiInstance.apiOrdersv1SubmitOrderPost(appId, availabilityId, subTotal, grandTotal, outletId, orderOutletCategoryId, zoneId, tableNumber, orderStatus, orderSource, orderDate, orderIsTimeslot, orderPickupTimeSlotFrom, orderPickupTimeSlotTo, products, customerId, customerFname, customerLname, customerMobileNo, customerEmail, customerAddressLine1, customerAddressLine2, customerPostalCode, customerUnitNo1, customerUnitNo2, customerBirthdateUpdate, customerBirthdate, customerGender, billingAddressLine1, billingPostalCode, billingUnitNo1, billingUnitNo2, paymentMode, paymentReference, stripeEnvir, paymentType, orderCaptureToken, orderPaymentGetwayType, orderPaymentGetwayStatus, deliveryCharge, additionalDelivery, orderTatTime, taxCharge, orderTaxCalculateAmount, orderDataEncode, orderDiscountApplied, orderDiscountAmount, orderDiscountType, orderSpecialDiscountAmount, orderSpecialDiscountType, validationOnly, discountApplied, discountAmount, redeemApplied, redeemPoint, redeemAmount, rewardPointStatus);
} catch (ApiException e) {
System.err.println("Exception when calling OrdersApi#apiOrdersv1SubmitOrderPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.OrdersApi;
public class OrdersApiExample {
public static void main(String[] args) {
OrdersApi apiInstance = new OrdersApi();
String appId = appId_example; // String |
String availabilityId = availabilityId_example; // String |
String subTotal = subTotal_example; // String |
String grandTotal = grandTotal_example; // String |
Integer outletId = 56; // Integer |
Integer orderOutletCategoryId = 56; // Integer |
Integer zoneId = 56; // Integer |
String tableNumber = tableNumber_example; // String |
String orderStatus = orderStatus_example; // String |
String orderSource = orderSource_example; // String |
String orderDate = orderDate_example; // String |
String orderIsTimeslot = orderIsTimeslot_example; // String |
String orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example; // String |
String orderPickupTimeSlotTo = orderPickupTimeSlotTo_example; // String |
String products = products_example; // String |
String customerId = customerId_example; // String |
String customerFname = customerFname_example; // String |
String customerLname = customerLname_example; // String |
Integer customerMobileNo = 56; // Integer |
String customerEmail = customerEmail_example; // String |
String customerAddressLine1 = customerAddressLine1_example; // String |
String customerAddressLine2 = customerAddressLine2_example; // String |
Integer customerPostalCode = 56; // Integer |
Integer customerUnitNo1 = 56; // Integer |
String customerUnitNo2 = customerUnitNo2_example; // String |
String customerBirthdateUpdate = customerBirthdateUpdate_example; // String |
String customerBirthdate = customerBirthdate_example; // String |
String customerGender = customerGender_example; // String |
String billingAddressLine1 = billingAddressLine1_example; // String |
Integer billingPostalCode = 56; // Integer |
String billingUnitNo1 = billingUnitNo1_example; // String |
Integer billingUnitNo2 = 56; // Integer |
Integer paymentMode = 56; // Integer |
String paymentReference = paymentReference_example; // String |
String stripeEnvir = stripeEnvir_example; // String |
String paymentType = paymentType_example; // String |
String orderCaptureToken = orderCaptureToken_example; // String |
String orderPaymentGetwayType = orderPaymentGetwayType_example; // String |
String orderPaymentGetwayStatus = orderPaymentGetwayStatus_example; // String |
String deliveryCharge = deliveryCharge_example; // String |
String additionalDelivery = additionalDelivery_example; // String |
Integer orderTatTime = 56; // Integer |
Integer taxCharge = 56; // Integer |
String orderTaxCalculateAmount = orderTaxCalculateAmount_example; // String |
String orderDataEncode = orderDataEncode_example; // String |
String orderDiscountApplied = orderDiscountApplied_example; // String |
String orderDiscountAmount = orderDiscountAmount_example; // String |
String orderDiscountType = orderDiscountType_example; // String |
String orderSpecialDiscountAmount = orderSpecialDiscountAmount_example; // String |
String orderSpecialDiscountType = orderSpecialDiscountType_example; // String |
String validationOnly = validationOnly_example; // String |
String discountApplied = discountApplied_example; // String |
String discountAmount = discountAmount_example; // String |
String redeemApplied = redeemApplied_example; // String |
Integer redeemPoint = 56; // Integer |
Integer redeemAmount = 56; // Integer |
String rewardPointStatus = rewardPointStatus_example; // String |
try {
apiInstance.apiOrdersv1SubmitOrderPost(appId, availabilityId, subTotal, grandTotal, outletId, orderOutletCategoryId, zoneId, tableNumber, orderStatus, orderSource, orderDate, orderIsTimeslot, orderPickupTimeSlotFrom, orderPickupTimeSlotTo, products, customerId, customerFname, customerLname, customerMobileNo, customerEmail, customerAddressLine1, customerAddressLine2, customerPostalCode, customerUnitNo1, customerUnitNo2, customerBirthdateUpdate, customerBirthdate, customerGender, billingAddressLine1, billingPostalCode, billingUnitNo1, billingUnitNo2, paymentMode, paymentReference, stripeEnvir, paymentType, orderCaptureToken, orderPaymentGetwayType, orderPaymentGetwayStatus, deliveryCharge, additionalDelivery, orderTatTime, taxCharge, orderTaxCalculateAmount, orderDataEncode, orderDiscountApplied, orderDiscountAmount, orderDiscountType, orderSpecialDiscountAmount, orderSpecialDiscountType, validationOnly, discountApplied, discountAmount, redeemApplied, redeemPoint, redeemAmount, rewardPointStatus);
} catch (ApiException e) {
System.err.println("Exception when calling OrdersApi#apiOrdersv1SubmitOrderPost");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: clientCredentials)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *appId = appId_example; // (optional)
String *availabilityId = availabilityId_example; // (optional)
String *subTotal = subTotal_example; // (optional)
String *grandTotal = grandTotal_example; // (optional)
Integer *outletId = 56; // (optional)
Integer *orderOutletCategoryId = 56; // (optional)
Integer *zoneId = 56; // (optional)
String *tableNumber = tableNumber_example; // (optional)
String *orderStatus = orderStatus_example; // (optional)
String *orderSource = orderSource_example; // (optional)
String *orderDate = orderDate_example; // (optional)
String *orderIsTimeslot = orderIsTimeslot_example; // (optional)
String *orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example; // (optional)
String *orderPickupTimeSlotTo = orderPickupTimeSlotTo_example; // (optional)
String *products = products_example; // (optional)
String *customerId = customerId_example; // (optional)
String *customerFname = customerFname_example; // (optional)
String *customerLname = customerLname_example; // (optional)
Integer *customerMobileNo = 56; // (optional)
String *customerEmail = customerEmail_example; // (optional)
String *customerAddressLine1 = customerAddressLine1_example; // (optional)
String *customerAddressLine2 = customerAddressLine2_example; // (optional)
Integer *customerPostalCode = 56; // (optional)
Integer *customerUnitNo1 = 56; // (optional)
String *customerUnitNo2 = customerUnitNo2_example; // (optional)
String *customerBirthdateUpdate = customerBirthdateUpdate_example; // (optional)
String *customerBirthdate = customerBirthdate_example; // (optional)
String *customerGender = customerGender_example; // (optional)
String *billingAddressLine1 = billingAddressLine1_example; // (optional)
Integer *billingPostalCode = 56; // (optional)
String *billingUnitNo1 = billingUnitNo1_example; // (optional)
Integer *billingUnitNo2 = 56; // (optional)
Integer *paymentMode = 56; // (optional)
String *paymentReference = paymentReference_example; // (optional)
String *stripeEnvir = stripeEnvir_example; // (optional)
String *paymentType = paymentType_example; // (optional)
String *orderCaptureToken = orderCaptureToken_example; // (optional)
String *orderPaymentGetwayType = orderPaymentGetwayType_example; // (optional)
String *orderPaymentGetwayStatus = orderPaymentGetwayStatus_example; // (optional)
String *deliveryCharge = deliveryCharge_example; // (optional)
String *additionalDelivery = additionalDelivery_example; // (optional)
Integer *orderTatTime = 56; // (optional)
Integer *taxCharge = 56; // (optional)
String *orderTaxCalculateAmount = orderTaxCalculateAmount_example; // (optional)
String *orderDataEncode = orderDataEncode_example; // (optional)
String *orderDiscountApplied = orderDiscountApplied_example; // (optional)
String *orderDiscountAmount = orderDiscountAmount_example; // (optional)
String *orderDiscountType = orderDiscountType_example; // (optional)
String *orderSpecialDiscountAmount = orderSpecialDiscountAmount_example; // (optional)
String *orderSpecialDiscountType = orderSpecialDiscountType_example; // (optional)
String *validationOnly = validationOnly_example; // (optional)
String *discountApplied = discountApplied_example; // (optional)
String *discountAmount = discountAmount_example; // (optional)
String *redeemApplied = redeemApplied_example; // (optional)
Integer *redeemPoint = 56; // (optional)
Integer *redeemAmount = 56; // (optional)
String *rewardPointStatus = rewardPointStatus_example; // (optional)
OrdersApi *apiInstance = [[OrdersApi alloc] init];
// Submit Orders
[apiInstance apiOrdersv1SubmitOrderPostWith:appId
availabilityId:availabilityId
subTotal:subTotal
grandTotal:grandTotal
outletId:outletId
orderOutletCategoryId:orderOutletCategoryId
zoneId:zoneId
tableNumber:tableNumber
orderStatus:orderStatus
orderSource:orderSource
orderDate:orderDate
orderIsTimeslot:orderIsTimeslot
orderPickupTimeSlotFrom:orderPickupTimeSlotFrom
orderPickupTimeSlotTo:orderPickupTimeSlotTo
products:products
customerId:customerId
customerFname:customerFname
customerLname:customerLname
customerMobileNo:customerMobileNo
customerEmail:customerEmail
customerAddressLine1:customerAddressLine1
customerAddressLine2:customerAddressLine2
customerPostalCode:customerPostalCode
customerUnitNo1:customerUnitNo1
customerUnitNo2:customerUnitNo2
customerBirthdateUpdate:customerBirthdateUpdate
customerBirthdate:customerBirthdate
customerGender:customerGender
billingAddressLine1:billingAddressLine1
billingPostalCode:billingPostalCode
billingUnitNo1:billingUnitNo1
billingUnitNo2:billingUnitNo2
paymentMode:paymentMode
paymentReference:paymentReference
stripeEnvir:stripeEnvir
paymentType:paymentType
orderCaptureToken:orderCaptureToken
orderPaymentGetwayType:orderPaymentGetwayType
orderPaymentGetwayStatus:orderPaymentGetwayStatus
deliveryCharge:deliveryCharge
additionalDelivery:additionalDelivery
orderTatTime:orderTatTime
taxCharge:taxCharge
orderTaxCalculateAmount:orderTaxCalculateAmount
orderDataEncode:orderDataEncode
orderDiscountApplied:orderDiscountApplied
orderDiscountAmount:orderDiscountAmount
orderDiscountType:orderDiscountType
orderSpecialDiscountAmount:orderSpecialDiscountAmount
orderSpecialDiscountType:orderSpecialDiscountType
validationOnly:validationOnly
discountApplied:discountApplied
discountAmount:discountAmount
redeemApplied:redeemApplied
redeemPoint:redeemPoint
redeemAmount:redeemAmount
rewardPointStatus:rewardPointStatus
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var NinjaOsApiReferenceDocs = require('ninja_os_api_reference_docs');
var defaultClient = NinjaOsApiReferenceDocs.ApiClient.instance;
// Configure OAuth2 access token for authorization: clientCredentials
var clientCredentials = defaultClient.authentications['clientCredentials'];
clientCredentials.accessToken = "YOUR ACCESS TOKEN"
var api = new NinjaOsApiReferenceDocs.OrdersApi()
var opts = {
'appId': appId_example // {{String}}
'availabilityId': availabilityId_example // {{String}}
'subTotal': subTotal_example // {{String}}
'grandTotal': grandTotal_example // {{String}}
'outletId': 56 // {{Integer}}
'orderOutletCategoryId': 56 // {{Integer}}
'zoneId': 56 // {{Integer}}
'tableNumber': tableNumber_example // {{String}}
'orderStatus': orderStatus_example // {{String}}
'orderSource': orderSource_example // {{String}}
'orderDate': orderDate_example // {{String}}
'orderIsTimeslot': orderIsTimeslot_example // {{String}}
'orderPickupTimeSlotFrom': orderPickupTimeSlotFrom_example // {{String}}
'orderPickupTimeSlotTo': orderPickupTimeSlotTo_example // {{String}}
'products': products_example // {{String}}
'customerId': customerId_example // {{String}}
'customerFname': customerFname_example // {{String}}
'customerLname': customerLname_example // {{String}}
'customerMobileNo': 56 // {{Integer}}
'customerEmail': customerEmail_example // {{String}}
'customerAddressLine1': customerAddressLine1_example // {{String}}
'customerAddressLine2': customerAddressLine2_example // {{String}}
'customerPostalCode': 56 // {{Integer}}
'customerUnitNo1': 56 // {{Integer}}
'customerUnitNo2': customerUnitNo2_example // {{String}}
'customerBirthdateUpdate': customerBirthdateUpdate_example // {{String}}
'customerBirthdate': customerBirthdate_example // {{String}}
'customerGender': customerGender_example // {{String}}
'billingAddressLine1': billingAddressLine1_example // {{String}}
'billingPostalCode': 56 // {{Integer}}
'billingUnitNo1': billingUnitNo1_example // {{String}}
'billingUnitNo2': 56 // {{Integer}}
'paymentMode': 56 // {{Integer}}
'paymentReference': paymentReference_example // {{String}}
'stripeEnvir': stripeEnvir_example // {{String}}
'paymentType': paymentType_example // {{String}}
'orderCaptureToken': orderCaptureToken_example // {{String}}
'orderPaymentGetwayType': orderPaymentGetwayType_example // {{String}}
'orderPaymentGetwayStatus': orderPaymentGetwayStatus_example // {{String}}
'deliveryCharge': deliveryCharge_example // {{String}}
'additionalDelivery': additionalDelivery_example // {{String}}
'orderTatTime': 56 // {{Integer}}
'taxCharge': 56 // {{Integer}}
'orderTaxCalculateAmount': orderTaxCalculateAmount_example // {{String}}
'orderDataEncode': orderDataEncode_example // {{String}}
'orderDiscountApplied': orderDiscountApplied_example // {{String}}
'orderDiscountAmount': orderDiscountAmount_example // {{String}}
'orderDiscountType': orderDiscountType_example // {{String}}
'orderSpecialDiscountAmount': orderSpecialDiscountAmount_example // {{String}}
'orderSpecialDiscountType': orderSpecialDiscountType_example // {{String}}
'validationOnly': validationOnly_example // {{String}}
'discountApplied': discountApplied_example // {{String}}
'discountAmount': discountAmount_example // {{String}}
'redeemApplied': redeemApplied_example // {{String}}
'redeemPoint': 56 // {{Integer}}
'redeemAmount': 56 // {{Integer}}
'rewardPointStatus': rewardPointStatus_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.apiOrdersv1SubmitOrderPost(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiOrdersv1SubmitOrderPostExample
{
public void main()
{
// Configure OAuth2 access token for authorization: clientCredentials
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new OrdersApi();
var appId = appId_example; // String | (optional)
var availabilityId = availabilityId_example; // String | (optional)
var subTotal = subTotal_example; // String | (optional)
var grandTotal = grandTotal_example; // String | (optional)
var outletId = 56; // Integer | (optional)
var orderOutletCategoryId = 56; // Integer | (optional)
var zoneId = 56; // Integer | (optional)
var tableNumber = tableNumber_example; // String | (optional)
var orderStatus = orderStatus_example; // String | (optional)
var orderSource = orderSource_example; // String | (optional)
var orderDate = orderDate_example; // String | (optional)
var orderIsTimeslot = orderIsTimeslot_example; // String | (optional)
var orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example; // String | (optional)
var orderPickupTimeSlotTo = orderPickupTimeSlotTo_example; // String | (optional)
var products = products_example; // String | (optional)
var customerId = customerId_example; // String | (optional)
var customerFname = customerFname_example; // String | (optional)
var customerLname = customerLname_example; // String | (optional)
var customerMobileNo = 56; // Integer | (optional)
var customerEmail = customerEmail_example; // String | (optional)
var customerAddressLine1 = customerAddressLine1_example; // String | (optional)
var customerAddressLine2 = customerAddressLine2_example; // String | (optional)
var customerPostalCode = 56; // Integer | (optional)
var customerUnitNo1 = 56; // Integer | (optional)
var customerUnitNo2 = customerUnitNo2_example; // String | (optional)
var customerBirthdateUpdate = customerBirthdateUpdate_example; // String | (optional)
var customerBirthdate = customerBirthdate_example; // String | (optional)
var customerGender = customerGender_example; // String | (optional)
var billingAddressLine1 = billingAddressLine1_example; // String | (optional)
var billingPostalCode = 56; // Integer | (optional)
var billingUnitNo1 = billingUnitNo1_example; // String | (optional)
var billingUnitNo2 = 56; // Integer | (optional)
var paymentMode = 56; // Integer | (optional)
var paymentReference = paymentReference_example; // String | (optional)
var stripeEnvir = stripeEnvir_example; // String | (optional)
var paymentType = paymentType_example; // String | (optional)
var orderCaptureToken = orderCaptureToken_example; // String | (optional)
var orderPaymentGetwayType = orderPaymentGetwayType_example; // String | (optional)
var orderPaymentGetwayStatus = orderPaymentGetwayStatus_example; // String | (optional)
var deliveryCharge = deliveryCharge_example; // String | (optional)
var additionalDelivery = additionalDelivery_example; // String | (optional)
var orderTatTime = 56; // Integer | (optional)
var taxCharge = 56; // Integer | (optional)
var orderTaxCalculateAmount = orderTaxCalculateAmount_example; // String | (optional)
var orderDataEncode = orderDataEncode_example; // String | (optional)
var orderDiscountApplied = orderDiscountApplied_example; // String | (optional)
var orderDiscountAmount = orderDiscountAmount_example; // String | (optional)
var orderDiscountType = orderDiscountType_example; // String | (optional)
var orderSpecialDiscountAmount = orderSpecialDiscountAmount_example; // String | (optional)
var orderSpecialDiscountType = orderSpecialDiscountType_example; // String | (optional)
var validationOnly = validationOnly_example; // String | (optional)
var discountApplied = discountApplied_example; // String | (optional)
var discountAmount = discountAmount_example; // String | (optional)
var redeemApplied = redeemApplied_example; // String | (optional)
var redeemPoint = 56; // Integer | (optional)
var redeemAmount = 56; // Integer | (optional)
var rewardPointStatus = rewardPointStatus_example; // String | (optional)
try
{
// Submit Orders
apiInstance.apiOrdersv1SubmitOrderPost(appId, availabilityId, subTotal, grandTotal, outletId, orderOutletCategoryId, zoneId, tableNumber, orderStatus, orderSource, orderDate, orderIsTimeslot, orderPickupTimeSlotFrom, orderPickupTimeSlotTo, products, customerId, customerFname, customerLname, customerMobileNo, customerEmail, customerAddressLine1, customerAddressLine2, customerPostalCode, customerUnitNo1, customerUnitNo2, customerBirthdateUpdate, customerBirthdate, customerGender, billingAddressLine1, billingPostalCode, billingUnitNo1, billingUnitNo2, paymentMode, paymentReference, stripeEnvir, paymentType, orderCaptureToken, orderPaymentGetwayType, orderPaymentGetwayStatus, deliveryCharge, additionalDelivery, orderTatTime, taxCharge, orderTaxCalculateAmount, orderDataEncode, orderDiscountApplied, orderDiscountAmount, orderDiscountType, orderSpecialDiscountAmount, orderSpecialDiscountType, validationOnly, discountApplied, discountAmount, redeemApplied, redeemPoint, redeemAmount, rewardPointStatus);
}
catch (Exception e)
{
Debug.Print("Exception when calling OrdersApi.apiOrdersv1SubmitOrderPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: clientCredentials
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\ApiOrdersApi();
$appId = appId_example; // String |
$availabilityId = availabilityId_example; // String |
$subTotal = subTotal_example; // String |
$grandTotal = grandTotal_example; // String |
$outletId = 56; // Integer |
$orderOutletCategoryId = 56; // Integer |
$zoneId = 56; // Integer |
$tableNumber = tableNumber_example; // String |
$orderStatus = orderStatus_example; // String |
$orderSource = orderSource_example; // String |
$orderDate = orderDate_example; // String |
$orderIsTimeslot = orderIsTimeslot_example; // String |
$orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example; // String |
$orderPickupTimeSlotTo = orderPickupTimeSlotTo_example; // String |
$products = products_example; // String |
$customerId = customerId_example; // String |
$customerFname = customerFname_example; // String |
$customerLname = customerLname_example; // String |
$customerMobileNo = 56; // Integer |
$customerEmail = customerEmail_example; // String |
$customerAddressLine1 = customerAddressLine1_example; // String |
$customerAddressLine2 = customerAddressLine2_example; // String |
$customerPostalCode = 56; // Integer |
$customerUnitNo1 = 56; // Integer |
$customerUnitNo2 = customerUnitNo2_example; // String |
$customerBirthdateUpdate = customerBirthdateUpdate_example; // String |
$customerBirthdate = customerBirthdate_example; // String |
$customerGender = customerGender_example; // String |
$billingAddressLine1 = billingAddressLine1_example; // String |
$billingPostalCode = 56; // Integer |
$billingUnitNo1 = billingUnitNo1_example; // String |
$billingUnitNo2 = 56; // Integer |
$paymentMode = 56; // Integer |
$paymentReference = paymentReference_example; // String |
$stripeEnvir = stripeEnvir_example; // String |
$paymentType = paymentType_example; // String |
$orderCaptureToken = orderCaptureToken_example; // String |
$orderPaymentGetwayType = orderPaymentGetwayType_example; // String |
$orderPaymentGetwayStatus = orderPaymentGetwayStatus_example; // String |
$deliveryCharge = deliveryCharge_example; // String |
$additionalDelivery = additionalDelivery_example; // String |
$orderTatTime = 56; // Integer |
$taxCharge = 56; // Integer |
$orderTaxCalculateAmount = orderTaxCalculateAmount_example; // String |
$orderDataEncode = orderDataEncode_example; // String |
$orderDiscountApplied = orderDiscountApplied_example; // String |
$orderDiscountAmount = orderDiscountAmount_example; // String |
$orderDiscountType = orderDiscountType_example; // String |
$orderSpecialDiscountAmount = orderSpecialDiscountAmount_example; // String |
$orderSpecialDiscountType = orderSpecialDiscountType_example; // String |
$validationOnly = validationOnly_example; // String |
$discountApplied = discountApplied_example; // String |
$discountAmount = discountAmount_example; // String |
$redeemApplied = redeemApplied_example; // String |
$redeemPoint = 56; // Integer |
$redeemAmount = 56; // Integer |
$rewardPointStatus = rewardPointStatus_example; // String |
try {
$api_instance->apiOrdersv1SubmitOrderPost($appId, $availabilityId, $subTotal, $grandTotal, $outletId, $orderOutletCategoryId, $zoneId, $tableNumber, $orderStatus, $orderSource, $orderDate, $orderIsTimeslot, $orderPickupTimeSlotFrom, $orderPickupTimeSlotTo, $products, $customerId, $customerFname, $customerLname, $customerMobileNo, $customerEmail, $customerAddressLine1, $customerAddressLine2, $customerPostalCode, $customerUnitNo1, $customerUnitNo2, $customerBirthdateUpdate, $customerBirthdate, $customerGender, $billingAddressLine1, $billingPostalCode, $billingUnitNo1, $billingUnitNo2, $paymentMode, $paymentReference, $stripeEnvir, $paymentType, $orderCaptureToken, $orderPaymentGetwayType, $orderPaymentGetwayStatus, $deliveryCharge, $additionalDelivery, $orderTatTime, $taxCharge, $orderTaxCalculateAmount, $orderDataEncode, $orderDiscountApplied, $orderDiscountAmount, $orderDiscountType, $orderSpecialDiscountAmount, $orderSpecialDiscountType, $validationOnly, $discountApplied, $discountAmount, $redeemApplied, $redeemPoint, $redeemAmount, $rewardPointStatus);
} catch (Exception $e) {
echo 'Exception when calling OrdersApi->apiOrdersv1SubmitOrderPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdersApi;
# Configure OAuth2 access token for authorization: clientCredentials
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::OrdersApi->new();
my $appId = appId_example; # String |
my $availabilityId = availabilityId_example; # String |
my $subTotal = subTotal_example; # String |
my $grandTotal = grandTotal_example; # String |
my $outletId = 56; # Integer |
my $orderOutletCategoryId = 56; # Integer |
my $zoneId = 56; # Integer |
my $tableNumber = tableNumber_example; # String |
my $orderStatus = orderStatus_example; # String |
my $orderSource = orderSource_example; # String |
my $orderDate = orderDate_example; # String |
my $orderIsTimeslot = orderIsTimeslot_example; # String |
my $orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example; # String |
my $orderPickupTimeSlotTo = orderPickupTimeSlotTo_example; # String |
my $products = products_example; # String |
my $customerId = customerId_example; # String |
my $customerFname = customerFname_example; # String |
my $customerLname = customerLname_example; # String |
my $customerMobileNo = 56; # Integer |
my $customerEmail = customerEmail_example; # String |
my $customerAddressLine1 = customerAddressLine1_example; # String |
my $customerAddressLine2 = customerAddressLine2_example; # String |
my $customerPostalCode = 56; # Integer |
my $customerUnitNo1 = 56; # Integer |
my $customerUnitNo2 = customerUnitNo2_example; # String |
my $customerBirthdateUpdate = customerBirthdateUpdate_example; # String |
my $customerBirthdate = customerBirthdate_example; # String |
my $customerGender = customerGender_example; # String |
my $billingAddressLine1 = billingAddressLine1_example; # String |
my $billingPostalCode = 56; # Integer |
my $billingUnitNo1 = billingUnitNo1_example; # String |
my $billingUnitNo2 = 56; # Integer |
my $paymentMode = 56; # Integer |
my $paymentReference = paymentReference_example; # String |
my $stripeEnvir = stripeEnvir_example; # String |
my $paymentType = paymentType_example; # String |
my $orderCaptureToken = orderCaptureToken_example; # String |
my $orderPaymentGetwayType = orderPaymentGetwayType_example; # String |
my $orderPaymentGetwayStatus = orderPaymentGetwayStatus_example; # String |
my $deliveryCharge = deliveryCharge_example; # String |
my $additionalDelivery = additionalDelivery_example; # String |
my $orderTatTime = 56; # Integer |
my $taxCharge = 56; # Integer |
my $orderTaxCalculateAmount = orderTaxCalculateAmount_example; # String |
my $orderDataEncode = orderDataEncode_example; # String |
my $orderDiscountApplied = orderDiscountApplied_example; # String |
my $orderDiscountAmount = orderDiscountAmount_example; # String |
my $orderDiscountType = orderDiscountType_example; # String |
my $orderSpecialDiscountAmount = orderSpecialDiscountAmount_example; # String |
my $orderSpecialDiscountType = orderSpecialDiscountType_example; # String |
my $validationOnly = validationOnly_example; # String |
my $discountApplied = discountApplied_example; # String |
my $discountAmount = discountAmount_example; # String |
my $redeemApplied = redeemApplied_example; # String |
my $redeemPoint = 56; # Integer |
my $redeemAmount = 56; # Integer |
my $rewardPointStatus = rewardPointStatus_example; # String |
eval {
$api_instance->apiOrdersv1SubmitOrderPost(appId => $appId, availabilityId => $availabilityId, subTotal => $subTotal, grandTotal => $grandTotal, outletId => $outletId, orderOutletCategoryId => $orderOutletCategoryId, zoneId => $zoneId, tableNumber => $tableNumber, orderStatus => $orderStatus, orderSource => $orderSource, orderDate => $orderDate, orderIsTimeslot => $orderIsTimeslot, orderPickupTimeSlotFrom => $orderPickupTimeSlotFrom, orderPickupTimeSlotTo => $orderPickupTimeSlotTo, products => $products, customerId => $customerId, customerFname => $customerFname, customerLname => $customerLname, customerMobileNo => $customerMobileNo, customerEmail => $customerEmail, customerAddressLine1 => $customerAddressLine1, customerAddressLine2 => $customerAddressLine2, customerPostalCode => $customerPostalCode, customerUnitNo1 => $customerUnitNo1, customerUnitNo2 => $customerUnitNo2, customerBirthdateUpdate => $customerBirthdateUpdate, customerBirthdate => $customerBirthdate, customerGender => $customerGender, billingAddressLine1 => $billingAddressLine1, billingPostalCode => $billingPostalCode, billingUnitNo1 => $billingUnitNo1, billingUnitNo2 => $billingUnitNo2, paymentMode => $paymentMode, paymentReference => $paymentReference, stripeEnvir => $stripeEnvir, paymentType => $paymentType, orderCaptureToken => $orderCaptureToken, orderPaymentGetwayType => $orderPaymentGetwayType, orderPaymentGetwayStatus => $orderPaymentGetwayStatus, deliveryCharge => $deliveryCharge, additionalDelivery => $additionalDelivery, orderTatTime => $orderTatTime, taxCharge => $taxCharge, orderTaxCalculateAmount => $orderTaxCalculateAmount, orderDataEncode => $orderDataEncode, orderDiscountApplied => $orderDiscountApplied, orderDiscountAmount => $orderDiscountAmount, orderDiscountType => $orderDiscountType, orderSpecialDiscountAmount => $orderSpecialDiscountAmount, orderSpecialDiscountType => $orderSpecialDiscountType, validationOnly => $validationOnly, discountApplied => $discountApplied, discountAmount => $discountAmount, redeemApplied => $redeemApplied, redeemPoint => $redeemPoint, redeemAmount => $redeemAmount, rewardPointStatus => $rewardPointStatus);
};
if ($@) {
warn "Exception when calling OrdersApi->apiOrdersv1SubmitOrderPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: clientCredentials
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.OrdersApi()
appId = appId_example # String | (optional)
availabilityId = availabilityId_example # String | (optional)
subTotal = subTotal_example # String | (optional)
grandTotal = grandTotal_example # String | (optional)
outletId = 56 # Integer | (optional)
orderOutletCategoryId = 56 # Integer | (optional)
zoneId = 56 # Integer | (optional)
tableNumber = tableNumber_example # String | (optional)
orderStatus = orderStatus_example # String | (optional)
orderSource = orderSource_example # String | (optional)
orderDate = orderDate_example # String | (optional)
orderIsTimeslot = orderIsTimeslot_example # String | (optional)
orderPickupTimeSlotFrom = orderPickupTimeSlotFrom_example # String | (optional)
orderPickupTimeSlotTo = orderPickupTimeSlotTo_example # String | (optional)
products = products_example # String | (optional)
customerId = customerId_example # String | (optional)
customerFname = customerFname_example # String | (optional)
customerLname = customerLname_example # String | (optional)
customerMobileNo = 56 # Integer | (optional)
customerEmail = customerEmail_example # String | (optional)
customerAddressLine1 = customerAddressLine1_example # String | (optional)
customerAddressLine2 = customerAddressLine2_example # String | (optional)
customerPostalCode = 56 # Integer | (optional)
customerUnitNo1 = 56 # Integer | (optional)
customerUnitNo2 = customerUnitNo2_example # String | (optional)
customerBirthdateUpdate = customerBirthdateUpdate_example # String | (optional)
customerBirthdate = customerBirthdate_example # String | (optional)
customerGender = customerGender_example # String | (optional)
billingAddressLine1 = billingAddressLine1_example # String | (optional)
billingPostalCode = 56 # Integer | (optional)
billingUnitNo1 = billingUnitNo1_example # String | (optional)
billingUnitNo2 = 56 # Integer | (optional)
paymentMode = 56 # Integer | (optional)
paymentReference = paymentReference_example # String | (optional)
stripeEnvir = stripeEnvir_example # String | (optional)
paymentType = paymentType_example # String | (optional)
orderCaptureToken = orderCaptureToken_example # String | (optional)
orderPaymentGetwayType = orderPaymentGetwayType_example # String | (optional)
orderPaymentGetwayStatus = orderPaymentGetwayStatus_example # String | (optional)
deliveryCharge = deliveryCharge_example # String | (optional)
additionalDelivery = additionalDelivery_example # String | (optional)
orderTatTime = 56 # Integer | (optional)
taxCharge = 56 # Integer | (optional)
orderTaxCalculateAmount = orderTaxCalculateAmount_example # String | (optional)
orderDataEncode = orderDataEncode_example # String | (optional)
orderDiscountApplied = orderDiscountApplied_example # String | (optional)
orderDiscountAmount = orderDiscountAmount_example # String | (optional)
orderDiscountType = orderDiscountType_example # String | (optional)
orderSpecialDiscountAmount = orderSpecialDiscountAmount_example # String | (optional)
orderSpecialDiscountType = orderSpecialDiscountType_example # String | (optional)
validationOnly = validationOnly_example # String | (optional)
discountApplied = discountApplied_example # String | (optional)
discountAmount = discountAmount_example # String | (optional)
redeemApplied = redeemApplied_example # String | (optional)
redeemPoint = 56 # Integer | (optional)
redeemAmount = 56 # Integer | (optional)
rewardPointStatus = rewardPointStatus_example # String | (optional)
try:
# Submit Orders
api_instance.api_ordersv1_submit_order_post(appId=appId, availabilityId=availabilityId, subTotal=subTotal, grandTotal=grandTotal, outletId=outletId, orderOutletCategoryId=orderOutletCategoryId, zoneId=zoneId, tableNumber=tableNumber, orderStatus=orderStatus, orderSource=orderSource, orderDate=orderDate, orderIsTimeslot=orderIsTimeslot, orderPickupTimeSlotFrom=orderPickupTimeSlotFrom, orderPickupTimeSlotTo=orderPickupTimeSlotTo, products=products, customerId=customerId, customerFname=customerFname, customerLname=customerLname, customerMobileNo=customerMobileNo, customerEmail=customerEmail, customerAddressLine1=customerAddressLine1, customerAddressLine2=customerAddressLine2, customerPostalCode=customerPostalCode, customerUnitNo1=customerUnitNo1, customerUnitNo2=customerUnitNo2, customerBirthdateUpdate=customerBirthdateUpdate, customerBirthdate=customerBirthdate, customerGender=customerGender, billingAddressLine1=billingAddressLine1, billingPostalCode=billingPostalCode, billingUnitNo1=billingUnitNo1, billingUnitNo2=billingUnitNo2, paymentMode=paymentMode, paymentReference=paymentReference, stripeEnvir=stripeEnvir, paymentType=paymentType, orderCaptureToken=orderCaptureToken, orderPaymentGetwayType=orderPaymentGetwayType, orderPaymentGetwayStatus=orderPaymentGetwayStatus, deliveryCharge=deliveryCharge, additionalDelivery=additionalDelivery, orderTatTime=orderTatTime, taxCharge=taxCharge, orderTaxCalculateAmount=orderTaxCalculateAmount, orderDataEncode=orderDataEncode, orderDiscountApplied=orderDiscountApplied, orderDiscountAmount=orderDiscountAmount, orderDiscountType=orderDiscountType, orderSpecialDiscountAmount=orderSpecialDiscountAmount, orderSpecialDiscountType=orderSpecialDiscountType, validationOnly=validationOnly, discountApplied=discountApplied, discountAmount=discountAmount, redeemApplied=redeemApplied, redeemPoint=redeemPoint, redeemAmount=redeemAmount, rewardPointStatus=rewardPointStatus)
except ApiException as e:
print("Exception when calling OrdersApi->apiOrdersv1SubmitOrderPost: %s\n" % e)