Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Tcl) Ecwid - Search OrdersSee more Ecwid ExamplesSearch or filter orders in an Ecwid store. The response provides full details of the found orders. For more information, see https://api-docs.ecwid.com/reference/orders#search-orders
load ./chilkat.dll # This example assumes the Chilkat API to have been previously unlocked. # See Global Unlock Sample for sample code. set http [new_CkHttp] # 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 set jsonToken [new_CkJsonObject] CkJsonObject_LoadFile $jsonToken "qa_data/tokens/ecwid.json" CkHttp_SetRequestHeader $http "Accept" "application/json" set params [new_CkJsonObject] CkJsonObject_UpdateInt $params "limit" 100 CkJsonObject_UpdateString $params "email" "joe@example.com" CkJsonObject_UpdateString $params "token" [CkJsonObject_stringOf $jsonToken "access_token"] # resp is a CkHttpResponse set resp [CkHttp_QuickRequestParams $http "GET" "https://app.ecwid.com/api/v3/storeId/orders" $params] if {[CkHttp_get_LastMethodSuccess $http] == 0} then { puts [CkHttp_lastErrorText $http] delete_CkHttp $http delete_CkJsonObject $jsonToken delete_CkJsonObject $params exit } set sbResponseBody [new_CkStringBuilder] CkHttpResponse_GetBodySb $resp $sbResponseBody set jResp [new_CkJsonObject] CkJsonObject_LoadSb $jResp $sbResponseBody CkJsonObject_put_EmitCompact $jResp 0 puts "Response Body:" puts [CkJsonObject_emit $jResp] set respStatusCode [CkHttpResponse_get_StatusCode $resp] delete_CkHttpResponse $resp puts "Response Status Code = $respStatusCode" if {$respStatusCode != 200} then { puts "Failed." delete_CkHttp $http delete_CkJsonObject $jsonToken delete_CkJsonObject $params delete_CkStringBuilder $sbResponseBody delete_CkJsonObject $jResp exit } # 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 # json1 is a CkJsonObject set total [CkJsonObject_IntOf $jResp "total"] set count [CkJsonObject_IntOf $jResp "count"] set offset [CkJsonObject_IntOf $jResp "offset"] set limit [CkJsonObject_IntOf $jResp "limit"] set i 0 set count_i [CkJsonObject_SizeOfArray $jResp "items"] while {$i < $count_i} { CkJsonObject_put_I $jResp $i set id [CkJsonObject_stringOf $jResp "items[i].id"] set subtotal [CkJsonObject_stringOf $jResp "items[i].subtotal"] set total_str [CkJsonObject_stringOf $jResp "items[i].total"] set giftCardRedemption [CkJsonObject_stringOf $jResp "items[i].giftCardRedemption"] set totalBeforeGiftCardRedemption [CkJsonObject_stringOf $jResp "items[i].totalBeforeGiftCardRedemption"] set giftCardDoubleSpending [CkJsonObject_BoolOf $jResp "items[i].giftCardDoubleSpending"] set usdTotal [CkJsonObject_stringOf $jResp "items[i].usdTotal"] set tax [CkJsonObject_stringOf $jResp "items[i].tax"] set paymentMethod [CkJsonObject_stringOf $jResp "items[i].paymentMethod"] set paymentStatus [CkJsonObject_stringOf $jResp "items[i].paymentStatus"] set fulfillmentStatus [CkJsonObject_stringOf $jResp "items[i].fulfillmentStatus"] set vendorOrderNumber [CkJsonObject_stringOf $jResp "items[i].vendorOrderNumber"] set orderNumber [CkJsonObject_IntOf $jResp "items[i].orderNumber"] set refererUrl [CkJsonObject_stringOf $jResp "items[i].refererUrl"] set globalReferer [CkJsonObject_stringOf $jResp "items[i].globalReferer"] set createDate [CkJsonObject_stringOf $jResp "items[i].createDate"] set updateDate [CkJsonObject_stringOf $jResp "items[i].updateDate"] set createTimestamp [CkJsonObject_IntOf $jResp "items[i].createTimestamp"] set updateTimestamp [CkJsonObject_IntOf $jResp "items[i].updateTimestamp"] set hidden [CkJsonObject_BoolOf $jResp "items[i].hidden"] set orderComments [CkJsonObject_stringOf $jResp "items[i].orderComments"] set privateAdminNotes [CkJsonObject_stringOf $jResp "items[i].privateAdminNotes"] set email [CkJsonObject_stringOf $jResp "items[i].email"] set ipAddress [CkJsonObject_stringOf $jResp "items[i].ipAddress"] set customerId [CkJsonObject_IntOf $jResp "items[i].customerId"] set customerGroupId [CkJsonObject_IntOf $jResp "items[i].customerGroupId"] set customerGroup [CkJsonObject_stringOf $jResp "items[i].customerGroup"] set customerTaxExempt [CkJsonObject_BoolOf $jResp "items[i].customerTaxExempt"] set customerTaxId [CkJsonObject_stringOf $jResp "items[i].customerTaxId"] set customerTaxIdValid [CkJsonObject_BoolOf $jResp "items[i].customerTaxIdValid"] set reversedTaxApplied [CkJsonObject_BoolOf $jResp "items[i].reversedTaxApplied"] set discount [CkJsonObject_IntOf $jResp "items[i].discount"] set couponDiscount [CkJsonObject_IntOf $jResp "items[i].couponDiscount"] set volumeDiscount [CkJsonObject_IntOf $jResp "items[i].volumeDiscount"] set membershipBasedDiscount [CkJsonObject_IntOf $jResp "items[i].membershipBasedDiscount"] set totalAndMembershipBasedDiscount [CkJsonObject_IntOf $jResp "items[i].totalAndMembershipBasedDiscount"] set discountCouponId [CkJsonObject_IntOf $jResp "items[i].discountCoupon.id"] set discountCouponName [CkJsonObject_stringOf $jResp "items[i].discountCoupon.name"] set discountCouponCode [CkJsonObject_stringOf $jResp "items[i].discountCoupon.code"] set discountCouponDiscountType [CkJsonObject_stringOf $jResp "items[i].discountCoupon.discountType"] set discountCouponStatus [CkJsonObject_stringOf $jResp "items[i].discountCoupon.status"] set discountCouponDiscount [CkJsonObject_IntOf $jResp "items[i].discountCoupon.discount"] set discountCouponLaunchDate [CkJsonObject_stringOf $jResp "items[i].discountCoupon.launchDate"] set discountCouponUsesLimit [CkJsonObject_stringOf $jResp "items[i].discountCoupon.usesLimit"] set discountCouponApplicationLimit [CkJsonObject_stringOf $jResp "items[i].discountCoupon.applicationLimit"] set discountCouponCreationDate [CkJsonObject_stringOf $jResp "items[i].discountCoupon.creationDate"] set discountCouponUpdateDate [CkJsonObject_stringOf $jResp "items[i].discountCoupon.updateDate"] set discountCouponOrderCount [CkJsonObject_IntOf $jResp "items[i].discountCoupon.orderCount"] set refundedAmount [CkJsonObject_stringOf $jResp "items[i].refundedAmount"] set billingPersonName [CkJsonObject_stringOf $jResp "items[i].billingPerson.name"] set billingPersonCompanyName [CkJsonObject_stringOf $jResp "items[i].billingPerson.companyName"] set billingPersonStreet [CkJsonObject_stringOf $jResp "items[i].billingPerson.street"] set billingPersonCity [CkJsonObject_stringOf $jResp "items[i].billingPerson.city"] set billingPersonCountryCode [CkJsonObject_stringOf $jResp "items[i].billingPerson.countryCode"] set billingPersonCountryName [CkJsonObject_stringOf $jResp "items[i].billingPerson.countryName"] set billingPersonPostalCode [CkJsonObject_stringOf $jResp "items[i].billingPerson.postalCode"] set billingPersonStateOrProvinceCode [CkJsonObject_stringOf $jResp "items[i].billingPerson.stateOrProvinceCode"] set billingPersonStateOrProvinceName [CkJsonObject_stringOf $jResp "items[i].billingPerson.stateOrProvinceName"] set billingPersonPhone [CkJsonObject_stringOf $jResp "items[i].billingPerson.phone"] set shippingPersonName [CkJsonObject_stringOf $jResp "items[i].shippingPerson.name"] set shippingPersonCompanyName [CkJsonObject_stringOf $jResp "items[i].shippingPerson.companyName"] set shippingPersonStreet [CkJsonObject_stringOf $jResp "items[i].shippingPerson.street"] set shippingPersonCity [CkJsonObject_stringOf $jResp "items[i].shippingPerson.city"] set shippingPersonCountryCode [CkJsonObject_stringOf $jResp "items[i].shippingPerson.countryCode"] set shippingPersonCountryName [CkJsonObject_stringOf $jResp "items[i].shippingPerson.countryName"] set shippingPersonPostalCode [CkJsonObject_stringOf $jResp "items[i].shippingPerson.postalCode"] set shippingPersonStateOrProvinceCode [CkJsonObject_stringOf $jResp "items[i].shippingPerson.stateOrProvinceCode"] set shippingPersonStateOrProvinceName [CkJsonObject_stringOf $jResp "items[i].shippingPerson.stateOrProvinceName"] set shippingPersonPhone [CkJsonObject_stringOf $jResp "items[i].shippingPerson.phone"] set shippingOptionShippingCarrierName [CkJsonObject_stringOf $jResp "items[i].shippingOption.shippingCarrierName"] set shippingOptionShippingMethodName [CkJsonObject_stringOf $jResp "items[i].shippingOption.shippingMethodName"] set shippingOptionShippingRate [CkJsonObject_stringOf $jResp "items[i].shippingOption.shippingRate"] set shippingOptionEstimatedTransitTime [CkJsonObject_stringOf $jResp "items[i].shippingOption.estimatedTransitTime"] set shippingOptionIsPickup [CkJsonObject_BoolOf $jResp "items[i].shippingOption.isPickup"] set handlingFeeName [CkJsonObject_stringOf $jResp "items[i].handlingFee.name"] set handlingFeeValue [CkJsonObject_IntOf $jResp "items[i].handlingFee.value"] set handlingFeeDescription [CkJsonObject_stringOf $jResp "items[i].handlingFee.description"] set paymentModule [CkJsonObject_stringOf $jResp "items[i].paymentModule"] set additionalInfoGoogle_customer_id [CkJsonObject_stringOf $jResp "items[i].additionalInfo.google_customer_id"] set acceptMarketing [CkJsonObject_BoolOf $jResp "items[i].acceptMarketing"] set refererId [CkJsonObject_stringOf $jResp "items[i].refererId"] set disableAllCustomerNotifications [CkJsonObject_BoolOf $jResp "items[i].disableAllCustomerNotifications"] set externalFulfillment [CkJsonObject_BoolOf $jResp "items[i].externalFulfillment"] set pricesIncludeTax [CkJsonObject_BoolOf $jResp "items[i].pricesIncludeTax"] set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].customDiscount"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].discountInfo"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set value [CkJsonObject_IntOf $jResp "items[i].discountInfo[j].value"] set v_type [CkJsonObject_stringOf $jResp "items[i].discountInfo[j].type"] set base [CkJsonObject_stringOf $jResp "items[i].discountInfo[j].base"] set orderTotal [CkJsonObject_IntOf $jResp "items[i].discountInfo[j].orderTotal"] set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].items"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set id_int [CkJsonObject_IntOf $jResp "items[i].items[j].id"] set productId [CkJsonObject_IntOf $jResp "items[i].items[j].productId"] set categoryId [CkJsonObject_IntOf $jResp "items[i].items[j].categoryId"] set price [CkJsonObject_IntOf $jResp "items[i].items[j].price"] set productPrice [CkJsonObject_IntOf $jResp "items[i].items[j].productPrice"] set sku [CkJsonObject_stringOf $jResp "items[i].items[j].sku"] set quantity [CkJsonObject_IntOf $jResp "items[i].items[j].quantity"] set shortDescription [CkJsonObject_stringOf $jResp "items[i].items[j].shortDescription"] set tax [CkJsonObject_stringOf $jResp "items[i].items[j].tax"] set shipping [CkJsonObject_IntOf $jResp "items[i].items[j].shipping"] set quantityInStock [CkJsonObject_IntOf $jResp "items[i].items[j].quantityInStock"] set name [CkJsonObject_stringOf $jResp "items[i].items[j].name"] set isShippingRequired [CkJsonObject_BoolOf $jResp "items[i].items[j].isShippingRequired"] set weight [CkJsonObject_IntOf $jResp "items[i].items[j].weight"] set trackQuantity [CkJsonObject_BoolOf $jResp "items[i].items[j].trackQuantity"] set fixedShippingRateOnly [CkJsonObject_BoolOf $jResp "items[i].items[j].fixedShippingRateOnly"] set imageUrl [CkJsonObject_stringOf $jResp "items[i].items[j].imageUrl"] set smallThumbnailUrl [CkJsonObject_stringOf $jResp "items[i].items[j].smallThumbnailUrl"] set hdThumbnailUrl [CkJsonObject_stringOf $jResp "items[i].items[j].hdThumbnailUrl"] set fixedShippingRate [CkJsonObject_IntOf $jResp "items[i].items[j].fixedShippingRate"] set digital [CkJsonObject_BoolOf $jResp "items[i].items[j].digital"] set couponApplied [CkJsonObject_BoolOf $jResp "items[i].items[j].couponApplied"] set dimensionsLength [CkJsonObject_IntOf $jResp "items[i].items[j].dimensions.length"] set dimensionsWidth [CkJsonObject_IntOf $jResp "items[i].items[j].dimensions.width"] set dimensionsHeight [CkJsonObject_IntOf $jResp "items[i].items[j].dimensions.height"] set couponAmount [CkJsonObject_stringOf $jResp "items[i].items[j].couponAmount"] set subscriptionId [CkJsonObject_IntOf $jResp "items[i].items[j].subscriptionId"] set recurringChargeSettingsRecurringInterval [CkJsonObject_stringOf $jResp "items[i].items[j].recurringChargeSettings.recurringInterval"] set recurringChargeSettingsRecurringIntervalCount [CkJsonObject_IntOf $jResp "items[i].items[j].recurringChargeSettings.recurringIntervalCount"] set k 0 set count_k [CkJsonObject_SizeOfArray $jResp "items[i].items[j].selectedOptions"] while {$k < $count_k} { CkJsonObject_put_K $jResp $k set name [CkJsonObject_stringOf $jResp "items[i].items[j].selectedOptions[k].name"] set value_str [CkJsonObject_stringOf $jResp "items[i].items[j].selectedOptions[k].value"] set v_type [CkJsonObject_stringOf $jResp "items[i].items[j].selectedOptions[k].type"] set json1 [CkJsonObject_ObjectOf $jResp "items[i].items[j].selectedOptions[k]"] set i1 0 set count_i1 [CkJsonObject_SizeOfArray $json1 "valuesArray"] while {$i1 < $count_i1} { CkJsonObject_put_I $json1 $i1 set strVal [CkJsonObject_stringOf $json1 "valuesArray[i]"] set i1 [expr $i1 + 1] } delete_CkJsonObject $json1 set json1 [CkJsonObject_ObjectOf $jResp "items[i].items[j].selectedOptions[k]"] set i1 0 set count_i1 [CkJsonObject_SizeOfArray $json1 "selections"] while {$i1 < $count_i1} { CkJsonObject_put_I $json1 $i1 set selectionTitle [CkJsonObject_stringOf $json1 "selections[i].selectionTitle"] set selectionModifier [CkJsonObject_IntOf $json1 "selections[i].selectionModifier"] set selectionModifierType [CkJsonObject_stringOf $json1 "selections[i].selectionModifierType"] set i1 [expr $i1 + 1] } delete_CkJsonObject $json1 set k [expr $k + 1] } set k 0 set count_k [CkJsonObject_SizeOfArray $jResp "items[i].items[j].taxes"] while {$k < $count_k} { CkJsonObject_put_K $jResp $k set name [CkJsonObject_stringOf $jResp "items[i].items[j].taxes[k].name"] set value [CkJsonObject_IntOf $jResp "items[i].items[j].taxes[k].value"] set total_str [CkJsonObject_stringOf $jResp "items[i].items[j].taxes[k].total"] set taxOnDiscountedSubtotal [CkJsonObject_stringOf $jResp "items[i].items[j].taxes[k].taxOnDiscountedSubtotal"] set taxOnShipping [CkJsonObject_IntOf $jResp "items[i].items[j].taxes[k].taxOnShipping"] set includeInPrice [CkJsonObject_BoolOf $jResp "items[i].items[j].taxes[k].includeInPrice"] set k [expr $k + 1] } set k 0 set count_k [CkJsonObject_SizeOfArray $jResp "items[i].items[j].discounts"] while {$k < $count_k} { CkJsonObject_put_K $jResp $k set discountInfoValue [CkJsonObject_IntOf $jResp "items[i].items[j].discounts[k].discountInfo.value"] set discountInfoType [CkJsonObject_stringOf $jResp "items[i].items[j].discounts[k].discountInfo.type"] set discountInfoBase [CkJsonObject_stringOf $jResp "items[i].items[j].discounts[k].discountInfo.base"] set discountInfoOrderTotal [CkJsonObject_IntOf $jResp "items[i].items[j].discounts[k].discountInfo.orderTotal"] set total_str [CkJsonObject_stringOf $jResp "items[i].items[j].discounts[k].total"] set k [expr $k + 1] } set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].refunds"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set date [CkJsonObject_stringOf $jResp "items[i].refunds[j].date"] set source [CkJsonObject_stringOf $jResp "items[i].refunds[j].source"] set reason [CkJsonObject_stringOf $jResp "items[i].refunds[j].reason"] set amount [CkJsonObject_stringOf $jResp "items[i].refunds[j].amount"] set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].predictedPackage"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set length [CkJsonObject_IntOf $jResp "items[i].predictedPackage[j].length"] set width [CkJsonObject_IntOf $jResp "items[i].predictedPackage[j].width"] set height [CkJsonObject_IntOf $jResp "items[i].predictedPackage[j].height"] set weight_str [CkJsonObject_stringOf $jResp "items[i].predictedPackage[j].weight"] set declaredValue [CkJsonObject_stringOf $jResp "items[i].predictedPackage[j].declaredValue"] set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].shipments"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set id [CkJsonObject_stringOf $jResp "items[i].shipments[j].id"] set created [CkJsonObject_stringOf $jResp "items[i].shipments[j].created"] set shipToName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.name"] set shipToCompanyName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.companyName"] set shipToStreet [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.street"] set shipToCity [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.city"] set shipToCountryCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.countryCode"] set shipToCountryName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.countryName"] set shipToPostalCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.postalCode"] set shipToStateOrProvinceCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.stateOrProvinceCode"] set shipToStateOrProvinceName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.stateOrProvinceName"] set shipToPhone [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipTo.phone"] set shipFromCompanyName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.companyName"] set shipFromStreet [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.street"] set shipFromCity [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.city"] set shipFromCountryCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.countryCode"] set shipFromCountryName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.countryName"] set shipFromPostalCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.postalCode"] set shipFromStateOrProvinceCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.stateOrProvinceCode"] set shipFromStateOrProvinceName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.stateOrProvinceName"] set shipFromPhone [CkJsonObject_stringOf $jResp "items[i].shipments[j].shipFrom.phone"] set parcelWeight [CkJsonObject_stringOf $jResp "items[i].shipments[j].parcel.weight"] set parcelWeightUnit [CkJsonObject_IntOf $jResp "items[i].shipments[j].parcel.weightUnit"] set parcelWidth [CkJsonObject_IntOf $jResp "items[i].shipments[j].parcel.width"] set parcelHeight [CkJsonObject_IntOf $jResp "items[i].shipments[j].parcel.height"] set parcelLength [CkJsonObject_IntOf $jResp "items[i].shipments[j].parcel.length"] set parcelDimensionUnit [CkJsonObject_IntOf $jResp "items[i].shipments[j].parcel.dimensionUnit"] set shippingServiceCarrier [CkJsonObject_IntOf $jResp "items[i].shipments[j].shippingService.carrier"] set shippingServiceCarrierName [CkJsonObject_IntOf $jResp "items[i].shipments[j].shippingService.carrierName"] set shippingServiceCarrierServiceName [CkJsonObject_stringOf $jResp "items[i].shipments[j].shippingService.carrierServiceName"] set shippingServiceCarrierServiceCode [CkJsonObject_stringOf $jResp "items[i].shipments[j].shippingService.carrierServiceCode"] set trackingTracking_number [CkJsonObject_stringOf $jResp "items[i].shipments[j].tracking.tracking_number"] set trackingTracking_url [CkJsonObject_stringOf $jResp "items[i].shipments[j].tracking.tracking_url"] set trackingEstimatedDays [CkJsonObject_IntOf $jResp "items[i].shipments[j].tracking.estimatedDays"] set shippingLabelLabel_url [CkJsonObject_stringOf $jResp "items[i].shipments[j].shippingLabel.label_url"] set shippingLabelCommercial_invoice_url [CkJsonObject_stringOf $jResp "items[i].shipments[j].shippingLabel.commercial_invoice_url"] set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].taxesOnShipping"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set name [CkJsonObject_stringOf $jResp "items[i].taxesOnShipping[j].name"] set value [CkJsonObject_IntOf $jResp "items[i].taxesOnShipping[j].value"] set total_str [CkJsonObject_stringOf $jResp "items[i].taxesOnShipping[j].total"] set j [expr $j + 1] } set j 0 set count_j [CkJsonObject_SizeOfArray $jResp "items[i].orderExtraFields"] while {$j < $count_j} { CkJsonObject_put_J $jResp $j set id [CkJsonObject_stringOf $jResp "items[i].orderExtraFields[j].id"] set value_str [CkJsonObject_stringOf $jResp "items[i].orderExtraFields[j].value"] set customerInputType [CkJsonObject_stringOf $jResp "items[i].orderExtraFields[j].customerInputType"] set title [CkJsonObject_stringOf $jResp "items[i].orderExtraFields[j].title"] set orderDetailsDisplaySection [CkJsonObject_stringOf $jResp "items[i].orderExtraFields[j].orderDetailsDisplaySection"] set orderBy [CkJsonObject_stringOf $jResp "items[i].orderExtraFields[j].orderBy"] set j [expr $j + 1] } set i [expr $i + 1] } delete_CkHttp $http delete_CkJsonObject $jsonToken delete_CkJsonObject $params delete_CkStringBuilder $sbResponseBody delete_CkJsonObject $jResp |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.