Shipment Notifcation
이 콘텐츠는 아직 번역되지 않았습니다.
You can obtain shipping information from Teapplix, after orders are shipped. There are 2 ways to obtain such information:
- You can send a GET request to query and download Shipment data as JSON
- Teapplix can POST Shipment JSON data to an external URL
Query Shipment Data
You can use “GET” method to obtain one or a list of “Shipment” JSON objects.
You can use the following link to find out what values Teapplix returns for ShipCarrier and ShipMethods.
Outbound Shipment Notification
Outbound Shipment Notification webhooks trigger POST to your URL every time an order is shipped.
The URL can be defined in Teapplix, and the condition of what type of order will trigger a Shipment Notification can also be defined in Teapplix:
- For all orders from a specific channel, or specific account within a specific channel
- For all orders from a specific queue in Teapplix
- For all orders assigned to a specific warehouse in Teapplix
- Other conditions that can be setup by Teapplix Support
To setup such an webhook, first define an API URL end point in Teapplix Setup => API. After that, create a filter that runs on Shipped Orders, and set the action to POST to your API end point. Once setup, Teapplix will POST to your URL the same JSON structure as the “Shipments” array in the schema below.
In both GET and POST cases, the returned JSON data format is described in the “Response” tab below. JSON Format:
GET Request
Query parameters
| Property | Type | Description | Constraints |
|---|---|---|---|
TxnId |
string | Find shipment info for a specific order | |
ShipCarrier |
string | Obtain shipment information with matching carrier | |
TrackingNumber |
string | Obtain shipment infromation with matching tracking number | |
ShipDateStart |
string | inclusive - limit to all orders shipped starting this date, format YYYY-MM-DD, YYYY/MM/DD, or datetime format that contain timezone, e.g. 2024-05-14T09:00:00-08:00 | |
ShipDateEnd |
string | inclusive - limit to all orders shipped until this date, format YYYY-MM-DD, YYYY/MM/DD, or datetime format that contain timezone, e.g. 2024-05-14T09:00:00-08:00 | |
QueueId |
integer | Limit orders placed in a specific queue id | |
StoreType |
string | Store Type. Limit to orders from specific channel | |
StoreKey |
string | Store Key. This must be specified together with StoreType, limit to orders from specific channel + account | |
ReturnLabel |
integer | Return Label Flag (0|1). If you set this parameter, return will contain PDF of order label base64 encoded |
GET Response - 200
Shipment Query Result
Shipment details
| Property | Type | Description | Constraints |
|---|---|---|---|
Items |
Shipment Data[] | Shipments details of orders | Required |
Shipment Data
| Property | Type | Description | Constraints |
|---|---|---|---|
TxnId |
string | Unique transaction id | Required |
PackageNo |
integer | Number of package. Starting from 0. Currently support only PackageNo=0 | |
ShipMethod |
string | Ship Method. Will accept both API Enum or Teapplix native value on POST. Will atttempt to always return API Enum on GET. | |
Weight |
Weight | Weight of a package or an item. | |
Dimensions |
Dimensions of package | If not set Teapplix will apply 6x6x4 by default | |
IdenticalPackageCount |
integer | Count of identical packages. Currently supported only for FedEx/UPS | Minimum: 1 |
WarehouseId |
integer | Warehouse Id the order is shipped from. Affects where inventory is deducted from. | |
ShipDate |
string | Ship date, format YYYY-MM-DD. On input also supported YYYY/MM/DD, or datetime format that contain timezone, e.g. 2024-05-14T09:00:00-08:00. If you provide ShipDate in request the order will be marked as shipped. If not you can update ShipMethod, Weight, Dimensions, IdenticalPackageCount and WarehouseId for open orders. | |
TrackingInfo |
Tracking Info | Tracking info | |
LabelData |
Document | Document details | |
ProfileId |
integer | Profile Id used to print the label. If label is not printed in Teapplix, returns 1. On input only used with Ship Date + LabelData, all Shipments from same POST must have same Profile Id | |
PostageAmount |
Amount | Declares any amount value | |
PostageAccount |
string | Postage Account. |
Weight
Weight of a package or an item.
| Property | Type | Description | Constraints |
|---|---|---|---|
Value |
number | Absolute weight value | Required |
Unit |
string | Unit | RequiredOne of: OZ, LB, GR, KG |
Dimensions of package
If not set Teapplix will apply 6x6x4 by default
| Property | Type | Description | Constraints |
|---|---|---|---|
Length |
number | Length | Required |
Width |
number | Width | Required |
Depth |
number | Depth | Required |
Unit |
string | Unit of measurement | RequiredOne of: IN, CM |
Tracking Info
Tracking info
| Property | Type | Description | Constraints |
|---|---|---|---|
TrackingNumber |
string | Tracking number of shipment | Max-Length: 50 |
CarrierName |
string | Carrier name which is assigned with tracking | |
SSCC |
string | Serial Shipping Container Code |
Document
Document details
| Property | Type | Description | Constraints |
|---|---|---|---|
Type |
string | One of: URL, INLINE | |
ContentType |
string | One of: PDF, ZIP, PNG, HTML, CSV | |
Content |
string | RequiredMin-Length: 1 |
Amount
Declares any amount value
| Property | Type | Description | Constraints |
|---|---|---|---|
Amount |
number | ||
Currency |
string | Pattern: [A-Z]{3} |
GET Response - 400
Message
| Property | Type | Description | Constraints |
|---|---|---|---|
Success |
boolean | Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. | Required |
Code |
integer | Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115 | |
Message |
string | Message typically associated with errors | |
Description |
string[] | Detailed description |
GET Response - 401
Message
| Property | Type | Description | Constraints |
|---|---|---|---|
Success |
boolean | Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. | Required |
Code |
integer | Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115 | |
Message |
string | Message typically associated with errors | |
Description |
string[] | Detailed description |
GET Response - 500
Message
| Property | Type | Description | Constraints |
|---|---|---|---|
Success |
boolean | Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. | Required |
Code |
integer | Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115 | |
Message |
string | Message typically associated with errors | |
Description |
string[] | Detailed description |
POST Request
Shipping confirmation
Used to set shipping details for order shipped outside of Teapplix
| Property | Type | Description | Constraints |
|---|---|---|---|
Shipments |
Shipment Data[] | Shipments details of orders to be marked | Required |
Force |
boolean | Force - force update of shipment parameters even if order is already marked as shipped. Orders where label is printed in Teapplix cannot be updated again even if you set Force to true |
Shipment Data
| Property | Type | Description | Constraints |
|---|---|---|---|
TxnId |
string | Unique transaction id | Required |
PackageNo |
integer | Number of package. Starting from 0. Currently support only PackageNo=0 | |
ShipMethod |
string | Ship Method. Will accept both API Enum or Teapplix native value on POST. Will atttempt to always return API Enum on GET. | |
Weight |
Weight | Weight of a package or an item. | |
Dimensions |
Dimensions of package | If not set Teapplix will apply 6x6x4 by default | |
IdenticalPackageCount |
integer | Count of identical packages. Currently supported only for FedEx/UPS | Minimum: 1 |
WarehouseId |
integer | Warehouse Id the order is shipped from. Affects where inventory is deducted from. | |
ShipDate |
string | Ship date, format YYYY-MM-DD. On input also supported YYYY/MM/DD, or datetime format that contain timezone, e.g. 2024-05-14T09:00:00-08:00. If you provide ShipDate in request the order will be marked as shipped. If not you can update ShipMethod, Weight, Dimensions, IdenticalPackageCount and WarehouseId for open orders. | |
TrackingInfo |
Tracking Info | Tracking info | |
LabelData |
Document | Document details | |
ProfileId |
integer | Profile Id used to print the label. If label is not printed in Teapplix, returns 1. On input only used with Ship Date + LabelData, all Shipments from same POST must have same Profile Id | |
PostageAmount |
Amount | Declares any amount value | |
PostageAccount |
string | Postage Account. |
Weight
Weight of a package or an item.
| Property | Type | Description | Constraints |
|---|---|---|---|
Value |
number | Absolute weight value | Required |
Unit |
string | Unit | RequiredOne of: OZ, LB, GR, KG |
Dimensions of package
If not set Teapplix will apply 6x6x4 by default
| Property | Type | Description | Constraints |
|---|---|---|---|
Length |
number | Length | Required |
Width |
number | Width | Required |
Depth |
number | Depth | Required |
Unit |
string | Unit of measurement | RequiredOne of: IN, CM |
Tracking Info
Tracking info
| Property | Type | Description | Constraints |
|---|---|---|---|
TrackingNumber |
string | Tracking number of shipment | Max-Length: 50 |
CarrierName |
string | Carrier name which is assigned with tracking | |
SSCC |
string | Serial Shipping Container Code |
Document
Document details
| Property | Type | Description | Constraints |
|---|---|---|---|
Type |
string | One of: URL, INLINE | |
ContentType |
string | One of: PDF, ZIP, PNG, HTML, CSV | |
Content |
string | RequiredMin-Length: 1 |
Amount
Declares any amount value
| Property | Type | Description | Constraints |
|---|---|---|---|
Amount |
number | ||
Currency |
string | Pattern: [A-Z]{3} |
POST Response - 200
Shipping Confirmation result
| Property | Type | Description | Constraints |
|---|---|---|---|
Items |
OrderOperationResult[] | List of results |
OrderOperationResult
| Property | Type | Description | Constraints |
|---|---|---|---|
TxnId |
string | Unique id for each entry | RequiredMax-Length: 40 |
Status |
string | Submission status for order: | RequiredOne of: Confirmed, NotFound, Failure |
Message |
string | Message |
POST Response - 400
Message
| Property | Type | Description | Constraints |
|---|---|---|---|
Success |
boolean | Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. | Required |
Code |
integer | Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115 | |
Message |
string | Message typically associated with errors | |
Description |
string[] | Detailed description |
POST Response - 500
Message
| Property | Type | Description | Constraints |
|---|---|---|---|
Success |
boolean | Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. | Required |
Code |
integer | Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115 | |
Message |
string | Message typically associated with errors | |
Description |
string[] | Detailed description |

