Shippo · Schema
Shippo Transaction
A Shippo transaction representing a purchased shipping label
EcommerceLabelsLogisticsReturnsShippingTracking
Properties
| Name | Type | Description |
|---|---|---|
| object_id | string | Unique identifier for the transaction |
| status | string | Current status of the transaction |
| tracking_number | string | Carrier-issued tracking number for the shipment |
| tracking_url_provider | string | URL to track the shipment on the carrier's website |
| tracking_status | string | Current tracking status of the shipment |
| label_url | string | URL to download the shipping label PDF or PNG |
| commercial_invoice_url | string | URL to download the commercial invoice for international shipments |
| rate | string | Object ID of the Rate used for this transaction |
| metadata | string | User-defined metadata for the transaction |
| object_created | string | |
| object_updated | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/api-evangelist/shippo/blob/main/json-schema/shippo-transaction-schema.json",
"title": "Shippo Transaction",
"description": "A Shippo transaction representing a purchased shipping label",
"type": "object",
"properties": {
"object_id": {
"type": "string",
"description": "Unique identifier for the transaction"
},
"status": {
"type": "string",
"enum": ["WAITING", "QUEUED", "SUCCESS", "ERROR", "REFUNDED", "REFUNDPENDING", "REFUNDREJECTED"],
"description": "Current status of the transaction"
},
"tracking_number": {
"type": "string",
"description": "Carrier-issued tracking number for the shipment"
},
"tracking_url_provider": {
"type": "string",
"format": "uri",
"description": "URL to track the shipment on the carrier's website"
},
"tracking_status": {
"type": "string",
"enum": ["UNKNOWN", "PRE_TRANSIT", "TRANSIT", "DELIVERED", "RETURNED", "FAILURE"],
"description": "Current tracking status of the shipment"
},
"label_url": {
"type": "string",
"format": "uri",
"description": "URL to download the shipping label PDF or PNG"
},
"commercial_invoice_url": {
"type": "string",
"format": "uri",
"description": "URL to download the commercial invoice for international shipments"
},
"rate": {
"type": "string",
"description": "Object ID of the Rate used for this transaction"
},
"metadata": {
"type": "string",
"maxLength": 100,
"description": "User-defined metadata for the transaction"
},
"object_created": {
"type": "string",
"format": "date-time"
},
"object_updated": {
"type": "string",
"format": "date-time"
}
},
"required": ["object_id", "status", "rate"]
}