Skip to main content
POST
TypeScript

인증

Authorization
string
header
필수

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

shipment:create

헤더

Idempotency-Key
string

A unique key that makes this request safe to retry. See Idempotent requests.

Maximum string length: 255
예시:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

예시:

"2026-11-17"

본문

application/json
payment_id
string
필수

The payment to attach the shipment to, prefixed pay_.

예시:

"pay_xxxxxxxxxxxxxx"

tracking_number
string
필수

The carrier-assigned tracking number.

예시:

"1Z999AA10123456784"

account_id
string

The unique identifier of the account, prefixed biz_.

예시:

"biz_xxxxxxxxxxxxxx"

응답

shipment created

account_id
string
필수

The account that owns this shipment, prefixed biz_.

예시:

"biz_xxxxxxxxxxxxxx"

carrier
string | null
필수

The shipping carrier detected for this shipment. Null until a tracking update identifies it.

예시:

"ups"

checkpoints
object[]
필수
created_at
string
필수

The datetime the shipment was created (ISO 8601).

예시:

"2026-01-01T12:00:00.000Z"

id
string
필수

Shipment ID, prefixed ship_.

예시:

"ship_xxxxxxxxxxxxxx"

payment_id
string
필수

The payment this shipment fulfills, prefixed pay_.

예시:

"pay_xxxxxxxxxxxxxx"

status
enum<string>
필수

The current delivery status of this shipment.

사용 가능한 옵션:
unknown,
pre_transit,
in_transit,
out_for_delivery,
delivered,
available_for_pickup,
return_to_sender,
failure,
cancelled,
error
예시:

"in_transit"

tracking_number
string
필수

The carrier-assigned tracking number used to look up shipment progress.

예시:

"1Z999AA10123456784"

tracking_url
string
필수

A customer-facing URL to track this shipment's progress.

예시:

"https://track.aftership.com/xxxxxxxxxxxxxxxxxx"

updated_at
string
필수

The datetime the shipment was last updated (ISO 8601).

예시:

"2026-01-01T12:00:00.000Z"