I'm working on a project where I am using shippo to create shipping labels. Shippo has a webhook to allow customers to track their order statuses. I'm never used webhooks before, and I'm finding their documentation on how to set it up a bit confusing. They say to:
- Setup a webhook.
POST
the below to https://api.goshippo.com/tracks/
{
"carrier": "usps",
"tracking_number": "9102969010383081813033"
}
The issue that I'm having is that I'm unsure how to POST
to a url in node. My project uses react in the frontend and node in the backend with axios being used to send my api request between the two.
I found this posting to a remote url with expressjs, but the answer is from 2013, so I wasn't sure if there have been any changes since, and in general, I wasn't sure if this solution would even work for what I'm asking. I would appreciate any help or advice on how to accomplish this. Thank you!