Discussing APIs and development related to customers, discounts, and order management.
Hello Where I can get that informations from the shopify rest Order API ?
Take a look at the image below:
Solved! Go to the solution
This is an accepted solution.
Hey @Antonio84,
Those values come from checkout localisation extensions and should be available on the resulting Order.
localizationExtensions connection.
I haven't found a way to retrieve them with the REST API, but you should be able to use the GraphQL Admin API to check the values with a query like this:
query localisedOrder($order: ID!){
order(id: $order) {
id
name
localizationExtensions(first: 1) {
nodes {
key
value
}
}
}
}
Hope that helps!
- James
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
Hi Antonio84,
Just to confirm - are those fields added by a checkout UI extension or a native part of the checkout?
Liam | Developer Advocate @ 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
They are not extensions, it was added by shopify.
Okay Antonio - it does look like this is a new field and the data entered during checkout is added to the orders "Additional Information" section on the admin. It's possible it's not yet accessible via our API but I'm asking our internal dev team about this now.
Liam | Developer Advocate @ 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
Hi again,
From looking into this a bit more, it may be possible to access this info from the `note_attributes` property on the order resource. Try making a GET call to see if the required info is being displayed.
Liam | Developer Advocate @ 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
There aren't in the "note_attributes" field, I've tried.
This is an accepted solution.
Hey @Antonio84,
Those values come from checkout localisation extensions and should be available on the resulting Order.
localizationExtensions connection.
I haven't found a way to retrieve them with the REST API, but you should be able to use the GraphQL Admin API to check the values with a query like this:
query localisedOrder($order: ID!){
order(id: $order) {
id
name
localizationExtensions(first: 1) {
nodes {
key
value
}
}
}
}
Hope that helps!
- James
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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