Process Flow Charts
This page provides visual guides for common API workflows.
Shipment Creation Process
The following chart illustrates the complete process of creating a shipment, handling asynchronous processing, and retrieving the final tracking label.
Key Steps:
- Create: Initiate the request using the Create Shipment API.
- Poll: If the
Carrier.StatusreturnsProcessing, you must poll the Get Shipment API periodically. - Final Status: Continue polling until the status changes to
CreatedorFailed. - Label: Once
Created, use the Get Label API to download your shipping labels.
Refund Process
The refund process can return a terminal status immediately or require asynchronous monitoring.
Key Steps:
- Initiate: Call the Create Refund API at any time for a created shipment.
- Terminal Check: If the response returns
RefundedorRejected, the process is finished. - Monitor: If the status is not terminal, use the Get Refund API to check the progress periodically.
- Conclusion: The process is finished once the status reaches
RefundedorRejected.
Note: You are safe to call the Create Refund API to do the polling as well.