Hi,
I am developing an app for shopify customers that would allow them to link their stores with one of our products. Currently customers must upload a csv to an SFTP server so we thought having a direct integration within Shopify would be a better approach.
I boostrapped my app from the shopify CLI and in the shopify.app.toml
file I have added a webhook subscription like so:
[[webhooks.subscriptions]]
topics = ["orders/paid"]
uri = "https://blah.execute-api.us-east-1.amazonaws.com/shopify"
include_fields = [
"customer.first_name",
"customer.last_name",
"customer.email",
"customer.phone",
"id",
"created_at",
"location_id",
"merchant_business_entity_id",
]
The location_id
is null when I receive the webhook and the merchant_business_entity_id
is an ID but not what I need.
I’m trying to get the shop ID like gid://shopify/Shop/88483332466
and the merchant’s legal name or DBA name as we will map that to the paid customer account.
I used the REST API docs to figure out the available fields for an order webhook: Order - REST
But that API is deprecated and doesn’t have all of the fields I am looking for, namely the shop ID and the merchant’s/shop’s legal/DBA name.
Any idea how best to proceed?