Re: Get Order id of the paid order sent by webhook

Solved

Get Order id of the paid order sent by webhook

Croustys
Visitor
1 0 0

As the title says my goal is to create a validated invoice that the hungarian tax office accepts (using the official szamlazz.hu), but i need customer details for that.

Is there a way to get the order id or something similar out of the webhook that order payment sends to my server in order to get the order details and / or the customer details to generate the invoice? 

 

I've been discovering the api documentation but can't find the endpoints that'd fulfill my needs.

Does anyone have any input on my problem, or can offer a different approach?

Thanks in Advance!

Accepted Solution (1)

mikedasilva
Shopify Staff (Retired)
61 7 13

This is an accepted solution.

Hi @Croustys,

 

You can refer to our webhooks documentation that shows an example payload for an orders/paid webhook that is sent. In the payload, you will see a field 'id' which is the order id that you are looking for.

Cheers

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

mikedasilva
Shopify Staff (Retired)
61 7 13

This is an accepted solution.

Hi @Croustys,

 

You can refer to our webhooks documentation that shows an example payload for an orders/paid webhook that is sent. In the payload, you will see a field 'id' which is the order id that you are looking for.

Cheers

To learn more visit the Shopify Help Center or the Community Blog.