Create Shipment
Changed onAttaches a carrier tracking number to a payment and begins tracking it.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
The unique identifier of the account, prefixed biz_.
The payment to attach the shipment to, prefixed pay_.
The carrier-assigned tracking number.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"payment_id": "pay_xxxxxxxxxxxxxx",
"tracking_number": "1Z999AA10123456784"
}Response
shipment created
The account that owns this shipment, prefixed biz_.
The shipping carrier detected for this shipment. Null until a tracking update identifies it.
The datetime the shipment was created (ISO 8601).
Shipment ID, prefixed ship_.
The payment this shipment fulfills, prefixed pay_.
The current delivery status of this shipment.
The carrier-assigned tracking number used to look up shipment progress.
A customer-facing URL to track this shipment's progress.
The datetime the shipment was last updated (ISO 8601).
Example response
{
"account_id": "biz_xxxxxxxxxxxxxx",
"carrier": "ups",
"checkpoints": [
{
"location": "PHILADELPHIA, PA",
"message": "Picked up",
"status": "in_transit",
"timestamp": "2026-01-01T12:00:00.000Z"
}
],
"created_at": "2026-01-01T12:00:00.000Z",
"id": "ship_xxxxxxxxxxxxxx",
"payment_id": "pay_xxxxxxxxxxxxxx",
"product": {
"id": "prod_xxxxxxxxxxxxxx",
"title": "Persevering actuating local..."
},
"status": "in_transit",
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://track.aftership.com/xxxxxxxxxxxxxxxxxx",
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
- info
added the required property
productto the response with the status
- info
- info
added the non-success response with the status
- info