Skip to content

Instantly share code, notes, and snippets.

@deniscsz
Last active November 8, 2017 20:16
Show Gist options
  • Select an option

  • Save deniscsz/2cfa08156bbeb1e823dbdf1defb8f256 to your computer and use it in GitHub Desktop.

Select an option

Save deniscsz/2cfa08156bbeb1e823dbdf1defb8f256 to your computer and use it in GitHub Desktop.
JSON a ser enviado para atualização do rastreamento. Deve ser enviado através do método http PATCH para o endereço com o seguinte formato: http://adcos.vtexcommercestable.com.br/api/oms/pvt/orders/<ID COMPLETO DO PEDIDO>/invoice/<NUMERO DA NOTA>
{
"trackingNumber": "4896",
"trackingUrl": "http://tracking.totalexpress.com.br/poupup_track.php?reid=4896&pedido=76957&nfiscal=76957",
"courier": "TOTALEXP"
}
@deniscsz
Copy link
Author

deniscsz commented Nov 8, 2017

Importante notar o padrão da URL da total express, sendo que ela é composta da seguinte forma:
http://tracking.totalexpress.com.br/poupup_track.php?reid={$reid}&pedido={$numeronota}&nfiscal={$numeronota};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment