Learn About New Changes to AfterShip Tracking API, Webhook, and CSV
We are launching some key changes to AfterShip Tracking API, Webhook, and CSV that will take effect on March 30, 2023.
Below is a summary of all the upcoming changes:
1. Existing fields changes
We are changing the behavior of several existing fields listed below:
Behaviour changes to API and Webhook fieldsFew readersHow to Set up Custom Header Authentication to Secure Webhooks
Webhook 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
NaviFew readersAfterShip API : Intro
AfterShip 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 readersHow to Generate AfterShip API Key
Overview
AfterShip API empowers developers to build robust eCommerce platforms and streamline operations. It offers a range of functionalities, including automated tracking, seamless API and webhook integration, real-time delivery notifications, and more.
What you'll learn
In this articles, we'll discuss:
How to generate an API key
How to delete an API key
How to generate an API key
Navigate to the API keysSome readersTest Carrier Detection API
AfterShip 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
https://api.aftership.com/v4-beta/couriers/detect
Here are key details about the new testing API that you should be aware of:
Endpoint:
POST /v4-beta/couriers/detect
Authentication:Few readersAdd Additional Fields While Making POST API Calls - Mondial Relay
Here is a sample script.Few readersWebhook
Overview
Webhooks 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.
WhatSome readersISO3 Country Code
When 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 readersResolve CA Certificate Error
An "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 readersHow 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’
(https://storage.crisp.chat/users/helpdesk/website/9dd7Few readers