Hello Where I can get that informations from the shopify rest Order API ?
Take a look at the image below:
Hello Where I can get that informations from the shopify rest Order API ?
Take a look at the image below:
Hi Antonio84,
Just to confirm - are those fields added by a checkout UI extension or a native part of the checkout?
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.
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.
There aren’t in the “note_attributes” field, I’ve tried.
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!
Ciao Antonio,
Capisco il problema che stai affrontando nell’accesso ai dati di localizzazione durante il checkout. Da quello che vedo, sembra che i valori provengano dalle estensioni di localizzazione del checkout e dovrebbero essere disponibili sull’ordine risultante tramite la connessione “localizationExtensions”.
Attualmente, la REST API potrebbe non consentire di recuperare queste informazioni, ma puoi utilizzare la GraphQL Admin API con la seguente query per ottenere i valori
query localisedOrder($order: ID!){
order(id: $order) {
id
name
localizationExtensions(first: 1) {
nodes {
key
value
}
}
}
}
Spero che questa soluzione ti aiuti a recuperare i dati corretti.
A proposito, ho trovato molto utile utilizzare strumenti che semplificano la gestione finanziaria, come il monitoraggio dei costi e il calcolo dei profitti. Questo mi ha aiutato enormemente nella pianificazione e ottimizzazione del mio business, semplificando anche le decisioni in aree come marketing e performance del negozio.
Cordiali saluti,
Siddiqe Reena