Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

I only have id and gid, how do i get the order name?

I only have id and gid, how do i get the order name?

AsiaPay
Shopify Partner
10 0 3

Hi, 

 

During payment, I can receive id and gid from shopify:

{
  "id": "9slM-gtDTb0vjsCdQgiMc-97",
  "gid": "gid://shopify/PaymentSession/9slM-gtDTb0vjsCdQgiMc-97",
...
...
}

 

However, I need the order name.

 

How can I get the order name if I only have below?

"id": "9slM-gtDTb0vjsCdQgiMc-97"

"gid": "gid://shopify/PaymentSession/9slM-gtDTb0vjsCdQgiMc-97",

 

Trying and following the example on https://shopify.dev/api/admin-graphql/2021-10/queries/order#section-examples, I am not able to receive name using "9slM-gtDTb0vjsCdQgiMc-97"

 

AsiaPay_0-1640742188904.png

 

 

 

Thanks,

Christian

Replies 2 (2)

EddieLuong
Shopify Partner
39 1 21

I have the same problem, need to get the id/name of the order that has created with my custom payment method (using payment app). @AsiaPay Do you find the way to have this?

Samkit
Shopify Partner
3 0 0

Were you able to figure this out?