{{ activeApiMethod.description }}

Resource information

Rate Limited?
No
Requests per rate limit window
-
Authentication
Secure API Key
Response Formats
json
HTTP Methods
POST
Resource family
Shipments
Response object
Shipments
API Version
v1.0

Service capabilities

This interface creates a shipment with items and returns a summary of the pricing for the items. A shipment is a set of items associated to a charge account’s location to be delivered to the one physical address.

This page describes how to create an international shipment. To create a domestic shipment, see the Create Domestic Shipment page.

Example Request

POST
https://digitalapi.auspost.com.au/shipping/v1/shipments

Example Response

HTTP Response Code: 201

Example Error Response

HTTP Response Code: 400

References

Request Field Reference

Element NameDescriptionOptional / MandatoryTypeLength
shipmentsShipment information is to be supplied for each delivery of items to a physical address.MandatoryArray 
shipment_referenceA unique reference for the shipment, generated by the merchant.OptionalString50
sender_referencesA merchant specified array of references for the shipment. Effectively deprecates customer_reference_1 and customer_reference_2. The array length supported varies as noted in the Sender references documentation.OptionalArray
customer_reference_1A merchant specified reference for the shipment. This value is not required to be unique.OptionalString50
customer_reference_2A merchant specified reference for the shipment. This value is not required to be unique.OptionalString50
email_tracking_enabledWhether the recipient of the shipment will receive tracking notification email. The email address of the receiver must be provided if the email_tracking_enabled field is set to true.Optional - for some products this defaults to trueBoolean - true or falseN/A
fromThe address where the items will be sent from.Mandatory  
nameThe name of the sender.MandatoryString40
business_nameThe name of the sending business.OptionalString40
typeThe type of address. If this field is supplied, its value must be "MERCHANT_LOCATION".OptionalString (See Desc.)
linesThe address lines of the address. Minimum of one address line, up to a maximum of three. The second address line can accommodate up to 60 characters.MandatoryArray40
suburbThe suburb for the address.MandatoryString40
stateThe state code for the address. Valid values are: ACT, NSW, NT, QLD, SA, TAS, VIC, WA.MandatoryString3
postcodeThe postcode for the address.MandatoryString4
phoneThe sender’s phone number.OptionalString20
emailThe sender’s email address.OptionalString50
toThe address where the items will be delivered.Mandatory  
nameThe name of the receiver.MandatoryString35
apcnThe Australia Post customer number.OptionalString10
business_nameThe name of the business for the address.OptionalString40
typeThe type of address. Valid values are:
  • PARCEL_LOCKER - an address with this type represents an Australia Post Parcel Locker.
  • PARCEL_COLLECT - an address with this type represents an Australia Post Parcel Collection location.
  • STANDARD_ADDRESS - an address with this type represents a normal delivery address.
OptionalString (See Desc.)
linesThe address lines of the address. Minimum of one address line, up to a maximum of three. The second address line can accommodate up to 60 characters.MandatoryArray40
suburbThe suburb for the address.MandatoryString35
stateThe state code for the address.OptionalString10
postcodeThe postcode for the address.MandatoryString4
countryThe country code for the address. The country code must conform to ISO 3166-1 alpha-2 standard.MandatoryString2
phoneThe receiver’s phone number.OptionalString20
emailThe receiver’s email address.OptionalString50
delivery_instructionsInstructions to aid in prompt delivery of the item.OptionalString128
featuresAdditional features for the shipment.Optional
nameName of additional feature. Eg: COMMERCIAL_CLEARANCEMandatoryStringN/A
attributesAdditional information about the feature. Please note that attributes depend on the feature. Please refer to Shipment Features.MandatoryStringN/A
itemsAn item element is to be supplied for each parcel. Important Note: The maximum number of items for Parcel Post and Express Post domestic despatch movements is 20 itemsMandatoryArray 
item_referenceA unique reference for the item, generated by the merchant.OptionalString50
product_idThe Australia Post code representing the postage product for the item.MandatoryString5
item_descriptionA description of the item, generated by the merchant. It is mandatory for APGL products and is used to capture the overall description of the article.Optional (See Desc.)String
lengthThe length of the parcel in centimetres. If volumetric pricing applies then this is mandatory.Optional (See Desc.)Decimal4.1
widthThe width of the parcel in centimetres. If volumetric pricing applies then this is mandatory. Please refer to the length field for more information.Optional (See Desc.)Decimal4.1
heightThe height of the parcel in centimetres. If volumetric pricing applies then this is mandatory. Please refer to the length field for more information.Optional (See Desc.)Decimal4.1
weightThe parcel’s weight in kilograms. This must not be specified for flat-rate return shipments (movement_type = RETURN). However, it is mandatory for normal (outbound) shipments (movement_type = DESPATCH) and zonal returns (movement_type = RETURN). Your contract with Australia Post (not your API call) determines whether a return shipment has zonal pricing or flat-rate pricing. Note that most returns contracts are flat-rate.See Desc.DecimalN.3
contains_dangerous_goodsWhether the item contains dangerous goods, generated by the merchant.Optional. Defaults to false.Boolean - true or false
transportable_by_airIf the goods being sent are dangerous but are permitted to be transported by air, set this value to 'true'.(Optional)Boolean - true or false
dangerous_goods_declarationIf the goods being sent are dangerous and the transportable_by_air value is 'true', then the DG Declaration becomes mandatory. The DG declaration value can be found here.See Desc.String
allow_partial_deliveryWhether items can be delivered to their final destination as they become available or whether all items in the resulting consignment must be delivered together.Optional. Defaults to true.Boolean - true or falseN/A
featuresAdditional features for the item.Optional  
nameName of the feature. Eg: TRANSIT_COVER.MandatoryString
attributesAdditional information about the feature. Please note that attributes depend on the feature.Depends on feature.String
cover_amountCover amount.Decimal4.2
tracking_detailsThe merchant can optionally define the specific consignment, article, and barcode identifiers for the item. If this information is not supplied, Australia Post will generate the identifiers. Important note: if you are generating your own identifiers you must adhere to the specifications provided by Australia Post. Please contact Lodgement and APIs support for details.Optional
consignment_idThe consignment ID, generated by the merchant, to be assigned to the item.MandatoryString30
article_idThe article ID, generated by the merchant, to be assigned to the item.MandatoryString30
barcode_idThe barcode ID, generated by the merchant, to be assigned to the item.MandatoryString
commercial_valueWhether the item has commercial value (i.e. the goods are for resale). This is generated by the merchant and will be shown on the customers form and label.MandatoryBoolean - true or false
export_declaration_numberExport declaration number (EDN), generated by the merchant. This field is mandatory for item contents worth more than AUD$2000.Optional (See Desc.)String9 to 12
description_of_otherDescription of the goods. This is mandatory if classification_type is "OTHER".See Desc.String40
non_delivery_actionYour desired action if the delivery cannot be completed. You can specify "RETURN" or "ABANDONED". The default if not specified is to return the item by the most economical route or by air.OptionalString
certificate_numberIf you are supplying certificates with your customs forms, you can include the certificate numbers in this field.OptionalString35
licence_numberIf you are supplying licence information with your customs forms, you can include the licence numbers in this field.OptionalString35
invoice_numberUse this field to include an invoice number on the label.OptionalString35
commentsUse this field to include any additional comments on the label.OptionalString120
item_contentsAn item_contents element describes part of the contents of the item. You can specify up to 20 elements in this array.MandatoryArray20
descriptionDescription of the contents. This description is validated against a defined list of keywords, to determine whether the item can be carried by Australia Post and/or the item is prohibited in the destination country.MandatoryString40
quantityThe quantity of this described content.MandatoryInteger
weightThe weight in kilograms of this described content. If you provide a weight for one item_contents element, you must provide weights for all item_contents elements.See Desc.DecimalN.3
valueThe value in Australian Dollars of this described content.MandatoryDecimal4.2
tariff_codeThe Harmonised Tariff number that indicates the type of this described content. It is only mandatory if commercial_value is "true", otherwise it is optional. However, it is a recommended field to expedite the customs process in the receiving country.See Desc.String6 to 12
country_of_originThe country in which this described content was manufactured. It is only mandatory if commercial_value is "true", otherwise it is optional.See Desc.String2

Response Field Reference

Element NameDescriptionTypeLength
shipmentsShipment information for each shipment and items created.Array 
shipment_idThe identifier for the shipment generated by Australia Post.String50
shipment_referenceThe reference for the shipment, generated by the merchant and passed in the request.String50
shipment_creation_dateThe date and time that the shipment was created.Date and timeN/A
email_tracking_enabledWhether the recipient of the shipment will receive tracking notification email.Boolean - true or falseN/A
itemsAn item element is to be supplied for each parcel.Array 
item_idThe identifier for the item generated by Australia Post.String50
item_referenceA unique reference for the item, generated by the merchant.String50
product_idThe Australia Post code representing the postage product for the item.String5
tracking_detailsThe unique identifiers for the item. If these values have not been provided when creating the order or labels, then they will have been generated by Australia Post.
consignment_idThe consignment ID assigned to the item.String100
article_idThe article ID assigned to the item.String100
barcode_idThe barcode ID assigned to the item.String
item_summarySummary information for each item in the shipment.  
total_costThe total price of the shipment, including goods and services tax (G.S.T). This field is not used for StarTrack shipments, as they are costed at the shipment level only.DecimalN.2
total_cost_ex_gstThe total price of the shipment, excluding goods and services tax (G.S.T). This field is not used for StarTrack shipments, as they are costed at the shipment level only.DecimalN.2
total_gstThe goods and services tax amount included in the total cost. This field is not used for StarTrack shipments, as they are costed at the shipment level only.DecimalN.2
statusThe status for the item.StringN/A
item_descriptionA description of the item, generated by the merchant.String
heightThe height of the parcel in centimetres.Decimal4.1
lengthThe length of the parcel in centimetres.Decimal4.1
widthThe width of the parcel in centimetres.Decimal4.1
weightThe parcel’s weight in kilograms.DecimalN.3
allow_partial_deliveryWhether items can be delivered to their final destination as they become available or whether all items in the resulting consignment must be delivered together.Boolean - true or falseN/A
featuresAdditional features for the item.List
nameName of additional feature. Eg: TRANSIT_COVER.String
typeType of additional feature. Eg: TRANSIT_COVER.String
attributesAdditional information about the feature. Please note that the attributes depend on the feature type.String
ratePercentage rate for calculating the TRANSIT_COVER cost.Decimal2.1
cover_amountThe amount of TRANSIT_COVER requested.Decimal4.2
included_coverThe amount of TRANSIT_COVER included in the delivery product.Decimal4.2
maximum_coverThe maximum amount of TRANSIT_COVER that can be requested.Decimal4.2
movement_typeValue is "DESPATCH" to indicate an outbound or normal shipment, "RETURN" to indicate a returns shipment, "TRANSFER" to indicate a transfer. "TRANSFER" is only available for StarTrack products.String8
shipment_summarySummary pricing information for the shipment.
total_costThe total price of the shipment, including goods and services tax (G.S.T).DecimalN.2
total_cost_ex_gstThe total price of the shipment, excluding goods and services tax (G.S.T).DecimalN.2
shipping_costThe shipping cost for this shipment.DecimalN.2
total_gstThe goods and services tax amount included in the total cost.DecimalN.2
statusThe status of the item.String
number_of_itemsThe number of items within the shipment.Integer
tracking_summaryThe number of items in the shipment for each delivery status. The delivery status will be listed with the number of items in the shipment where the delivery status has been applied.Array
freight_chargeThe freight charge for this shipment.DecimalN.2
discountThe discount for this shipment.DecimalN.2
transit_coverThe transit cover charge for this shipment.
This field may be used to specify Transit Cover, Extra Cover or Transit Warranty for Contract, Non-Contract or StarTrack products respectively.
DecimalN.2
security_surchargeThe security surcharge for this shipment.DecimalN.2
fuel_surchargeThe fuel surcharge for this shipment.DecimalN.2

Error Response Field Reference

Element NameDescriptionTypeLength
errorsThe error codes and descriptions related to the action attempted.Array
codeThe code associated with the error.String
nameThe name category for the error.String
messageThe human readable error message.String
contextA map of values that attempts to highlight important information that may have caused the error. This may or may not be populated depending on the type of error.Map

Error Code Reference

CodeNameExample Message
42012PRODUCT_NOT_SUPPORTED_BY_CONTRACT_ERRORThe product CODE you have entered is not available on your contract ACCOUNT for the destination postcode POSTCODE. For further assistance, please contact your Account Manager or call Australia Post on 13 21 31.
43017ALL_OR_NONE_SHIPMENT_NO_ERRORThe request contains shipments with items that are missing barcode ids. Please add barcode ids to the items where the ids are missing, and resubmit your request.
44002ALL_OR_NONE_AUSPOST_ID_ERRORThe request contains shipments with items that are missing a tracking identifier field. Please ensure that each item contains values for the fields consignment_id, article_id, and barcode_id, and resubmit your request.
41007FROM_POSTCODE_DOES_NOT_
MATCH_CONTRACT_ORIGIN_POSTCODE
The postcode POSTCODE submitted for the sender "from" address does not match the lodgement postcode POSTCODE the contract. Please change the sender "from" postcode to match the lodgement postcode in the contract and attempt the request again.
42002NO_PRICES_FOR_PRODUCTThe service CODE is not available based upon the information submitted.
43003UNABLE_TO_CALCULATE_PRICEThe service CODE is not available based upon the submitted weight of WEIGHT kg.
43004UNABLE_TO_CALCULATE_PRICEThe service CODE is not available based upon the calculated cubic weight of WEIGHT kg for the submitted dimensions and weight.
42006MAX_WIDTHMaximum width must not exceed 105 cm
42007MAX_HEIGHTMaximum height must not exceed 105 cm
42008MAX_LENGTHMaximum length must not exceed 105 cm
42009MAX_VOLUMEMaximum volume must not exceed 0.25 m3
42010MAX_WEIGHTMaximum weight must not exceed 10000 kg
42011TWO_DIMENSIONS_LESS_THAN_5CMAt least 2 dimensions must be 5 cm
44010MAX_LENGTH_MERCHANT_REFERENCE_TEXTA value for merchant reference exceeds the maximum limit of 50 characters. Please reduce the length of the value and submit the request again.
44003DANGEROUS_GOODS_NOT_
SUPPORTED_BY_PRODUCT_ERROR
The product CODE specified in an item has indicated that dangerous goods will be included in the parcel, however, the product does not allow dangerous goods to be sent using the service. Please choose a product that allows dangerous goods to be included within the parcel to be sent.
44005DUPLICATE_ARTICLE_ID_ERRORThe merchant specified article_id of ABCZ12345678EXP00001 has been identified as a duplicate. All article_id values submitted must be unique. Please resubmit using a unique article_id for the item.
44006DUPLICATE_CONSIGNMENT_ID_ERRORThe merchant specified consignment_id of ABCZ12345678 has been identified as a duplicate. All consignment_id values submitted must be unique. Please resubmit using a unique consignment_id for the item.
44007DUPLICATE_BARCODE_ID_ERRORThe merchant specified barcode_id of ABCZ12345678EXP00001 has been identified as a duplicate. All barcode_id values submitted must be unique. Please resubmit using a unique barcode_id for the item.
43009MAX_LENGTH_CUSTOMER_REFERENCE_TEXTA value for customer reference 1 or 2 exceeds the maximum limit of 50 characters. Please reduce the length of the value and submit the request again.
43011MAX_LENGTH_DELIVERY_INSTRUCTIONA value for delivery instructions exceeds the maximum limit of 128 characters. Please reduce the length of the value and submit the request again.
400MAX_LENGTH_DESTINATION_BUSINESS_NAMEBusiness name longer than 40 characters: VALUE
40002JSON_MANDATORY_FIELD_MISSINGThe input request is missing the mandatory field with the name 'FIELD NAME'. Please resubmit the request including the required fields and values.
44043ITEM_DIMENSION_WEIGHT_NOT_APPLICABLE_ERRORThe product PRODUCT is a flat-rate product and must not include weight or dimensions.
80002INVALID_OPTION_COMBINATIONThe combination of authority to leave, partial delivery allowed and safe drop enabled are not valid for product PRODUCT. Please enter valid values for these fields. If you need assistance, please contact us at auspost.com.au/lodgement-techsupport.
400INVALID_PRINT_AT_DEPOT_PRODUCTPrint at Depot is not available for this product. Startrack EXP, PRM and FPP products are supported.
400INVALID_PRINT_AT_DEPOT_MOVEMENT_TYPEPrint at Depot is not available for this movement type. Movement type can be either RETURN or TRANSFER.

Warning Code Reference

CodeNameExample Message
66004NO_CONTRACT_PRICING_AVAILABLE_FOR_SHIPMENTYour account currently does not have a contracted rate for this product, "from" and "to" lane combination in shipment SHIPMENT ID - please contact your account manager for further information.
44062PARTIAL_DIMENSIONS_IN_SHIPMENT_WARNINGIncomplete dimensions supplied - price will be calculated on weight.
44061PARTIAL_DELIVERY_NOT_APPLICABLE_WARNINGPartial delivery is not applicable for this product.

Other Warning Reference

Warning MessageDescription
Only the first 2 lines of the Sender's address can be included in the lodgement information.This warning occurs if you specify more than 2 lines in the "from" address for StarTrack products.
One or more shipments have a cubic weight more than 4 times greater than dead weight.The cubic weight of a shipment is more than 4 times greater than the dead weight you specified. Please ensure that the weight and dimensions are correct. The shipping price is calculated on the larger weight value.
One or more shipments have a dead weight more than 4 times greater than cubic weight.The dead weight of a shipment is more than 4 times greater than the cubic weight we calculated. Please ensure that the weight and dimensions are correct. The shipping price is calculated on the larger weight value.