Webhook Specifications

Learn how AfterShip Shipping verifies and secures all the webhook requests.


MethodDescription
POST application/jsonWhen the send request to AfterShip Shipping and webhook is set, we make a POST request to the callback URL you defined on the webhook page.
The post body contains a JSON string of the below data.
  • event_type - the name of the event
  • date_time - time of sending the webhook
  • meta - meta data object of response, are same as API envelope
  • data - data object of response, are same as API envelope
  • Event_typeDescription
    calculate_ratesWhen POST /rates API is done
    create_a_labelWhen POST /labels API is done
    cancel_a_labelWhen POST /cancel-labels API is done
    manifest_a_labelWhen POST /manifests API is done
    preparing...
    preparing...