diff --git a/functions/routes/ecom/webhook.js b/functions/routes/ecom/webhook.js index 8c6d352..03c48c9 100644 --- a/functions/routes/ecom/webhook.js +++ b/functions/routes/ecom/webhook.js @@ -48,7 +48,7 @@ exports.post = ({ appSdk }, req, res) => { const data = await createTag(order, storeId, appData, appSdk) logger.info(`Tag created for #${storeId} ${orderId}`, { data }) trackingCodes.push({ - code: data.id, + code: data['@id'] || data.id, link: 'https://www.freteclick.com.br/rastreamento', tag: 'freteclick' })