JSON API report not displaying giftcard payment

Highlighted
New Member
2 0 0

https://saintsofiauk.myshopify.com/admin/orders/2062304313447.json 

 

A sale has been processed for £120 with payment consisting of £118 gift card and £2 credit card. The attached JSON API report shows giftcard payment as false.

 

I don't plan on managing gift cards from a separate API I just need the information to come through on the current API.

 

Any ideas on how to set this up correctly?

 

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
587 72 131

Hey @henryyoung68,

 

Where are you seeing gift card payment is false on that order? 

 

The order JSON will show a gift_card field with each line_item, which indicates whether the item purchased is a gift card. If the items being purchased are not gift cards, this field will show gift_card: false.

 

If an order was paid by a gift card, you should see gift_card listed in the payment_gateways field.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

1 Like
Highlighted
New Member
2 0 0

Hi JB,

 

Thanks for your reply. API code below. I can see gift card under Payment Gateways though further down the API script each item shows as gift card = false.

 

{"order":{"id":2062304313447,"email":"debbie.xav@virginmedia.com","closed_at":"2020-01-30T09:52:13+00:00","created_at":"2020-01-29T15:54:58+00:00","updated_at":"2020-01-30T09:52:13+00:00","number":41197,"note":null,"token":"1daff04a4d57c8aca3a25248a74274f4","gateway":"shopify_payments","test":false,"total_price":"120.00","subtotal_price":"120.00","total_weight":1020,"total_tax":"20.00","taxes_included":true,"currency":"GBP","financial_status":"paid","confirmed":true,"total_discounts":"0.00","total_line_items_price":"120.00","cart_token":"1fb790b9fe481c449de153bb4460d1d6","buyer_accepts_marketing":true,"name":"52UKS42197","referring_site":"https:\/\/saintandsofia.com\/pages\/choose-country","landing_site":"\/","cancelled_at":null,"cancel_reason":null,"total_price_usd":"156.28","checkout_token":"49cebbb4304dd34a5df3ee0e0116e816","reference":null,"user_id":null,"location_id":null,"source_identifier":null,"source_url":null,"processed_at":"2020-01-29T15:54:57+00:00","device_id":null,"phone":null,"customer_locale":"en","app_id":580111,"browser_ip":"86.1.83.77","landing_site_ref":null,"order_number":42197,"discount_applications":[],"discount_codes":[],"note_attributes":[],"payment_gateway_names":["gift_card","shopify_payments"],"processing_method":"direct","checkout_id":12579776757863,"source_name":"web","fulfillment_status":"fulfilled","tax_lines":[{"price":"20.00","rate":0.2,"title":"VAT","price_set":{"shop_money":{"amount":"20.00","currency_code":"GBP"},"presentment_money":{"amount":"20.00","currency_code":"GBP"}}}],"tags":"","contact_email":"debbie.xav@virginmedia.com","order_status_url":"https:\/\/uk.saintandsofia.com\/27226898535\/orders\/1daff04a4d57c8aca3a25248a74274f4\/authenticate?key=d515db4c6bd810eb87eb20ff5c86baa1","presentment_currency":"GBP","total_line_items_price_set":{"shop_money":{"amount":"120.00","currency_code":"GBP"},"presentment_money":{"amount":"120.00","currency_code":"GBP"}},"total_discounts_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"total_shipping_price_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"subtotal_price_set":{"shop_money":{"amount":"120.00","currency_code":"GBP"},"presentment_money":{"amount":"120.00","currency_code":"GBP"}},"total_price_set":{"shop_money":{"amount":"120.00","currency_code":"GBP"},"presentment_money":{"amount":"120.00","currency_code":"GBP"}},"total_tax_set":{"shop_money":{"amount":"20.00","currency_code":"GBP"},"presentment_money":{"amount":"20.00","currency_code":"GBP"}},"line_items":[{"id":4510048125031,"variant_id":31606596272231,"title":"Camden Wide Leg Pant - Burgundy","quantity":1,"sku":"1002371","variant_title":"UK 18","vendor":"Saint and Sofia","fulfillment_service":"manual","product_id":4425829875815,"requires_shipping":true,"taxable":true,"gift_card":false,"name":"Camden Wide Leg Pant - Burgundy - UK 18","variant_inventory_management":"shopify","properties":[],"product_exists":true,"fulfillable_quantity":0,"grams":510,"price":"60.00","total_discount":"0.00","fulfillment_status":"fulfilled","pre_tax_price":"50.00","price_set":{"shop_money":{"amount":"60.00","currency_code":"GBP"},"presentment_money":{"amount":"60.00","currency_code":"GBP"}},"pre_tax_price_set":{"shop_money":{"amount":"50.00","currency_code":"GBP"},"presentment_money":{"amount":"50.00","currency_code":"GBP"}},"total_discount_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"discount_allocations":[],"tax_lines":[{"title":"VAT","price":"10.00","rate":0.2,"price_set":{"shop_money":{"amount":"10.00","currency_code":"GBP"},"presentment_money":{"amount":"10.00","currency_code":"GBP"}}}],"origin_location":{"id":1657275023463,"country_code":"GB","province_code":"","name":"Saint + Sofia UK","address1":"3 \u0026 3A Blackfriars Road","address2":"","city":"Bristol","zip":"BS48 4DJ"}},{"id":4510048157799,"variant_id":31241428926567,"title":"Camden Wide Leg Pant - Navy","quantity":1,"sku":"1001414","variant_title":"UK 18","vendor":"Saint and Sofia","fulfillment_service":"manual","product_id":4347069988967,"requires_shipping":true,"taxable":true,"gift_card":false,"name":"Camden Wide Leg Pant - Navy - UK 18","variant_inventory_management":"shopify","properties":[],"product_exists":true,"fulfillable_quantity":0,"grams":510,"price":"60.00","total_discount":"0.00","fulfillment_status":"fulfilled","pre_tax_price":"50.00","price_set":{"shop_money":{"amount":"60.00","currency_code":"GBP"},"presentment_money":{"amount":"60.00","currency_code":"GBP"}},"pre_tax_price_set":{"shop_money":{"amount":"50.00","currency_code":"GBP"},"presentment_money":{"amount":"50.00","currency_code":"GBP"}},"total_discount_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"discount_allocations":[],"tax_lines":[{"title":"VAT","price":"10.00","rate":0.2,"price_set":{"shop_money":{"amount":"10.00","currency_code":"GBP"},"presentment_money":{"amount":"10.00","currency_code":"GBP"}}}],"origin_location":{"id":1657275023463,"country_code":"GB","province_code":"","name":"Saint + Sofia UK","address1":"3 \u0026 3A Blackfriars Road","address2":"","city":"Bristol","zip":"BS48 4DJ"}}],"fulfillments":[{"id":1953128874087,"order_id":2062304313447,"status":"success","created_at":"2020-01-30T09:52:13+00:00","service":"manual","updated_at":"2020-01-30T09:52:13+00:00","tracking_company":"DPD Expresspak","shipment_status":null,"location_id":35142860903,"line_items":[{"id":4510048125031,"variant_id":31606596272231,"title":"Camden Wide Leg Pant - Burgundy","quantity":1,"sku":"1002371","variant_title":"UK 18","vendor":"Saint and Sofia","fulfillment_service":"manual","product_id":4425829875815,"requires_shipping":true,"taxable":true,"gift_card":false,"name":"Camden Wide Leg Pant - Burgundy - UK 18","variant_inventory_management":"shopify","properties":[],"product_exists":true,"fulfillable_quantity":0,"grams":510,"price":"60.00","total_discount":"0.00","fulfillment_status":"fulfilled","pre_tax_price":"50.00","price_set":{"shop_money":{"amount":"60.00","currency_code":"GBP"},"presentment_money":{"amount":"60.00","currency_code":"GBP"}},"pre_tax_price_set":{"shop_money":{"amount":"50.00","currency_code":"GBP"},"presentment_money":{"amount":"50.00","currency_code":"GBP"}},"total_discount_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"discount_allocations":[],"tax_lines":[{"title":"VAT","price":"10.00","rate":0.2,"price_set":{"shop_money":{"amount":"10.00","currency_code":"GBP"},"presentment_money":{"amount":"10.00","currency_code":"GBP"}}}],"origin_location":{"id":1657275023463,"country_code":"GB","province_code":"","name":"Saint + Sofia UK","address1":"3 \u0026 3A Blackfriars Road","address2":"","city":"Bristol","zip":"BS48 4DJ"}},{"id":4510048157799,"variant_id":31241428926567,"title":"Camden Wide Leg Pant - Navy","quantity":1,"sku":"1001414","variant_title":"UK 18","vendor":"Saint and Sofia","fulfillment_service":"manual","product_id":4347069988967,"requires_shipping":true,"taxable":true,"gift_card":false,"name":"Camden Wide Leg Pant - Navy - UK 18","variant_inventory_management":"shopify","properties":[],"product_exists":true,"fulfillable_quantity":0,"grams":510,"price":"60.00","total_discount":"0.00","fulfillment_status":"fulfilled","pre_tax_price":"50.00","price_set":{"shop_money":{"amount":"60.00","currency_code":"GBP"},"presentment_money":{"amount":"60.00","currency_code":"GBP"}},"pre_tax_price_set":{"shop_money":{"amount":"50.00","currency_code":"GBP"},"presentment_money":{"amount":"50.00","currency_code":"GBP"}},"total_discount_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"discount_allocations":[],"tax_lines":[{"title":"VAT","price":"10.00","rate":0.2,"price_set":{"shop_money":{"amount":"10.00","currency_code":"GBP"},"presentment_money":{"amount":"10.00","currency_code":"GBP"}}}],"origin_location":{"id":1657275023463,"country_code":"GB","province_code":"","name":"Saint + Sofia UK","address1":"3 \u0026 3A Blackfriars Road","address2":"","city":"Bristol","zip":"BS48 4DJ"}}],"tracking_number":"3923557364","tracking_numbers":["3923557364"],"tracking_url":"http:\/\/www.dpd.co.uk\/content\/how-can-we-help\/index.jsp?reference=3923557364\u0026postcode=E17 5HZ","tracking_urls":["http:\/\/www.dpd.co.uk\/content\/how-can-we-help\/index.jsp?reference=3923557364\u0026postcode=E17 5HZ"],"receipt":{},"name":"52UKS42197.1"}],"refunds":[],"total_tip_received":"0.0","shipping_lines":[{"id":1691804958823,"title":"Next Day Delivery","price":"0.00","code":"BetterShipping-Next Day Delivery","source":"Better Shipping App","phone":null,"requested_fulfillment_service_id":null,"delivery_category":null,"carrier_identifier":"f10db9da363de65e2a04a48e2ff477b9","discounted_price":"0.00","price_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"discounted_price_set":{"shop_money":{"amount":"0.00","currency_code":"GBP"},"presentment_money":{"amount":"0.00","currency_code":"GBP"}},"discount_allocations":[],"tax_lines":[]}],"billing_address":{"first_name":"Debbie","address1":"56 Lyne Crescent ","phone":null,"city":"london","zip":"E17 5HZ","province":null,"country":"United Kingdom","last_name":"Xavier","address2":"Walthamstow ","company":"Walthamstow","latitude":51.5978326,"longitude":-0.0276442,"name":"Debbie Xavier","country_code":"GB","province_code":null},"shipping_address":{"first_name":"Debbie","address1":"46 Lyne Crescent","phone":"","city":"london","zip":"E17 5HZ","province":"","country":"United Kingdom","last_name":"Xavier","address2":"Walthamstow ","company":"Walthamstow","latitude":51.5983093,"longitude":-0.0279905,"name":"Debbie Xavier","country_code":"GB","province_code":null},"client_details":{"browser_ip":"86.1.83.77","accept_language":"en-GB,en-US;q=0.7,en;q=0.3","user_agent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.102 Safari\/537.36 Edge\/18.18362","session_hash":null,"browser_width":1904,"browser_height":817},"payment_details":{"credit_card_bin":"542011","avs_result_code":"Z","cvv_result_code":"M","credit_card_number":"•••• •••• •••• 6708","credit_card_company":"Mastercard"},"customer":{"id":2867734413415,"email":"debbie.xav@virginmedia.com","accepts_marketing":true,"created_at":"2019-12-24T07:39:58+00:00","updated_at":"2020-03-31T12:40:13+01:00","first_name":"Debbie","last_name":"Xavier","orders_count":2,"state":"disabled","total_spent":"165.00","last_order_id":2180153245799,"note":null,"verified_email":true,"multipass_identifier":null,"tax_exempt":false,"phone":null,"tags":"","last_order_name":"52UKS53546","currency":"GBP","accepts_marketing_updated_at":"2019-12-24T07:39:58+00:00","marketing_opt_in_level":"single_opt_in","default_address":{"id":3267003514983,"customer_id":2867734413415,"first_name":"Debbie","last_name":"Xavier","company":"","address1":"46 Lyne Crescent ","address2":"Walthanstow ","city":"london","province":null,"country":"United Kingdom","zip":"E17 5HZ","phone":null,"name":"Debbie Xavier","province_code":null,"country_code":"GB","country_name":"United Kingdom","default":true}}}}

0 Likes