Can't get Additional Information Checkout via API

Solved
DavideDev
New Member
3 0 0

Hi, i need to retrieve this field from orders

44label-DEV-Orders-TEST1001-Shopify-Plus(1).png

i followed the documentation here https://shopify.dev/docs/admin-api/rest/reference/orders/order#show-2021-04

but is seems impossible retrieve this field form the order response API.

Is someone facing the same problem?

 

0 Likes
rhys-spark
Tourist
4 1 0

You want the `note_attributes` fields! Do you not get this field in that API call?

0 Likes
DavideDev
New Member
3 0 0

thank's for reply me but not seems the 'note_attributes' fields, that is present in the response and correctly empty.

Additional information 'Codice fiscale' is a specific field shown on checkout when country selected is 'Italy', but no value 'ABCDEF12B23P432P' is present in the complete order response.

 

this is the full response from the order from the api call

/admin/api/2021-04/orders/3769073860803.json

 

Array
(
[0] => Array
(
[id] => 3769073860803
[admin_graphql_api_id] => gid://shopify/Order/3769073860803
[app_id] => 580111
[browser_ip] => 93.56.162.44
[buyer_accepts_marketing] =>
[cancel_reason] =>
[cancelled_at] =>
[cart_token] => 556c6cad2a98d9cef8843f8cd076bcc0
[checkout_id] => 20407913971907
[checkout_token] => 0a4bdeb3dca8a1ff14c1ac7e297c905e
[client_details] => Array
(
[accept_language] => it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3
[browser_height] => 915
[browser_ip] => 93.56.162.44
[browser_width] => 1605
[session_hash] =>
[user_agent] => Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0
)

[closed_at] =>
[confirmed] => 1
[contact_email] => davide.test@triboo.it
[created_at] => 2021-04-22T11:06:16-04:00
[currency] => EUR
[current_subtotal_price] => 10.00
[current_subtotal_price_set] => Array
(
[shop_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

)

[current_total_discounts] => 0.00
[current_total_discounts_set] => Array
(
[shop_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

)

[current_total_duties_set] =>
[current_total_price] => 19.99
[current_total_price_set] => Array
(
[shop_money] => Array
(
[amount] => 19.99
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 19.99
[currency_code] => EUR
)

)

[current_total_tax] => 0.00
[current_total_tax_set] => Array
(
[shop_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

)

[customer_locale] => en
[device_id] =>
[discount_codes] => Array
(
)

[email] => davide.test@triboo.it
[financial_status] => pending
[fulfillment_status] =>
[gateway] => Bank Deposit
[landing_site] => /admin/online-store/embedded-modal-host?hmac=28919096b50530a0a63a593134b66b41f6c07502196b9e2748bdf37f72b3418f&host=NDRsYWJlbC1kZXYubXlzaG9waWZ5LmNvbS9hZG1pbg&locale=en-US&new_design_language=true&session=86563b46b814e94513a9c00ed1681d78ffa7d168ebb48c16f93f10c405f7fe05&shop=44label-dev.myshopify.com&timestamp=1619014607&_signed_params=host,locale,new_design_language,session,shop,timestamp
[landing_site_ref] =>
[location_id] =>
[name] => #TEST1001
[note] =>
[note_attributes] => Array
(
)

[number] => 1
[order_number] => 1001
[order_status_url] => https://44label-dev.myshopify.com/56091738307/orders/70e311244f8e7dbeb014fca2513d15a6/authenticate?k...
[original_total_duties_set] =>
[payment_gateway_names] => Array
(
[0] => Bank Deposit
)

[phone] =>
[presentment_currency] => EUR
[processed_at] => 2021-04-22T11:06:15-04:00
[processing_method] => manual
[reference] =>
[referring_site] =>
[source_identifier] =>
[source_name] => web
[source_url] =>
[subtotal_price] => 10.00
[subtotal_price_set] => Array
(
[shop_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

)

[tags] =>
[tax_lines] => Array
(
)

[taxes_included] => 1
[test] =>
[token] => 70e311244f8e7dbeb014fca2513d15a6
[total_discounts] => 0.00
[total_discounts_set] => Array
(
[shop_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

)

[total_line_items_price] => 10.00
[total_line_items_price_set] => Array
(
[shop_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

)

[total_outstanding] => 19.99
[total_price] => 19.99
[total_price_set] => Array
(
[shop_money] => Array
(
[amount] => 19.99
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 19.99
[currency_code] => EUR
)

)

[total_price_usd] => 24.06
[total_shipping_price_set] => Array
(
[shop_money] => Array
(
[amount] => 9.99
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 9.99
[currency_code] => EUR
)

)

[total_tax] => 0.00
[total_tax_set] => Array
(
[shop_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

)

[total_tip_received] => 0.00
[total_weight] => 10000
[updated_at] => 2021-04-22T11:06:17-04:00
[user_id] =>
[billing_address] => Array
(
[first_name] => Davide
[address1] => viale sarca 336
[phone] =>
[city] => milano
[zip] => 20039
[province] => Milano
[country] => Italy
[last_name] => test
[address2] =>
[company] =>
[latitude] =>
[longitude] =>
[name] => Davide test
[country_code] => IT
[province_code] => MI
)

[customer] => Array
(
[id] => 5184247857347
[email] => davide.test@triboo.it
[accepts_marketing] =>
[created_at] => 2021-04-22T10:41:26-04:00
[updated_at] => 2021-04-22T11:15:13-04:00
[first_name] => Davide
[last_name] => test
[orders_count] => 1
[state] => disabled
[total_spent] => 19.99
[last_order_id] => 3769073860803
[note] =>
[verified_email] => 1
[multipass_identifier] =>
[tax_exempt] =>
[phone] =>
[tags] =>
[last_order_name] => #TEST1001
[currency] => EUR
[accepts_marketing_updated_at] => 2021-04-22T10:41:26-04:00
[marketing_opt_in_level] =>
[admin_graphql_api_id] => gid://shopify/Customer/5184247857347
[default_address] => Array
(
[id] => 6349728088259
[customer_id] => 5184247857347
[first_name] => Davide
[last_name] => test
[company] =>
[address1] => viale sarca 336
[address2] =>
[city] => milano
[province] => Milano
[country] => Italy
[zip] => 20039
[phone] =>
[name] => Davide test
[province_code] => MI
[country_code] => IT
[country_name] => Italy
[default] => 1
)

)

[discount_applications] => Array
(
)

[fulfillments] => Array
(
)

[line_items] => Array
(
[0] => Array
(
[id] => 9868055249091
[admin_graphql_api_id] => gid://shopify/LineItem/9868055249091
[destination_location] => Array
(
[id] => 2890451648707
[country_code] => IT
[province_code] => MI
[name] => Davide test
[address1] => viale sarca 336
[address2] =>
[city] => milano
[zip] => 20039
)

[fulfillable_quantity] => 1
[fulfillment_service] => manual
[fulfillment_status] =>
[gift_card] =>
[grams] => 10000
[name] => Test Product
[origin_location] => Array
(
[id] => 2871807967427
[country_code] => IT
[province_code] => MI
[name] => 44label DEV
[address1] => VIA PASQUALE PAOLI 3
[address2] =>
[city] => Milano
[zip] => 20143
)

[price] => 10.00
[price_set] => Array
(
[shop_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 10.00
[currency_code] => EUR
)

)

[product_exists] => 1
[product_id] => 6642047779011
[properties] => Array
(
)

[quantity] => 1
[requires_shipping] => 1
[sku] => testproduct
[taxable] => 1
[title] => Test Product
[total_discount] => 0.00
[total_discount_set] => Array
(
[shop_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 0.00
[currency_code] => EUR
)

)

[variant_id] => 39647158304963
[variant_inventory_management] => shopify
[variant_title] =>
[vendor] => 44label DEV
[tax_lines] => Array
(
)

[duties] => Array
(
)

[discount_allocations] => Array
(
)

)

)

[refunds] => Array
(
)

[shipping_address] => Array
(
[first_name] => Davide
[address1] => viale sarca 336
[phone] =>
[city] => milano
[zip] => 20039
[province] => Milano
[country] => Italy
[last_name] => test
[address2] =>
[company] =>
[latitude] =>
[longitude] =>
[name] => Davide test
[country_code] => IT
[province_code] => MI
)

[shipping_lines] => Array
(
[0] => Array
(
[id] => 3203082584259
[carrier_identifier] =>
[code] => Standard
[delivery_category] =>
[discounted_price] => 9.99
[discounted_price_set] => Array
(
[shop_money] => Array
(
[amount] => 9.99
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 9.99
[currency_code] => EUR
)

)

[phone] =>
[price] => 9.99
[price_set] => Array
(
[shop_money] => Array
(
[amount] => 9.99
[currency_code] => EUR
)

[presentment_money] => Array
(
[amount] => 9.99
[currency_code] => EUR
)

)

[requested_fulfillment_service_id] =>
[source] => shopify
[title] => Standard
[tax_lines] => Array
(
)

[discount_allocations] => Array
(
)

)

)

)

)

0 Likes
CalD
Shopify Staff
Shopify Staff
128 15 18

This is an accepted solution.

Hey @DavideDev,

Take a look at this tutorial here: https://shopify.dev/tutorials/manage-country-fields-using-localization-extensions

You can get country-specific localization extension fields, such as the Codice Fiscale and PEC, through the GraphQL Admin API (not REST). 

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

DavideDev
New Member
3 0 0

Thanks, solved with GraphQL

0 Likes