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 <CkHttpW.h>
#include <CkJsonObjectW.h>
#include <CkHttpResponseW.h>
#include <CkStringBuilderW.h>
void ChilkatSample(void)
{
bool success = false;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHttpW http;
// 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
CkJsonObjectW jsonToken;
jsonToken.LoadFile(L"qa_data/tokens/ecwid.json");
http.SetRequestHeader(L"Accept",L"application/json");
CkJsonObjectW params;
params.UpdateInt(L"limit",100);
params.UpdateString(L"email",L"joe@example.com");
params.UpdateString(L"token",jsonToken.stringOf(L"access_token"));
CkHttpResponseW resp;
success = http.HttpParams(L"GET",L"https://app.ecwid.com/api/v3/storeId/orders",params,resp);
if (success == false) {
wprintf(L"%s\n",http.lastErrorText());
return;
}
CkStringBuilderW sbResponseBody;
resp.GetBodySb(sbResponseBody);
CkJsonObjectW jResp;
jResp.LoadSb(sbResponseBody);
jResp.put_EmitCompact(false);
wprintf(L"Response Body:\n");
wprintf(L"%s\n",jResp.emit());
int respStatusCode = resp.get_StatusCode();
wprintf(L"Response Status Code = %d\n",respStatusCode);
if (respStatusCode != 200) {
wprintf(L"Failed.\n");
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.
const wchar_t *id = 0;
const wchar_t *subtotal = 0;
const wchar_t *total_str = 0;
const wchar_t *giftCardRedemption = 0;
const wchar_t *totalBeforeGiftCardRedemption = 0;
bool giftCardDoubleSpending;
const wchar_t *usdTotal = 0;
const wchar_t *tax = 0;
const wchar_t *paymentMethod = 0;
const wchar_t *paymentStatus = 0;
const wchar_t *fulfillmentStatus = 0;
const wchar_t *vendorOrderNumber = 0;
int orderNumber;
const wchar_t *refererUrl = 0;
const wchar_t *globalReferer = 0;
const wchar_t *createDate = 0;
const wchar_t *updateDate = 0;
int createTimestamp;
int updateTimestamp;
bool hidden;
const wchar_t *orderComments = 0;
const wchar_t *privateAdminNotes = 0;
const wchar_t *email = 0;
const wchar_t *ipAddress = 0;
int customerId;
int customerGroupId;
const wchar_t *customerGroup = 0;
bool customerTaxExempt;
const wchar_t *customerTaxId = 0;
bool customerTaxIdValid;
bool reversedTaxApplied;
int discount;
int couponDiscount;
int volumeDiscount;
int membershipBasedDiscount;
int totalAndMembershipBasedDiscount;
int discountCouponId;
const wchar_t *discountCouponName = 0;
const wchar_t *discountCouponCode = 0;
const wchar_t *discountCouponDiscountType = 0;
const wchar_t *discountCouponStatus = 0;
int discountCouponDiscount;
const wchar_t *discountCouponLaunchDate = 0;
const wchar_t *discountCouponUsesLimit = 0;
const wchar_t *discountCouponApplicationLimit = 0;
const wchar_t *discountCouponCreationDate = 0;
const wchar_t *discountCouponUpdateDate = 0;
int discountCouponOrderCount;
const wchar_t *refundedAmount = 0;
const wchar_t *billingPersonName = 0;
const wchar_t *billingPersonCompanyName = 0;
const wchar_t *billingPersonStreet = 0;
const wchar_t *billingPersonCity = 0;
const wchar_t *billingPersonCountryCode = 0;
const wchar_t *billingPersonCountryName = 0;
const wchar_t *billingPersonPostalCode = 0;
const wchar_t *billingPersonStateOrProvinceCode = 0;
const wchar_t *billingPersonStateOrProvinceName = 0;
const wchar_t *billingPersonPhone = 0;
const wchar_t *shippingPersonName = 0;
const wchar_t *shippingPersonCompanyName = 0;
const wchar_t *shippingPersonStreet = 0;
const wchar_t *shippingPersonCity = 0;
const wchar_t *shippingPersonCountryCode = 0;
const wchar_t *shippingPersonCountryName = 0;
const wchar_t *shippingPersonPostalCode = 0;
const wchar_t *shippingPersonStateOrProvinceCode = 0;
const wchar_t *shippingPersonStateOrProvinceName = 0;
const wchar_t *shippingPersonPhone = 0;
const wchar_t *shippingOptionShippingCarrierName = 0;
const wchar_t *shippingOptionShippingMethodName = 0;
const wchar_t *shippingOptionShippingRate = 0;
const wchar_t *shippingOptionEstimatedTransitTime = 0;
bool shippingOptionIsPickup;
const wchar_t *handlingFeeName = 0;
int handlingFeeValue;
const wchar_t *handlingFeeDescription = 0;
const wchar_t *paymentModule = 0;
const wchar_t *additionalInfoGoogle_customer_id = 0;
bool acceptMarketing;
const wchar_t *refererId = 0;
bool disableAllCustomerNotifications;
bool externalFulfillment;
bool pricesIncludeTax;
int j;
int count_j;
int value;
const wchar_t *v_type = 0;
const wchar_t *base = 0;
int orderTotal;
int id_int;
int productId;
int categoryId;
int price;
int productPrice;
const wchar_t *sku = 0;
int quantity;
const wchar_t *shortDescription = 0;
int shipping;
int quantityInStock;
const wchar_t *name = 0;
bool isShippingRequired;
int weight;
bool trackQuantity;
bool fixedShippingRateOnly;
const wchar_t *imageUrl = 0;
const wchar_t *smallThumbnailUrl = 0;
const wchar_t *hdThumbnailUrl = 0;
int fixedShippingRate;
bool digital;
bool couponApplied;
int dimensionsLength;
int dimensionsWidth;
int dimensionsHeight;
const wchar_t *couponAmount = 0;
int subscriptionId;
const wchar_t *recurringChargeSettingsRecurringInterval = 0;
int recurringChargeSettingsRecurringIntervalCount;
int k;
int count_k;
const wchar_t *value_str = 0;
CkJsonObjectW json1;
int i1;
int count_i1;
const wchar_t *strVal = 0;
const wchar_t *selectionTitle = 0;
int selectionModifier;
const wchar_t *selectionModifierType = 0;
const wchar_t *taxOnDiscountedSubtotal = 0;
int taxOnShipping;
bool includeInPrice;
int discountInfoValue;
const wchar_t *discountInfoType = 0;
const wchar_t *discountInfoBase = 0;
int discountInfoOrderTotal;
const wchar_t *date = 0;
const wchar_t *source = 0;
const wchar_t *reason = 0;
const wchar_t *amount = 0;
int length;
int width;
int height;
const wchar_t *weight_str = 0;
const wchar_t *declaredValue = 0;
const wchar_t *created = 0;
const wchar_t *shipToName = 0;
const wchar_t *shipToCompanyName = 0;
const wchar_t *shipToStreet = 0;
const wchar_t *shipToCity = 0;
const wchar_t *shipToCountryCode = 0;
const wchar_t *shipToCountryName = 0;
const wchar_t *shipToPostalCode = 0;
const wchar_t *shipToStateOrProvinceCode = 0;
const wchar_t *shipToStateOrProvinceName = 0;
const wchar_t *shipToPhone = 0;
const wchar_t *shipFromCompanyName = 0;
const wchar_t *shipFromStreet = 0;
const wchar_t *shipFromCity = 0;
const wchar_t *shipFromCountryCode = 0;
const wchar_t *shipFromCountryName = 0;
const wchar_t *shipFromPostalCode = 0;
const wchar_t *shipFromStateOrProvinceCode = 0;
const wchar_t *shipFromStateOrProvinceName = 0;
const wchar_t *shipFromPhone = 0;
const wchar_t *parcelWeight = 0;
int parcelWeightUnit;
int parcelWidth;
int parcelHeight;
int parcelLength;
int parcelDimensionUnit;
int shippingServiceCarrier;
int shippingServiceCarrierName;
const wchar_t *shippingServiceCarrierServiceName = 0;
const wchar_t *shippingServiceCarrierServiceCode = 0;
const wchar_t *trackingTracking_number = 0;
const wchar_t *trackingTracking_url = 0;
int trackingEstimatedDays;
const wchar_t *shippingLabelLabel_url = 0;
const wchar_t *shippingLabelCommercial_invoice_url = 0;
const wchar_t *customerInputType = 0;
const wchar_t *title = 0;
const wchar_t *orderDetailsDisplaySection = 0;
const wchar_t *orderBy = 0;
int total = jResp.IntOf(L"total");
int count = jResp.IntOf(L"count");
int offset = jResp.IntOf(L"offset");
int limit = jResp.IntOf(L"limit");
int i = 0;
int count_i = jResp.SizeOfArray(L"items");
while (i < count_i) {
jResp.put_I(i);
id = jResp.stringOf(L"items[i].id");
subtotal = jResp.stringOf(L"items[i].subtotal");
total_str = jResp.stringOf(L"items[i].total");
giftCardRedemption = jResp.stringOf(L"items[i].giftCardRedemption");
totalBeforeGiftCardRedemption = jResp.stringOf(L"items[i].totalBeforeGiftCardRedemption");
giftCardDoubleSpending = jResp.BoolOf(L"items[i].giftCardDoubleSpending");
usdTotal = jResp.stringOf(L"items[i].usdTotal");
tax = jResp.stringOf(L"items[i].tax");
paymentMethod = jResp.stringOf(L"items[i].paymentMethod");
paymentStatus = jResp.stringOf(L"items[i].paymentStatus");
fulfillmentStatus = jResp.stringOf(L"items[i].fulfillmentStatus");
vendorOrderNumber = jResp.stringOf(L"items[i].vendorOrderNumber");
orderNumber = jResp.IntOf(L"items[i].orderNumber");
refererUrl = jResp.stringOf(L"items[i].refererUrl");
globalReferer = jResp.stringOf(L"items[i].globalReferer");
createDate = jResp.stringOf(L"items[i].createDate");
updateDate = jResp.stringOf(L"items[i].updateDate");
createTimestamp = jResp.IntOf(L"items[i].createTimestamp");
updateTimestamp = jResp.IntOf(L"items[i].updateTimestamp");
hidden = jResp.BoolOf(L"items[i].hidden");
orderComments = jResp.stringOf(L"items[i].orderComments");
privateAdminNotes = jResp.stringOf(L"items[i].privateAdminNotes");
email = jResp.stringOf(L"items[i].email");
ipAddress = jResp.stringOf(L"items[i].ipAddress");
customerId = jResp.IntOf(L"items[i].customerId");
customerGroupId = jResp.IntOf(L"items[i].customerGroupId");
customerGroup = jResp.stringOf(L"items[i].customerGroup");
customerTaxExempt = jResp.BoolOf(L"items[i].customerTaxExempt");
customerTaxId = jResp.stringOf(L"items[i].customerTaxId");
customerTaxIdValid = jResp.BoolOf(L"items[i].customerTaxIdValid");
reversedTaxApplied = jResp.BoolOf(L"items[i].reversedTaxApplied");
discount = jResp.IntOf(L"items[i].discount");
couponDiscount = jResp.IntOf(L"items[i].couponDiscount");
volumeDiscount = jResp.IntOf(L"items[i].volumeDiscount");
membershipBasedDiscount = jResp.IntOf(L"items[i].membershipBasedDiscount");
totalAndMembershipBasedDiscount = jResp.IntOf(L"items[i].totalAndMembershipBasedDiscount");
discountCouponId = jResp.IntOf(L"items[i].discountCoupon.id");
discountCouponName = jResp.stringOf(L"items[i].discountCoupon.name");
discountCouponCode = jResp.stringOf(L"items[i].discountCoupon.code");
discountCouponDiscountType = jResp.stringOf(L"items[i].discountCoupon.discountType");
discountCouponStatus = jResp.stringOf(L"items[i].discountCoupon.status");
discountCouponDiscount = jResp.IntOf(L"items[i].discountCoupon.discount");
discountCouponLaunchDate = jResp.stringOf(L"items[i].discountCoupon.launchDate");
discountCouponUsesLimit = jResp.stringOf(L"items[i].discountCoupon.usesLimit");
discountCouponApplicationLimit = jResp.stringOf(L"items[i].discountCoupon.applicationLimit");
discountCouponCreationDate = jResp.stringOf(L"items[i].discountCoupon.creationDate");
discountCouponUpdateDate = jResp.stringOf(L"items[i].discountCoupon.updateDate");
discountCouponOrderCount = jResp.IntOf(L"items[i].discountCoupon.orderCount");
refundedAmount = jResp.stringOf(L"items[i].refundedAmount");
billingPersonName = jResp.stringOf(L"items[i].billingPerson.name");
billingPersonCompanyName = jResp.stringOf(L"items[i].billingPerson.companyName");
billingPersonStreet = jResp.stringOf(L"items[i].billingPerson.street");
billingPersonCity = jResp.stringOf(L"items[i].billingPerson.city");
billingPersonCountryCode = jResp.stringOf(L"items[i].billingPerson.countryCode");
billingPersonCountryName = jResp.stringOf(L"items[i].billingPerson.countryName");
billingPersonPostalCode = jResp.stringOf(L"items[i].billingPerson.postalCode");
billingPersonStateOrProvinceCode = jResp.stringOf(L"items[i].billingPerson.stateOrProvinceCode");
billingPersonStateOrProvinceName = jResp.stringOf(L"items[i].billingPerson.stateOrProvinceName");
billingPersonPhone = jResp.stringOf(L"items[i].billingPerson.phone");
shippingPersonName = jResp.stringOf(L"items[i].shippingPerson.name");
shippingPersonCompanyName = jResp.stringOf(L"items[i].shippingPerson.companyName");
shippingPersonStreet = jResp.stringOf(L"items[i].shippingPerson.street");
shippingPersonCity = jResp.stringOf(L"items[i].shippingPerson.city");
shippingPersonCountryCode = jResp.stringOf(L"items[i].shippingPerson.countryCode");
shippingPersonCountryName = jResp.stringOf(L"items[i].shippingPerson.countryName");
shippingPersonPostalCode = jResp.stringOf(L"items[i].shippingPerson.postalCode");
shippingPersonStateOrProvinceCode = jResp.stringOf(L"items[i].shippingPerson.stateOrProvinceCode");
shippingPersonStateOrProvinceName = jResp.stringOf(L"items[i].shippingPerson.stateOrProvinceName");
shippingPersonPhone = jResp.stringOf(L"items[i].shippingPerson.phone");
shippingOptionShippingCarrierName = jResp.stringOf(L"items[i].shippingOption.shippingCarrierName");
shippingOptionShippingMethodName = jResp.stringOf(L"items[i].shippingOption.shippingMethodName");
shippingOptionShippingRate = jResp.stringOf(L"items[i].shippingOption.shippingRate");
shippingOptionEstimatedTransitTime = jResp.stringOf(L"items[i].shippingOption.estimatedTransitTime");
shippingOptionIsPickup = jResp.BoolOf(L"items[i].shippingOption.isPickup");
handlingFeeName = jResp.stringOf(L"items[i].handlingFee.name");
handlingFeeValue = jResp.IntOf(L"items[i].handlingFee.value");
handlingFeeDescription = jResp.stringOf(L"items[i].handlingFee.description");
paymentModule = jResp.stringOf(L"items[i].paymentModule");
additionalInfoGoogle_customer_id = jResp.stringOf(L"items[i].additionalInfo.google_customer_id");
acceptMarketing = jResp.BoolOf(L"items[i].acceptMarketing");
refererId = jResp.stringOf(L"items[i].refererId");
disableAllCustomerNotifications = jResp.BoolOf(L"items[i].disableAllCustomerNotifications");
externalFulfillment = jResp.BoolOf(L"items[i].externalFulfillment");
pricesIncludeTax = jResp.BoolOf(L"items[i].pricesIncludeTax");
j = 0;
count_j = jResp.SizeOfArray(L"items[i].customDiscount");
while (j < count_j) {
jResp.put_J(j);
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].discountInfo");
while (j < count_j) {
jResp.put_J(j);
value = jResp.IntOf(L"items[i].discountInfo[j].value");
v_type = jResp.stringOf(L"items[i].discountInfo[j].type");
base = jResp.stringOf(L"items[i].discountInfo[j].base");
orderTotal = jResp.IntOf(L"items[i].discountInfo[j].orderTotal");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].items");
while (j < count_j) {
jResp.put_J(j);
id_int = jResp.IntOf(L"items[i].items[j].id");
productId = jResp.IntOf(L"items[i].items[j].productId");
categoryId = jResp.IntOf(L"items[i].items[j].categoryId");
price = jResp.IntOf(L"items[i].items[j].price");
productPrice = jResp.IntOf(L"items[i].items[j].productPrice");
sku = jResp.stringOf(L"items[i].items[j].sku");
quantity = jResp.IntOf(L"items[i].items[j].quantity");
shortDescription = jResp.stringOf(L"items[i].items[j].shortDescription");
tax = jResp.stringOf(L"items[i].items[j].tax");
shipping = jResp.IntOf(L"items[i].items[j].shipping");
quantityInStock = jResp.IntOf(L"items[i].items[j].quantityInStock");
name = jResp.stringOf(L"items[i].items[j].name");
isShippingRequired = jResp.BoolOf(L"items[i].items[j].isShippingRequired");
weight = jResp.IntOf(L"items[i].items[j].weight");
trackQuantity = jResp.BoolOf(L"items[i].items[j].trackQuantity");
fixedShippingRateOnly = jResp.BoolOf(L"items[i].items[j].fixedShippingRateOnly");
imageUrl = jResp.stringOf(L"items[i].items[j].imageUrl");
smallThumbnailUrl = jResp.stringOf(L"items[i].items[j].smallThumbnailUrl");
hdThumbnailUrl = jResp.stringOf(L"items[i].items[j].hdThumbnailUrl");
fixedShippingRate = jResp.IntOf(L"items[i].items[j].fixedShippingRate");
digital = jResp.BoolOf(L"items[i].items[j].digital");
couponApplied = jResp.BoolOf(L"items[i].items[j].couponApplied");
dimensionsLength = jResp.IntOf(L"items[i].items[j].dimensions.length");
dimensionsWidth = jResp.IntOf(L"items[i].items[j].dimensions.width");
dimensionsHeight = jResp.IntOf(L"items[i].items[j].dimensions.height");
couponAmount = jResp.stringOf(L"items[i].items[j].couponAmount");
subscriptionId = jResp.IntOf(L"items[i].items[j].subscriptionId");
recurringChargeSettingsRecurringInterval = jResp.stringOf(L"items[i].items[j].recurringChargeSettings.recurringInterval");
recurringChargeSettingsRecurringIntervalCount = jResp.IntOf(L"items[i].items[j].recurringChargeSettings.recurringIntervalCount");
k = 0;
count_k = jResp.SizeOfArray(L"items[i].items[j].selectedOptions");
while (k < count_k) {
jResp.put_K(k);
name = jResp.stringOf(L"items[i].items[j].selectedOptions[k].name");
value_str = jResp.stringOf(L"items[i].items[j].selectedOptions[k].value");
v_type = jResp.stringOf(L"items[i].items[j].selectedOptions[k].type");
jResp.ObjectOf2(L"items[i].items[j].selectedOptions[k]",json1);
i1 = 0;
count_i1 = json1.SizeOfArray(L"valuesArray");
while (i1 < count_i1) {
json1.put_I(i1);
strVal = json1.stringOf(L"valuesArray[i]");
i1 = i1 + 1;
}
jResp.ObjectOf2(L"items[i].items[j].selectedOptions[k]",json1);
i1 = 0;
count_i1 = json1.SizeOfArray(L"selections");
while (i1 < count_i1) {
json1.put_I(i1);
selectionTitle = json1.stringOf(L"selections[i].selectionTitle");
selectionModifier = json1.IntOf(L"selections[i].selectionModifier");
selectionModifierType = json1.stringOf(L"selections[i].selectionModifierType");
i1 = i1 + 1;
}
k = k + 1;
}
k = 0;
count_k = jResp.SizeOfArray(L"items[i].items[j].taxes");
while (k < count_k) {
jResp.put_K(k);
name = jResp.stringOf(L"items[i].items[j].taxes[k].name");
value = jResp.IntOf(L"items[i].items[j].taxes[k].value");
total_str = jResp.stringOf(L"items[i].items[j].taxes[k].total");
taxOnDiscountedSubtotal = jResp.stringOf(L"items[i].items[j].taxes[k].taxOnDiscountedSubtotal");
taxOnShipping = jResp.IntOf(L"items[i].items[j].taxes[k].taxOnShipping");
includeInPrice = jResp.BoolOf(L"items[i].items[j].taxes[k].includeInPrice");
k = k + 1;
}
k = 0;
count_k = jResp.SizeOfArray(L"items[i].items[j].discounts");
while (k < count_k) {
jResp.put_K(k);
discountInfoValue = jResp.IntOf(L"items[i].items[j].discounts[k].discountInfo.value");
discountInfoType = jResp.stringOf(L"items[i].items[j].discounts[k].discountInfo.type");
discountInfoBase = jResp.stringOf(L"items[i].items[j].discounts[k].discountInfo.base");
discountInfoOrderTotal = jResp.IntOf(L"items[i].items[j].discounts[k].discountInfo.orderTotal");
total_str = jResp.stringOf(L"items[i].items[j].discounts[k].total");
k = k + 1;
}
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].refunds");
while (j < count_j) {
jResp.put_J(j);
date = jResp.stringOf(L"items[i].refunds[j].date");
source = jResp.stringOf(L"items[i].refunds[j].source");
reason = jResp.stringOf(L"items[i].refunds[j].reason");
amount = jResp.stringOf(L"items[i].refunds[j].amount");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].predictedPackage");
while (j < count_j) {
jResp.put_J(j);
length = jResp.IntOf(L"items[i].predictedPackage[j].length");
width = jResp.IntOf(L"items[i].predictedPackage[j].width");
height = jResp.IntOf(L"items[i].predictedPackage[j].height");
weight_str = jResp.stringOf(L"items[i].predictedPackage[j].weight");
declaredValue = jResp.stringOf(L"items[i].predictedPackage[j].declaredValue");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].shipments");
while (j < count_j) {
jResp.put_J(j);
id = jResp.stringOf(L"items[i].shipments[j].id");
created = jResp.stringOf(L"items[i].shipments[j].created");
shipToName = jResp.stringOf(L"items[i].shipments[j].shipTo.name");
shipToCompanyName = jResp.stringOf(L"items[i].shipments[j].shipTo.companyName");
shipToStreet = jResp.stringOf(L"items[i].shipments[j].shipTo.street");
shipToCity = jResp.stringOf(L"items[i].shipments[j].shipTo.city");
shipToCountryCode = jResp.stringOf(L"items[i].shipments[j].shipTo.countryCode");
shipToCountryName = jResp.stringOf(L"items[i].shipments[j].shipTo.countryName");
shipToPostalCode = jResp.stringOf(L"items[i].shipments[j].shipTo.postalCode");
shipToStateOrProvinceCode = jResp.stringOf(L"items[i].shipments[j].shipTo.stateOrProvinceCode");
shipToStateOrProvinceName = jResp.stringOf(L"items[i].shipments[j].shipTo.stateOrProvinceName");
shipToPhone = jResp.stringOf(L"items[i].shipments[j].shipTo.phone");
shipFromCompanyName = jResp.stringOf(L"items[i].shipments[j].shipFrom.companyName");
shipFromStreet = jResp.stringOf(L"items[i].shipments[j].shipFrom.street");
shipFromCity = jResp.stringOf(L"items[i].shipments[j].shipFrom.city");
shipFromCountryCode = jResp.stringOf(L"items[i].shipments[j].shipFrom.countryCode");
shipFromCountryName = jResp.stringOf(L"items[i].shipments[j].shipFrom.countryName");
shipFromPostalCode = jResp.stringOf(L"items[i].shipments[j].shipFrom.postalCode");
shipFromStateOrProvinceCode = jResp.stringOf(L"items[i].shipments[j].shipFrom.stateOrProvinceCode");
shipFromStateOrProvinceName = jResp.stringOf(L"items[i].shipments[j].shipFrom.stateOrProvinceName");
shipFromPhone = jResp.stringOf(L"items[i].shipments[j].shipFrom.phone");
parcelWeight = jResp.stringOf(L"items[i].shipments[j].parcel.weight");
parcelWeightUnit = jResp.IntOf(L"items[i].shipments[j].parcel.weightUnit");
parcelWidth = jResp.IntOf(L"items[i].shipments[j].parcel.width");
parcelHeight = jResp.IntOf(L"items[i].shipments[j].parcel.height");
parcelLength = jResp.IntOf(L"items[i].shipments[j].parcel.length");
parcelDimensionUnit = jResp.IntOf(L"items[i].shipments[j].parcel.dimensionUnit");
shippingServiceCarrier = jResp.IntOf(L"items[i].shipments[j].shippingService.carrier");
shippingServiceCarrierName = jResp.IntOf(L"items[i].shipments[j].shippingService.carrierName");
shippingServiceCarrierServiceName = jResp.stringOf(L"items[i].shipments[j].shippingService.carrierServiceName");
shippingServiceCarrierServiceCode = jResp.stringOf(L"items[i].shipments[j].shippingService.carrierServiceCode");
trackingTracking_number = jResp.stringOf(L"items[i].shipments[j].tracking.tracking_number");
trackingTracking_url = jResp.stringOf(L"items[i].shipments[j].tracking.tracking_url");
trackingEstimatedDays = jResp.IntOf(L"items[i].shipments[j].tracking.estimatedDays");
shippingLabelLabel_url = jResp.stringOf(L"items[i].shipments[j].shippingLabel.label_url");
shippingLabelCommercial_invoice_url = jResp.stringOf(L"items[i].shipments[j].shippingLabel.commercial_invoice_url");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].taxesOnShipping");
while (j < count_j) {
jResp.put_J(j);
name = jResp.stringOf(L"items[i].taxesOnShipping[j].name");
value = jResp.IntOf(L"items[i].taxesOnShipping[j].value");
total_str = jResp.stringOf(L"items[i].taxesOnShipping[j].total");
j = j + 1;
}
j = 0;
count_j = jResp.SizeOfArray(L"items[i].orderExtraFields");
while (j < count_j) {
jResp.put_J(j);
id = jResp.stringOf(L"items[i].orderExtraFields[j].id");
value_str = jResp.stringOf(L"items[i].orderExtraFields[j].value");
customerInputType = jResp.stringOf(L"items[i].orderExtraFields[j].customerInputType");
title = jResp.stringOf(L"items[i].orderExtraFields[j].title");
orderDetailsDisplaySection = jResp.stringOf(L"items[i].orderExtraFields[j].orderDetailsDisplaySection");
orderBy = jResp.stringOf(L"items[i].orderExtraFields[j].orderBy");
j = j + 1;
}
i = i + 1;
}
}