Unicode C
Unicode C
Ecwid - Search Orders
See more Ecwid Examples
Search or filter orders in an Ecwid store. The response provides full details of the found orders.Chilkat Unicode C Downloads
#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkStringBuilderW.h>
void ChilkatSample(void)
{
BOOL success;
HCkHttpW http;
HCkJsonObjectW jsonToken;
HCkJsonObjectW params;
HCkHttpResponseW resp;
HCkStringBuilderW sbResponseBody;
HCkJsonObjectW jResp;
int respStatusCode;
const wchar_t *id;
const wchar_t *subtotal;
const wchar_t *total_str;
const wchar_t *giftCardRedemption;
const wchar_t *totalBeforeGiftCardRedemption;
BOOL giftCardDoubleSpending;
const wchar_t *usdTotal;
const wchar_t *tax;
const wchar_t *paymentMethod;
const wchar_t *paymentStatus;
const wchar_t *fulfillmentStatus;
const wchar_t *vendorOrderNumber;
int orderNumber;
const wchar_t *refererUrl;
const wchar_t *globalReferer;
const wchar_t *createDate;
const wchar_t *updateDate;
int createTimestamp;
int updateTimestamp;
BOOL hidden;
const wchar_t *orderComments;
const wchar_t *privateAdminNotes;
const wchar_t *email;
const wchar_t *ipAddress;
int customerId;
int customerGroupId;
const wchar_t *customerGroup;
BOOL customerTaxExempt;
const wchar_t *customerTaxId;
BOOL customerTaxIdValid;
BOOL reversedTaxApplied;
int discount;
int couponDiscount;
int volumeDiscount;
int membershipBasedDiscount;
int totalAndMembershipBasedDiscount;
int discountCouponId;
const wchar_t *discountCouponName;
const wchar_t *discountCouponCode;
const wchar_t *discountCouponDiscountType;
const wchar_t *discountCouponStatus;
int discountCouponDiscount;
const wchar_t *discountCouponLaunchDate;
const wchar_t *discountCouponUsesLimit;
const wchar_t *discountCouponApplicationLimit;
const wchar_t *discountCouponCreationDate;
const wchar_t *discountCouponUpdateDate;
int discountCouponOrderCount;
const wchar_t *refundedAmount;
const wchar_t *billingPersonName;
const wchar_t *billingPersonCompanyName;
const wchar_t *billingPersonStreet;
const wchar_t *billingPersonCity;
const wchar_t *billingPersonCountryCode;
const wchar_t *billingPersonCountryName;
const wchar_t *billingPersonPostalCode;
const wchar_t *billingPersonStateOrProvinceCode;
const wchar_t *billingPersonStateOrProvinceName;
const wchar_t *billingPersonPhone;
const wchar_t *shippingPersonName;
const wchar_t *shippingPersonCompanyName;
const wchar_t *shippingPersonStreet;
const wchar_t *shippingPersonCity;
const wchar_t *shippingPersonCountryCode;
const wchar_t *shippingPersonCountryName;
const wchar_t *shippingPersonPostalCode;
const wchar_t *shippingPersonStateOrProvinceCode;
const wchar_t *shippingPersonStateOrProvinceName;
const wchar_t *shippingPersonPhone;
const wchar_t *shippingOptionShippingCarrierName;
const wchar_t *shippingOptionShippingMethodName;
const wchar_t *shippingOptionShippingRate;
const wchar_t *shippingOptionEstimatedTransitTime;
BOOL shippingOptionIsPickup;
const wchar_t *handlingFeeName;
int handlingFeeValue;
const wchar_t *handlingFeeDescription;
const wchar_t *paymentModule;
const wchar_t *additionalInfoGoogle_customer_id;
BOOL acceptMarketing;
const wchar_t *refererId;
BOOL disableAllCustomerNotifications;
BOOL externalFulfillment;
BOOL pricesIncludeTax;
int j;
int count_j;
int value;
const wchar_t *v_type;
const wchar_t *base;
int orderTotal;
int id_int;
int productId;
int categoryId;
int price;
int productPrice;
const wchar_t *sku;
int quantity;
const wchar_t *shortDescription;
int shipping;
int quantityInStock;
const wchar_t *name;
BOOL isShippingRequired;
int weight;
BOOL trackQuantity;
BOOL fixedShippingRateOnly;
const wchar_t *imageUrl;
const wchar_t *smallThumbnailUrl;
const wchar_t *hdThumbnailUrl;
int fixedShippingRate;
BOOL digital;
BOOL couponApplied;
int dimensionsLength;
int dimensionsWidth;
int dimensionsHeight;
const wchar_t *couponAmount;
int subscriptionId;
const wchar_t *recurringChargeSettingsRecurringInterval;
int recurringChargeSettingsRecurringIntervalCount;
int k;
int count_k;
const wchar_t *value_str;
HCkJsonObjectW json1;
int i1;
int count_i1;
const wchar_t *strVal;
const wchar_t *selectionTitle;
int selectionModifier;
const wchar_t *selectionModifierType;
const wchar_t *taxOnDiscountedSubtotal;
int taxOnShipping;
BOOL includeInPrice;
int discountInfoValue;
const wchar_t *discountInfoType;
const wchar_t *discountInfoBase;
int discountInfoOrderTotal;
const wchar_t *date;
const wchar_t *source;
const wchar_t *reason;
const wchar_t *amount;
int length;
int width;
int height;
const wchar_t *weight_str;
const wchar_t *declaredValue;
const wchar_t *created;
const wchar_t *shipToName;
const wchar_t *shipToCompanyName;
const wchar_t *shipToStreet;
const wchar_t *shipToCity;
const wchar_t *shipToCountryCode;
const wchar_t *shipToCountryName;
const wchar_t *shipToPostalCode;
const wchar_t *shipToStateOrProvinceCode;
const wchar_t *shipToStateOrProvinceName;
const wchar_t *shipToPhone;
const wchar_t *shipFromCompanyName;
const wchar_t *shipFromStreet;
const wchar_t *shipFromCity;
const wchar_t *shipFromCountryCode;
const wchar_t *shipFromCountryName;
const wchar_t *shipFromPostalCode;
const wchar_t *shipFromStateOrProvinceCode;
const wchar_t *shipFromStateOrProvinceName;
const wchar_t *shipFromPhone;
const wchar_t *parcelWeight;
int parcelWeightUnit;
int parcelWidth;
int parcelHeight;
int parcelLength;
int parcelDimensionUnit;
int shippingServiceCarrier;
int shippingServiceCarrierName;
const wchar_t *shippingServiceCarrierServiceName;
const wchar_t *shippingServiceCarrierServiceCode;
const wchar_t *trackingTracking_number;
const wchar_t *trackingTracking_url;
int trackingEstimatedDays;
const wchar_t *shippingLabelLabel_url;
const wchar_t *shippingLabelCommercial_invoice_url;
const wchar_t *customerInputType;
const wchar_t *title;
const wchar_t *orderDetailsDisplaySection;
const wchar_t *orderBy;
int total;
int count;
int offset;
int limit;
int i;
int count_i;
success = FALSE;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http = CkHttpW_Create();
// Implements the following CURL command:
// curl --request GET \
// --url 'https://app.ecwid.com/api/v3/storeId/orders?token=token' \
// --header 'Accept: application/json'
// Use the following online tool to generate HTTP code from a CURL command
// Convert a cURL Command to HTTP Source Code
// Load the access token previously obtained in Ecwid Get Access Token
jsonToken = CkJsonObjectW_Create();
CkJsonObjectW_LoadFile(jsonToken,L"qa_data/tokens/ecwid.json");
CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");
params = CkJsonObjectW_Create();
CkJsonObjectW_UpdateInt(params,L"limit",100);
CkJsonObjectW_UpdateString(params,L"email",L"joe@example.com");
CkJsonObjectW_UpdateString(params,L"token",CkJsonObjectW_stringOf(jsonToken,L"access_token"));
resp = CkHttpResponseW_Create();
success = CkHttpW_HttpParams(http,L"GET",L"https://app.ecwid.com/api/v3/storeId/orders",params,resp);
if (success == FALSE) {
wprintf(L"%s\n",CkHttpW_lastErrorText(http));
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(jsonToken);
CkJsonObjectW_Dispose(params);
CkHttpResponseW_Dispose(resp);
return;
}
sbResponseBody = CkStringBuilderW_Create();
CkHttpResponseW_GetBodySb(resp,sbResponseBody);
jResp = CkJsonObjectW_Create();
CkJsonObjectW_LoadSb(jResp,sbResponseBody);
CkJsonObjectW_putEmitCompact(jResp,FALSE);
wprintf(L"Response Body:\n");
wprintf(L"%s\n",CkJsonObjectW_emit(jResp));
respStatusCode = CkHttpResponseW_getStatusCode(resp);
wprintf(L"Response Status Code = %d\n",respStatusCode);
if (respStatusCode != 200) {
wprintf(L"Failed.\n");
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(jsonToken);
CkJsonObjectW_Dispose(params);
CkHttpResponseW_Dispose(resp);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jResp);
return;
}
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "total": 1,
// "count": 1,
// "offset": 0,
// "limit": 100,
// "items": [
// {
// "id": "XJ12H",
// "subtotal": 1076.64,
// "total": 2014.97,
// "giftCardRedemption": 2.23,
// "totalBeforeGiftCardRedemption": 2.23,
// "giftCardDoubleSpending": false,
// "usdTotal": 2014.97,
// "tax": 488.48,
// "paymentMethod": "Credit or debit card (Mollie)",
// "paymentStatus": "PARTIALLY_REFUNDED",
// "fulfillmentStatus": "DELIVERED",
// "vendorOrderNumber": "XJ12H",
// "orderNumber": 1082727626,
// "refererUrl": "https://mdemo.ecwid.com/",
// "globalReferer": "https://my.ecwid.com/",
// "createDate": "2018-05-31 15:08:36 +0000",
// "updateDate": "2018-05-31 15:09:35 +0000",
// "createTimestamp": 1527779316,
// "updateTimestamp": 1527779375,
// "hidden": false,
// "orderComments": "Test order comments",
// "privateAdminNotes": "Must be delivered till Sunday.",
// "email": "mscott@gmail.com",
// "ipAddress": "123.431.234.243",
// "customerId": 40201284,
// "customerGroupId": 12345,
// "customerGroup": "Gold",
// "customerTaxExempt": false,
// "customerTaxId": "",
// "customerTaxIdValid": false,
// "reversedTaxApplied": false,
// "discount": 4,
// "couponDiscount": 22,
// "volumeDiscount": 4,
// "membershipBasedDiscount": 0,
// "totalAndMembershipBasedDiscount": 0,
// "customDiscount": [
// ],
// "discountCoupon": {
// "id": 29567026,
// "name": "API Testing",
// "code": "APITESTING",
// "discountType": "ABS",
// "status": "ACTIVE",
// "discount": 22,
// "launchDate": "2018-05-24 20:00:00 +0000",
// "usesLimit": "UNLIMITED",
// "applicationLimit": "UNLIMITED",
// "creationDate": "2018-05-31 15:08:33 +0000",
// "updateDate": "2018-05-24 13:40:32 +0000",
// "orderCount": 0
// },
// "discountInfo": [
// {
// "value": 4,
// "type": "ABS",
// "base": "ON_TOTAL",
// "orderTotal": 1
// }
// ],
// "items": [
// {
// "id": 140273658,
// "productId": 66722487,
// "categoryId": 19563207,
// "price": 1060,
// "productPrice": 1000,
// "sku": "ABCA-IAC",
// "quantity": 1,
// "shortDescription": "",
// "tax": 331.01,
// "shipping": 0,
// "quantityInStock": 0,
// "name": "iMac",
// "isShippingRequired": true,
// "weight": 0,
// "trackQuantity": false,
// "fixedShippingRateOnly": false,
// "imageUrl": "https://ecwid-images-ru.gcdn.co/images/5035009/391870914.jpg",
// "smallThumbnailUrl": "https://ecwid-images-ru.gcdn.co/images/5035009/650638292.jpg",
// "hdThumbnailUrl": "https://ecwid-images-ru.gcdn.co/images/5035009/650638293.jpg",
// "fixedShippingRate": 0,
// "digital": false,
// "couponApplied": true,
// "selectedOptions": [
// {
// "name": "Price-Optimizer",
// "value": "6",
// "valuesArray": [
// "6"
// ],
// "selections": [
// {
// "selectionTitle": "6",
// "selectionModifier": 6,
// "selectionModifierType": "PERCENT"
// }
// ],
// "type": "CHOICE"
// }
// ],
// "taxes": [
// {
// "name": "State tax",
// "value": 12,
// "total": 124.13,
// "taxOnDiscountedSubtotal": 124.13,
// "taxOnShipping": 0,
// "includeInPrice": false
// },
// {
// "name": "TVA",
// "value": 20,
// "total": 206.88,
// "taxOnDiscountedSubtotal": 206.88,
// "taxOnShipping": 0,
// "includeInPrice": true
// }
// ],
// "dimensions": {
// "length": 0,
// "width": 0,
// "height": 0
// },
// "couponAmount": 21.66,
// "discounts": [
// {
// "discountInfo": {
// "value": 4,
// "type": "ABS",
// "base": "ON_TOTAL",
// "orderTotal": 1
// },
// "total": 3.94
// }
// ]
// },
// {
// "id": 140273659,
// "productId": 66821181,
// "categoryId": 0,
// "price": 16.64,
// "productPrice": 16,
// "sku": "001001",
// "quantity": 1,
// "shortDescription": "This sturdy white, glossy ceramic mug is an essential to your cupboard. This brawny version of ceramic mugs shows it’s ...",
// "tax": 157.47,
// "shipping": 471.85,
// "quantityInStock": 0,
// "name": "Mug",
// "isShippingRequired": true,
// "weight": 0.4,
// "trackQuantity": false,
// "fixedShippingRateOnly": false,
// "imageUrl": "https://ecwid-images-ru.gcdn.co/images/5035009/389900000.jpg",
// "smallThumbnailUrl": "https://ecwid-images-ru.gcdn.co/images/5035009/475772545.jpg",
// "hdThumbnailUrl": "https://ecwid-images-ru.gcdn.co/images/5035009/408631478.jpg",
// "fixedShippingRate": 0,
// "digital": false,
// "couponApplied": true,
// "selectedOptions": [
// {
// "name": "Color",
// "value": "White",
// "valuesArray": [
// "White"
// ],
// "selections": [
// {
// "selectionTitle": "White",
// "selectionModifier": 0,
// "selectionModifierType": "ABSOLUTE"
// }
// ],
// "type": "CHOICE"
// },
// {
// "name": "Size",
// "value": "11oz",
// "valuesArray": [
// "11oz"
// ],
// "selections": [
// {
// "selectionTitle": "11oz",
// "selectionModifier": 0,
// "selectionModifierType": "ABSOLUTE"
// }
// ],
// "type": "CHOICE"
// },
// {
// "name": "Price-Optimizer",
// "value": "4",
// "valuesArray": [
// "4"
// ],
// "selections": [
// {
// "selectionTitle": "4",
// "selectionModifier": 4,
// "selectionModifierType": "PERCENT"
// }
// ],
// "type": "CHOICE"
// }
// ],
// "taxes": [
// {
// "name": "State tax",
// "value": 12,
// "total": 59.05,
// "taxOnDiscountedSubtotal": 1.95,
// "taxOnShipping": 57.1,
// "includeInPrice": false
// },
// {
// "name": "TVA",
// "value": 20,
// "total": 98.42,
// "taxOnDiscountedSubtotal": 3.25,
// "taxOnShipping": 95.17,
// "includeInPrice": true
// }
// ],
// "dimensions": {
// "length": 0,
// "width": 0,
// "height": 0
// },
// "couponAmount": 0.34,
// "discounts": [
// {
// "discountInfo": {
// "value": 4,
// "type": "ABS",
// "base": "ON_TOTAL",
// "orderTotal": 1
// },
// "total": 0.06
// }
// ]
// },
// {
// "subscriptionId": 123456,
// "recurringChargeSettings": {
// "recurringInterval": "month",
// "recurringIntervalCount": 1
// }
// }
// ],
// "refundedAmount": 3.5,
// "refunds": [
// {
// "date": "2017-09-12 10:12:56 +0000",
// "source": "CP",
// "reason": "Testing!",
// "amount": 3.5
// }
// ],
// "billingPerson": {
// "name": "Michael Scott",
// "companyName": "",
// "street": "555 Lackawanna Ave",
// "city": "Scranton",
// "countryCode": "US",
// "countryName": "United States",
// "postalCode": "18508",
// "stateOrProvinceCode": "PA",
// "stateOrProvinceName": "Pennsylvania",
// "phone": ""
// },
// "shippingPerson": {
// "name": "Michael Scott",
// "companyName": "",
// "street": "555 Lackawanna Ave",
// "city": "Scranton",
// "countryCode": "US",
// "countryName": "United States",
// "postalCode": "18508",
// "stateOrProvinceCode": "PA",
// "stateOrProvinceName": "Pennsylvania",
// "phone": ""
// },
// "shippingOption": {
// "shippingCarrierName": "Shipping app the-printful",
// "shippingMethodName": "USPS Priority Mail",
// "shippingRate": 471.85,
// "estimatedTransitTime": "1-3",
// "isPickup": false
// },
// "handlingFee": {
// "name": "Handling Fee",
// "value": 4,
// "description": ""
// },
// "predictedPackage": [
// {
// "length": 0,
// "width": 0,
// "height": 0,
// "weight": 0.4,
// "declaredValue": 1076.64
// }
// ],
// "shipments": [
// {
// "id": "5e79bd4f-9ebf-4ab8-b901-24c9b48b19eb",
// "created": "2020-04-23 19:13:43 +0000",
// "shipTo": {
// "name": "Michael Scott",
// "companyName": "",
// "street": "555 Lackawanna Ave",
// "city": "Scranton",
// "countryCode": "US",
// "countryName": "United States",
// "postalCode": "18508",
// "stateOrProvinceCode": "PA",
// "stateOrProvinceName": "Pennsylvania",
// "phone": ""
// },
// "shipFrom": {
// "companyName": "Roga Kopyty Inc",
// "street": "444 fff",
// "city": "New York",
// "countryCode": "US",
// "countryName": "United States",
// "postalCode": "10001",
// "stateOrProvinceCode": "NY",
// "stateOrProvinceName": "New York",
// "phone": "1011991919"
// },
// "parcel": {
// "weight": 0.5,
// "weightUnit": 'KILOGRAM',
// "width": 10,
// "height": 10,
// "length": 10,
// "dimensionUnit": 'CM'
// },
// "shippingService": {
// "carrier": 'USPS',
// "carrierName": 'Shipping,
// "carrierServiceName": "Priority Mail",
// "carrierServiceCode": "usps_priority"
// },
// "tracking": {
// "tracking_number": "9499907123456123456781",
// "tracking_url": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781",
// "estimatedDays": 3
// },
// "shippingLabel": {
// "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA",
// "commercial_invoice_url": ""
// }
// }
// ],
// "taxesOnShipping": [
// {
// "name": "State tax",
// "value": 12,
// "total": 57.1
// },
// {
// "name": "TVA",
// "value": 20,
// "total": 95.17
// }
// ],
// "paymentModule": "CUSTOM_PAYMENT_APP-mollie-pg",
// "additionalInfo": {
// "google_customer_id": "2008512504.1526280224"
// },
// "paymentParams": {},
// "orderExtraFields": [
// {
// "id": "lang",
// "value": "en",
// "customerInputType": "",
// "title": "",
// "orderDetailsDisplaySection": "",
// "orderBy": "1"
// },
// {
// "id": "askHowYouFoundUsApp",
// "value": "From a friend",
// "customerInputType": "SELECT",
// "title": "How did you hear about us?",
// "orderDetailsDisplaySection": "order_comments",
// "orderBy": "2"
// }
// ],
// "acceptMarketing": true,
// "refererId": "Amazon",
// "disableAllCustomerNotifications": false,
// "externalFulfillment": false,
// "pricesIncludeTax": false
// }
// ]
// }
// Sample code for parsing the JSON response...
// Use the following online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
// See this example explaining how this memory should be used: const char * functions.
json1 = CkJsonObjectW_Create();
total = CkJsonObjectW_IntOf(jResp,L"total");
count = CkJsonObjectW_IntOf(jResp,L"count");
offset = CkJsonObjectW_IntOf(jResp,L"offset");
limit = CkJsonObjectW_IntOf(jResp,L"limit");
i = 0;
count_i = CkJsonObjectW_SizeOfArray(jResp,L"items");
while (i < count_i) {
CkJsonObjectW_putI(jResp,i);
id = CkJsonObjectW_stringOf(jResp,L"items[i].id");
subtotal = CkJsonObjectW_stringOf(jResp,L"items[i].subtotal");
total_str = CkJsonObjectW_stringOf(jResp,L"items[i].total");
giftCardRedemption = CkJsonObjectW_stringOf(jResp,L"items[i].giftCardRedemption");
totalBeforeGiftCardRedemption = CkJsonObjectW_stringOf(jResp,L"items[i].totalBeforeGiftCardRedemption");
giftCardDoubleSpending = CkJsonObjectW_BoolOf(jResp,L"items[i].giftCardDoubleSpending");
usdTotal = CkJsonObjectW_stringOf(jResp,L"items[i].usdTotal");
tax = CkJsonObjectW_stringOf(jResp,L"items[i].tax");
paymentMethod = CkJsonObjectW_stringOf(jResp,L"items[i].paymentMethod");
paymentStatus = CkJsonObjectW_stringOf(jResp,L"items[i].paymentStatus");
fulfillmentStatus = CkJsonObjectW_stringOf(jResp,L"items[i].fulfillmentStatus");
vendorOrderNumber = CkJsonObjectW_stringOf(jResp,L"items[i].vendorOrderNumber");
orderNumber = CkJsonObjectW_IntOf(jResp,L"items[i].orderNumber");
refererUrl = CkJsonObjectW_stringOf(jResp,L"items[i].refererUrl");
globalReferer = CkJsonObjectW_stringOf(jResp,L"items[i].globalReferer");
createDate = CkJsonObjectW_stringOf(jResp,L"items[i].createDate");
updateDate = CkJsonObjectW_stringOf(jResp,L"items[i].updateDate");
createTimestamp = CkJsonObjectW_IntOf(jResp,L"items[i].createTimestamp");
updateTimestamp = CkJsonObjectW_IntOf(jResp,L"items[i].updateTimestamp");
hidden = CkJsonObjectW_BoolOf(jResp,L"items[i].hidden");
orderComments = CkJsonObjectW_stringOf(jResp,L"items[i].orderComments");
privateAdminNotes = CkJsonObjectW_stringOf(jResp,L"items[i].privateAdminNotes");
email = CkJsonObjectW_stringOf(jResp,L"items[i].email");
ipAddress = CkJsonObjectW_stringOf(jResp,L"items[i].ipAddress");
customerId = CkJsonObjectW_IntOf(jResp,L"items[i].customerId");
customerGroupId = CkJsonObjectW_IntOf(jResp,L"items[i].customerGroupId");
customerGroup = CkJsonObjectW_stringOf(jResp,L"items[i].customerGroup");
customerTaxExempt = CkJsonObjectW_BoolOf(jResp,L"items[i].customerTaxExempt");
customerTaxId = CkJsonObjectW_stringOf(jResp,L"items[i].customerTaxId");
customerTaxIdValid = CkJsonObjectW_BoolOf(jResp,L"items[i].customerTaxIdValid");
reversedTaxApplied = CkJsonObjectW_BoolOf(jResp,L"items[i].reversedTaxApplied");
discount = CkJsonObjectW_IntOf(jResp,L"items[i].discount");
couponDiscount = CkJsonObjectW_IntOf(jResp,L"items[i].couponDiscount");
volumeDiscount = CkJsonObjectW_IntOf(jResp,L"items[i].volumeDiscount");
membershipBasedDiscount = CkJsonObjectW_IntOf(jResp,L"items[i].membershipBasedDiscount");
totalAndMembershipBasedDiscount = CkJsonObjectW_IntOf(jResp,L"items[i].totalAndMembershipBasedDiscount");
discountCouponId = CkJsonObjectW_IntOf(jResp,L"items[i].discountCoupon.id");
discountCouponName = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.name");
discountCouponCode = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.code");
discountCouponDiscountType = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.discountType");
discountCouponStatus = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.status");
discountCouponDiscount = CkJsonObjectW_IntOf(jResp,L"items[i].discountCoupon.discount");
discountCouponLaunchDate = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.launchDate");
discountCouponUsesLimit = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.usesLimit");
discountCouponApplicationLimit = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.applicationLimit");
discountCouponCreationDate = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.creationDate");
discountCouponUpdateDate = CkJsonObjectW_stringOf(jResp,L"items[i].discountCoupon.updateDate");
discountCouponOrderCount = CkJsonObjectW_IntOf(jResp,L"items[i].discountCoupon.orderCount");
refundedAmount = CkJsonObjectW_stringOf(jResp,L"items[i].refundedAmount");
billingPersonName = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.name");
billingPersonCompanyName = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.companyName");
billingPersonStreet = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.street");
billingPersonCity = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.city");
billingPersonCountryCode = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.countryCode");
billingPersonCountryName = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.countryName");
billingPersonPostalCode = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.postalCode");
billingPersonStateOrProvinceCode = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.stateOrProvinceCode");
billingPersonStateOrProvinceName = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.stateOrProvinceName");
billingPersonPhone = CkJsonObjectW_stringOf(jResp,L"items[i].billingPerson.phone");
shippingPersonName = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.name");
shippingPersonCompanyName = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.companyName");
shippingPersonStreet = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.street");
shippingPersonCity = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.city");
shippingPersonCountryCode = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.countryCode");
shippingPersonCountryName = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.countryName");
shippingPersonPostalCode = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.postalCode");
shippingPersonStateOrProvinceCode = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.stateOrProvinceCode");
shippingPersonStateOrProvinceName = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.stateOrProvinceName");
shippingPersonPhone = CkJsonObjectW_stringOf(jResp,L"items[i].shippingPerson.phone");
shippingOptionShippingCarrierName = CkJsonObjectW_stringOf(jResp,L"items[i].shippingOption.shippingCarrierName");
shippingOptionShippingMethodName = CkJsonObjectW_stringOf(jResp,L"items[i].shippingOption.shippingMethodName");
shippingOptionShippingRate = CkJsonObjectW_stringOf(jResp,L"items[i].shippingOption.shippingRate");
shippingOptionEstimatedTransitTime = CkJsonObjectW_stringOf(jResp,L"items[i].shippingOption.estimatedTransitTime");
shippingOptionIsPickup = CkJsonObjectW_BoolOf(jResp,L"items[i].shippingOption.isPickup");
handlingFeeName = CkJsonObjectW_stringOf(jResp,L"items[i].handlingFee.name");
handlingFeeValue = CkJsonObjectW_IntOf(jResp,L"items[i].handlingFee.value");
handlingFeeDescription = CkJsonObjectW_stringOf(jResp,L"items[i].handlingFee.description");
paymentModule = CkJsonObjectW_stringOf(jResp,L"items[i].paymentModule");
additionalInfoGoogle_customer_id = CkJsonObjectW_stringOf(jResp,L"items[i].additionalInfo.google_customer_id");
acceptMarketing = CkJsonObjectW_BoolOf(jResp,L"items[i].acceptMarketing");
refererId = CkJsonObjectW_stringOf(jResp,L"items[i].refererId");
disableAllCustomerNotifications = CkJsonObjectW_BoolOf(jResp,L"items[i].disableAllCustomerNotifications");
externalFulfillment = CkJsonObjectW_BoolOf(jResp,L"items[i].externalFulfillment");
pricesIncludeTax = CkJsonObjectW_BoolOf(jResp,L"items[i].pricesIncludeTax");
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].customDiscount");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].discountInfo");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
value = CkJsonObjectW_IntOf(jResp,L"items[i].discountInfo[j].value");
v_type = CkJsonObjectW_stringOf(jResp,L"items[i].discountInfo[j].type");
base = CkJsonObjectW_stringOf(jResp,L"items[i].discountInfo[j].base");
orderTotal = CkJsonObjectW_IntOf(jResp,L"items[i].discountInfo[j].orderTotal");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].items");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
id_int = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].id");
productId = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].productId");
categoryId = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].categoryId");
price = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].price");
productPrice = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].productPrice");
sku = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].sku");
quantity = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].quantity");
shortDescription = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].shortDescription");
tax = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].tax");
shipping = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].shipping");
quantityInStock = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].quantityInStock");
name = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].name");
isShippingRequired = CkJsonObjectW_BoolOf(jResp,L"items[i].items[j].isShippingRequired");
weight = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].weight");
trackQuantity = CkJsonObjectW_BoolOf(jResp,L"items[i].items[j].trackQuantity");
fixedShippingRateOnly = CkJsonObjectW_BoolOf(jResp,L"items[i].items[j].fixedShippingRateOnly");
imageUrl = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].imageUrl");
smallThumbnailUrl = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].smallThumbnailUrl");
hdThumbnailUrl = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].hdThumbnailUrl");
fixedShippingRate = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].fixedShippingRate");
digital = CkJsonObjectW_BoolOf(jResp,L"items[i].items[j].digital");
couponApplied = CkJsonObjectW_BoolOf(jResp,L"items[i].items[j].couponApplied");
dimensionsLength = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].dimensions.length");
dimensionsWidth = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].dimensions.width");
dimensionsHeight = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].dimensions.height");
couponAmount = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].couponAmount");
subscriptionId = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].subscriptionId");
recurringChargeSettingsRecurringInterval = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].recurringChargeSettings.recurringInterval");
recurringChargeSettingsRecurringIntervalCount = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].recurringChargeSettings.recurringIntervalCount");
k = 0;
count_k = CkJsonObjectW_SizeOfArray(jResp,L"items[i].items[j].selectedOptions");
while (k < count_k) {
CkJsonObjectW_putK(jResp,k);
name = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].selectedOptions[k].name");
value_str = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].selectedOptions[k].value");
v_type = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].selectedOptions[k].type");
CkJsonObjectW_ObjectOf2(jResp,L"items[i].items[j].selectedOptions[k]",json1);
i1 = 0;
count_i1 = CkJsonObjectW_SizeOfArray(json1,L"valuesArray");
while (i1 < count_i1) {
CkJsonObjectW_putI(json1,i1);
strVal = CkJsonObjectW_stringOf(json1,L"valuesArray[i]");
i1 = i1 + 1;
}
CkJsonObjectW_ObjectOf2(jResp,L"items[i].items[j].selectedOptions[k]",json1);
i1 = 0;
count_i1 = CkJsonObjectW_SizeOfArray(json1,L"selections");
while (i1 < count_i1) {
CkJsonObjectW_putI(json1,i1);
selectionTitle = CkJsonObjectW_stringOf(json1,L"selections[i].selectionTitle");
selectionModifier = CkJsonObjectW_IntOf(json1,L"selections[i].selectionModifier");
selectionModifierType = CkJsonObjectW_stringOf(json1,L"selections[i].selectionModifierType");
i1 = i1 + 1;
}
k = k + 1;
}
k = 0;
count_k = CkJsonObjectW_SizeOfArray(jResp,L"items[i].items[j].taxes");
while (k < count_k) {
CkJsonObjectW_putK(jResp,k);
name = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].taxes[k].name");
value = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].taxes[k].value");
total_str = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].taxes[k].total");
taxOnDiscountedSubtotal = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].taxes[k].taxOnDiscountedSubtotal");
taxOnShipping = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].taxes[k].taxOnShipping");
includeInPrice = CkJsonObjectW_BoolOf(jResp,L"items[i].items[j].taxes[k].includeInPrice");
k = k + 1;
}
k = 0;
count_k = CkJsonObjectW_SizeOfArray(jResp,L"items[i].items[j].discounts");
while (k < count_k) {
CkJsonObjectW_putK(jResp,k);
discountInfoValue = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].discounts[k].discountInfo.value");
discountInfoType = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].discounts[k].discountInfo.type");
discountInfoBase = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].discounts[k].discountInfo.base");
discountInfoOrderTotal = CkJsonObjectW_IntOf(jResp,L"items[i].items[j].discounts[k].discountInfo.orderTotal");
total_str = CkJsonObjectW_stringOf(jResp,L"items[i].items[j].discounts[k].total");
k = k + 1;
}
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].refunds");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
date = CkJsonObjectW_stringOf(jResp,L"items[i].refunds[j].date");
source = CkJsonObjectW_stringOf(jResp,L"items[i].refunds[j].source");
reason = CkJsonObjectW_stringOf(jResp,L"items[i].refunds[j].reason");
amount = CkJsonObjectW_stringOf(jResp,L"items[i].refunds[j].amount");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].predictedPackage");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
length = CkJsonObjectW_IntOf(jResp,L"items[i].predictedPackage[j].length");
width = CkJsonObjectW_IntOf(jResp,L"items[i].predictedPackage[j].width");
height = CkJsonObjectW_IntOf(jResp,L"items[i].predictedPackage[j].height");
weight_str = CkJsonObjectW_stringOf(jResp,L"items[i].predictedPackage[j].weight");
declaredValue = CkJsonObjectW_stringOf(jResp,L"items[i].predictedPackage[j].declaredValue");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].shipments");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
id = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].id");
created = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].created");
shipToName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.name");
shipToCompanyName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.companyName");
shipToStreet = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.street");
shipToCity = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.city");
shipToCountryCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.countryCode");
shipToCountryName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.countryName");
shipToPostalCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.postalCode");
shipToStateOrProvinceCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.stateOrProvinceCode");
shipToStateOrProvinceName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.stateOrProvinceName");
shipToPhone = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipTo.phone");
shipFromCompanyName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.companyName");
shipFromStreet = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.street");
shipFromCity = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.city");
shipFromCountryCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.countryCode");
shipFromCountryName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.countryName");
shipFromPostalCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.postalCode");
shipFromStateOrProvinceCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.stateOrProvinceCode");
shipFromStateOrProvinceName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.stateOrProvinceName");
shipFromPhone = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shipFrom.phone");
parcelWeight = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].parcel.weight");
parcelWeightUnit = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].parcel.weightUnit");
parcelWidth = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].parcel.width");
parcelHeight = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].parcel.height");
parcelLength = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].parcel.length");
parcelDimensionUnit = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].parcel.dimensionUnit");
shippingServiceCarrier = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].shippingService.carrier");
shippingServiceCarrierName = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].shippingService.carrierName");
shippingServiceCarrierServiceName = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shippingService.carrierServiceName");
shippingServiceCarrierServiceCode = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shippingService.carrierServiceCode");
trackingTracking_number = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].tracking.tracking_number");
trackingTracking_url = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].tracking.tracking_url");
trackingEstimatedDays = CkJsonObjectW_IntOf(jResp,L"items[i].shipments[j].tracking.estimatedDays");
shippingLabelLabel_url = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shippingLabel.label_url");
shippingLabelCommercial_invoice_url = CkJsonObjectW_stringOf(jResp,L"items[i].shipments[j].shippingLabel.commercial_invoice_url");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].taxesOnShipping");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
name = CkJsonObjectW_stringOf(jResp,L"items[i].taxesOnShipping[j].name");
value = CkJsonObjectW_IntOf(jResp,L"items[i].taxesOnShipping[j].value");
total_str = CkJsonObjectW_stringOf(jResp,L"items[i].taxesOnShipping[j].total");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"items[i].orderExtraFields");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
id = CkJsonObjectW_stringOf(jResp,L"items[i].orderExtraFields[j].id");
value_str = CkJsonObjectW_stringOf(jResp,L"items[i].orderExtraFields[j].value");
customerInputType = CkJsonObjectW_stringOf(jResp,L"items[i].orderExtraFields[j].customerInputType");
title = CkJsonObjectW_stringOf(jResp,L"items[i].orderExtraFields[j].title");
orderDetailsDisplaySection = CkJsonObjectW_stringOf(jResp,L"items[i].orderExtraFields[j].orderDetailsDisplaySection");
orderBy = CkJsonObjectW_stringOf(jResp,L"items[i].orderExtraFields[j].orderBy");
j = j + 1;
}
i = i + 1;
}
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(jsonToken);
CkJsonObjectW_Dispose(params);
CkHttpResponseW_Dispose(resp);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jResp);
CkJsonObjectW_Dispose(json1);
}