Skip to main content

Get Shipping Labels

Endpoint
GET /v1/orders/:order_id/shipping_labels

Returns the shipping label PDF for one order. The label is generated on the first request, and later requests with the same settings return the same file.

Request Parameters​

order_id is a path parameter. All other parameters are query parameters. Settings you leave out use your default settings from the Biteship dashboard. See Label Settings for the default values.

ParameterTypeRequiredDescription
order_idstringYesBiteship order ID
paper_sizestringNoPaper size: a4, 8x10cm, or 10x15cm
templatestringNoLabel template: standard
insurance_shownbooleanNoShow insurance information
insurance_fee_shownbooleanNoShow the insurance amount
shipping_fee_shownbooleanNoShow the shipping fee
items_shownbooleanNoShow the items section
item_description_shownbooleanNoShow item descriptions
item_sku_shownbooleanNoShow item SKUs
origin_phone_shownbooleanNoShow the sender phone
origin_address_shownbooleanNoShow the sender address
receiver_phone_shownbooleanNoShow the recipient phone
receiver_address_shownbooleanNoShow the recipient address
censor_receiver_namebooleanNoCensor the recipient name

Boolean query parameters are true or false.

Request
curl --request GET \
--url 'https://api.biteship.com/v1/orders/<<ORDER_ID>>/shipping_labels?paper_size=10x15cm&items_shown=true&censor_receiver_name=true' \
--header 'authorization: <<YOUR_API_KEY>>'

Response​

FieldTypeDescription
successbooleanWhether the request succeeded
codenumberResponse code
messagestringShipping label retrieved successfully or Shipping label created successfully. Both mean success
shipping_label.idstringShipping label ID
shipping_label.user_idstringUser ID
shipping_label.order_idstringOrder ID
shipping_label.organization_idstringOrganization ID
shipping_label.templatestringLabel template
shipping_label.paper_sizestringPaper size
shipping_label.insurance_shownbooleanInsurance shown
shipping_label.insurance_fee_shownbooleanInsurance amount shown
shipping_label.shipping_fee_shownbooleanShipping fee shown
shipping_label.items_shownbooleanItems section shown
shipping_label.item_description_shownbooleanItem descriptions shown
shipping_label.item_sku_shownbooleanItem SKUs shown
shipping_label.origin_phone_shownbooleanSender phone shown
shipping_label.origin_address_shownbooleanSender address shown
shipping_label.receiver_phone_shownbooleanRecipient phone shown
shipping_label.receiver_address_shownbooleanRecipient address shown
shipping_label.censor_receiver_namebooleanRecipient name censored
shipping_label.file_urlstringURL of the label PDF
shipping_label.created_atstringCreation timestamp
shipping_label.updated_atstringLast update timestamp
Response
{
"success": true,
"code": 20000000,
"message": "Shipping label retrieved successfully",
"shipping_label": {
"id": "69a8f0c2b49b9700925c1f10",
"user_id": "5f9a1c2e8b3d4a0012345678",
"order_id": "69946bae0b2c6f002659f21a",
"organization_id": "5f9a1c2e8b3d4a0012345679",
"template": "standard",
"paper_size": "10x15cm",
"insurance_shown": true,
"insurance_fee_shown": true,
"shipping_fee_shown": true,
"items_shown": true,
"item_description_shown": true,
"item_sku_shown": true,
"origin_phone_shown": true,
"origin_address_shown": true,
"receiver_phone_shown": true,
"receiver_address_shown": true,
"censor_receiver_name": true,
"file_url": "https://biteship.s3.ap-southeast-1.amazonaws.com/public/shipping_labels/1772700711941-69946bae0b2c6f002659f21a.pdf",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
}

Rate Limit​

You can make up to 20 requests every 10 seconds.

Errors​

HTTPCodeWhen
40040002057The order ID is invalid or the order is not found
42242200002Your plan does not include the Shipping Label API. See Plans & limits
42942900000Rate limit exceeded
50350300000The label for this order is being generated. Retry shortly