Can't see Product Options in JSON response from Order API

Hi guys,

I am very confused to why when I call

GET [https://app.snipcart.com/api/orders/{token}]

I can’t see the custom options for the product options.

response.items.customFields << I would expect to see an array here of the options the the customer selected for the product here but instead the API just returns “[array]”

What am I missing/doing wrong?

This is the JSON response, how can I read the product options?

{“adjustedAmount”: 14.1, “baseTotal”: 14.1, “billingAddress”: {“address1”: “40c Southwold Road”, “address2”: " ", “city”: “LONDON”, “company”: null, “country”: “GB”, “firstName”: null, “fullAddress”: “40c Southwold Road”, “fullName”: “Ayo Adesina”, “hasMinimalRequiredInfo”: true, “name”: “Ayo Adesina”, “phone”: “”, “postalCode”: “E5 9PS”, “province”: “Hackney”, “validationErrors”: {}, “vatNumber”: null}, “billingAddressAddress1”: “40c Southwold Road”, “billingAddressAddress2”: " ", “billingAddressCity”: “LONDON”, “billingAddressCompanyName”: null, “billingAddressComplete”: true, “billingAddressCountry”: “GB”, “billingAddressFirstName”: null, “billingAddressName”: “Ayo Adesina”, “billingAddressPhone”: “”, “billingAddressPostalCode”: “E5 9PS”, “billingAddressProvince”: “Hackney”, “cardHolderName”: null, “cardType”: “Visa”, “completionDate”: “2021-12-09T23:25:59Z”, “creationDate”: “2021-12-09T23:23:02Z”, “creditCardLast4Digits”: “4242”, “currency”: “gbp”, “customFields”: [{“displayValue”: “07957664772”, “name”: “contactTelephoneNumber”, “operation”: null, “options”: null, “optionsArray”: null, “required”: false, “type”: “textbox”, “value”: “07957664772”}, {“name”: “shipping-rates-list”, “operation”: null, “options”: null, “optionsArray”: null, “required”: false, “type”: “textbox”, “value”: null}], “customFieldsJson”: “[{“Name”:“contactTelephoneNumber”,“DisplayValue”:“07957664772”,“Type”:“textbox”,“Options”:null,“Required”:false,“Value”:“07957664772”,“Operation”:null,“OptionsArray”:null},{“Name”:“shipping-rates-list”,“Type”:“textbox”,“Options”:null,“Required”:false,“Value”:null,“Operation”:null,“OptionsArray”:null}]”, “discounts”: [], “email”: “ayo.adesina@gmail.com”, “finalGrandTotal”: 14.1, “grandTotal”: 14.1, “hasSubscriptions”: false, “invoiceNumber”: “ROCK-1523”, “ipAddress”: “86.19.116.165”, “isRecurringOrder”: false, “isRecurringV3Order”: false, “items”: [{“addedOn”: “2021-12-09T23:23:02Z”, “alternatePrices”: [Object], “cancellationAction”: “None”, “categories”: [Array], “customFields”: [Array], “description”: “Also known as Asaro, this dish is made from Puna Yam which is boiled till it’s tender and it’s cooked in a blend of Peppers, Tomatoes, and Onions”, “duplicatable”: false, “fileGuid”: null, “hasDimensions”: false, “hasTaxesIncluded”: false, “height”: null, “id”: “1285”, “image”: “/media/q14jydhd/yam-meat.png?mode=pad&width=149&height=110”, “initialData”: “”, “length”: null, “maxQuantity”: null, “metadata”: null, “minQuantity”: null, “modificationDate”: “2021-12-09T23:23:02Z”, “name”: “Large Meat Yam Pottage Meal”, “originalPrice”: null, “parcels”: null, “pausingAction”: “None”, “paymentSchedule”: [Object], “price”: 9, “quantity”: 1, “shippable”: true, “stackable”: false, “taxable”: true, “taxes”: [Array], “token”: “91528d4d-cac9-40ed-98fd-e28fccc7d4de”, “totalPrice”: 9, “totalPriceWithoutDiscountsAndTaxes”: 9, “totalPriceWithoutTaxes”: 9, “totalWeight”: 0, “uniqueId”: “4bfcb19b-d864-414e-967c-17f86aa7fe2b”, “unitPrice”: 9, “url”: “/menu/pottage/”, “weight”: null, “width”: null}], “itemsCount”: 1, “itemsTotal”: 9, “lang”: “en”, “metadata”: null, “mode”: “Test”, “modificationDate”: “2021-12-09T23:28:05.803Z”, “notes”: null, “numberOfItemsInOrder”: 1, “parentInvoiceNumber”: null, “parentToken”: null, “paymentDetails”: {“display”: null, “iconUrl”: null, “instructions”: null}, “paymentGatewayUsed”: “SnipcartPaymentService”, “paymentMethod”: “CreditCard”, “paymentStatus”: “Paid”, “paymentTransactionId”: “ch_3K4vzYBvdzf0idBb1fNbJDnG”, “plans”: [], “recoveredFromCampaignId”: null, “refunds”: [], “refundsAmount”: 0, “savedAmount”: 0, “shippingAddress”: {“address1”: “40c Southwold Road”, “address2”: " ", “city”: “LONDON”, “company”: null, “country”: “GB”, “firstName”: null, “fullAddress”: “40c Southwold Road”, “fullName”: “Ayo Adesina”, “hasMinimalRequiredInfo”: true, “name”: “Ayo Adesina”, “phone”: “”, “postalCode”: “E5 9PS”, “province”: “Hackney”, “validationErrors”: {}, “vatNumber”: null}, “shippingAddressAddress1”: “40c Southwold Road”, “shippingAddressAddress2”: " ", “shippingAddressCity”: “LONDON”, “shippingAddressCompanyName”: null, “shippingAddressComplete”: true, “shippingAddressCountry”: “GB”, “shippingAddressFirstName”: null, “shippingAddressName”: “Ayo Adesina”, “shippingAddressPhone”: “”, “shippingAddressPostalCode”: “E5 9PS”, “shippingAddressProvince”: “Hackney”, “shippingAddressSameAsBilling”: false, “shippingEnabled”: true, “shippingFees”: 5.1, “shippingLocalizedMethod”: null, “shippingMethod”: “Delivery on Christmas Eve (Before 6 PM)”, “shippingMethodComplete”: true, “shippingProvider”: null, “shippingRateUserDefinedId”: “9”, “status”: “Shipped”, “subscriptionId”: null, “subtotal”: 9, “summary”: {“adjustedTotal”: 14.1, “discountInducedTaxesVariation”: 0, “payableNow”: 14.1, “paymentMethod”: “CreditCard”, “shipping”: null, “subtotal”: 9, “taxableTotal”: 9, “taxes”: [], “total”: 14.1}, “taxProvider”: “Default”, “taxableTotal”: 9, “taxes”: [], “taxesTotal”: 0, “token”: “91528d4d-cac9-40ed-98fd-e28fccc7d4de”, “total”: 14.1, “totalNumberOfItems”: 0, “totalPriceWithoutDiscountsAndTaxes”: 9, “totalRebateRate”: 0, “totalWeight”: 0, “trackingNumber”: null, “trackingUrl”: “Delivered! | #100241636”, “user”: {“billingAddress”: {“address1”: “22 SomeRoad”, “address2”: “”, “city”: “London”, “company”: null, “country”: “GB”, “firstName”: null, “fullAddress”: “22 SomeRoad”, “fullName”: “Test”, “hasMinimalRequiredInfo”: true, “name”: “Test”, “phone”: null, “postalCode”: “e59ps”, “province”: “”, “validationErrors”: [Object], “vatNumber”: null}, “billingAddressAddress1”: “22 SomeRoad”, “billingAddressAddress2”: “”, “billingAddressCity”: “London”, “billingAddressCompanyName”: null, “billingAddressCountry”: “GB”, “billingAddressFirstName”: null, “billingAddressName”: “Test”, “billingAddressPhone”: null, “billingAddressPostalCode”: “e59ps”, “billingAddressProvince”: “”, “creationDate”: “2020-03-18T10:56:50.86Z”, “email”: “ayo.adesina@gmail.com”, “gravatarUrl”: “https://www.gravatar.com/avatar/fa8b36e479aee6e3aad64ee0c0fbe538?s=70&d=https%3A%2F%2Fcdn.snipcart.com%2Fassets%2Fimages%2Favatar.jpg”, “id”: “a002a41a-29c4-498e-93d5-bb3de2259276”, “mode”: “Test”, “sessionToken”: null, “shippingAddress”: {“address1”: “22 SomeRoad”, “address2”: “”, “city”: “London”, “company”: null, “country”: “GB”, “firstName”: null, “fullAddress”: “22 SomeRoad”, “fullName”: “Test”, “hasMinimalRequiredInfo”: true, “name”: “Test”, “phone”: null, “postalCode”: “e59ps”, “province”: “”, “validationErrors”: [Object], “vatNumber”: null}, “shippingAddressAddress1”: “22 SomeRoad”, “shippingAddressAddress2”: “”, “shippingAddressCity”: “London”, “shippingAddressCompanyName”: null, “shippingAddressCountry”: “GB”, “shippingAddressFirstName”: null, “shippingAddressName”: “Test”, “shippingAddressPhone”: null, “shippingAddressPostalCode”: “e59ps”, “shippingAddressProvince”: “”, “shippingAddressSameAsBilling”: true, “statistics”: {“ordersAmount”: null, “ordersCount”: 0, “subscriptionsCount”: 0}, “status”: “Confirmed”}, “userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36”, “userId”: “a002a41a-29c4-498e-93d5-bb3de2259276”, “willBePaidLater”: false}

Thanks,
Ayo