How to Set up Custom Header Authentication to Secure WebhooksWebhook consumers need an authentication system for webhooks to be sent to the right destination and ensure the source is verified. In this tutorial, you’ll learn how to set up custom header authentication and how to create, edit, and delete your custom header from a webhook URL.
Steps to add a custom header
Log in to AfterShip admin
AfterShip API : IntroAfterShip API is a shipment tracking API that returns tracking info of our supported couriers. You can insert tracking results directly at your application or store, and notify users of delivery updates using webhooks.
The AfterShip API is implemented as JSON over HTTP using all four verbs (GET/POST/PUT/DELETE). Each resource, like Tracking, Courier, has its own URL and is manipulated in isolation. In other words, we'veSome readers
Generate AfterShip API KeyAfterShip API helps build robust eCommerce platforms and streamline processes for developers.
How does AfterShip API help?
📌 Automates the tracking process
📌 Offers easy API and webhook integration
📌 Enables tracking functionality
📌 Helps to send real-time delivery notifications
🌐 Create API key
Go to API keys settings page Generate a new API key
🚫 Delete API key
Go to API keys settings page (https://admin.aftershiFew readers
Sample API and Wehook ResponseSample webhook response.json (6 KB)
Sample API response.json (8 KB)
Sample API & webhook json.zip (4 KB)
Sample API & Webhook26May2020.json (https://help.aftership.com/Few readers
Test Carrier Detection APIAfterShip API returns tracking information of all our supported carriers swiftly so that you can share delivery updates quickly with customers.
You also get access to a testing API, which makes the whole process of carrier detection quick and error-free. That API is
Carrier detect API: POST
Here are key details about the new testing API that you should be aware of:
Add Additional Fields While Making POST API Calls - Mondial RelayHere is a sample script.Few readers
WebhookWebhooks act as a gateway to receive raw data at a particular destination that you define. Webhook is used to ask AfterShip to push back any updates to your system. This is used when the store wants to send out notifications by themselves or receive the latest delivery status / checkpoint. Users can select when to ask AfterShip pushes back delivery updates when using webhook.
Go to notification settings
Add webhookSome readers
AfterShip Has 5 Webhooks IPs to Deliver Faster Tracking UpdatesAfterShip has been enjoying exponential growth for many years because we are committed to enhancing our customers’ experience.
Now, we have added 5 more new IPs to deliver swift tracking updates 🤟
What has happened to the existing IP address?
It’s not a part of our system anymore.
We have added 5 new IP addresses for a better experience 😊
Note: Whitelist new IPs if yFew readers
ISO3 Country CodeWhen tracking an international shipment shipped by a postal service (Airmail / Registered Mail / EMS) in AfterShip, you could specify the destination country and track at both Origin and Destination country. Postal services usually refer to the government owned carrier for each country - USPS for the States, Australia Post for Australia for example. You can specify the destination country when using CSV upload or API (http://suppoFew readers
Resolve CA Certificate ErrorAn "unable to find valid certification path to requested target" error may be generated while trying to make an API request. This occurs when Java is unable to verify the certificate presented by a server in SSL Connection.
🔒 Trusted Certificates
Self-signed certificates, created by your server aren’t usually trusted by all the browsers. Java trusts certificates existing in the TrustStore (list of certificates trusted by SSL servers/Certificate Authorities )
🔧 Fix certificate erroFew readers
How to Update Webhook Secret in AfterShip?With AfterShip, you stay updated all the time as we send webhook events to your systems as soon as any particular event takes place. You can even update webhook secret with AfterShip to wipe out your security-related concerns.
👨💻Steps to update webhook secret
Go to your AfterShip account’s ‘Notifications’ section Click on ‘Webhooks’ Tap on ‘Update webhook secret’