Ship Date
Specifying a shipping date can help you to schedule a pickup, receive a more accurate rate request, or more importantly, enable you to Create a manifest for USPS.
Setting Up Your Request
Example Request
1234567891011121314151617181920212223242526272829303132333435363738394041
POST /v1/labels HTTP/1.1Host: api.shipengine.comAPI-Key: __YOUR_API_KEY_HERE__Content-Type: application/json{"shipment": {"service_code": "usps_priority_mail","ship_date": "2019-7-25","ship_to": {"name": "Amanda Miller","phone": "555-555-5555","address_line1": "525 S Winchester Blvd","city_locality": "San Jose","state_province": "CA","postal_code": "95128","country_code": "US","address_residential_indicator": "yes"},"ship_from": {"company_name": "Example Corp.","name": "John Doe","phone": "111-111-1111","address_line1": "4009 Marathon Blvd","address_line2": "Suite 300","city_locality": "Austin","state_province": "TX","postal_code": "78756","country_code": "US","address_residential_indicator": "no"},"packages": [{"weight": {"value": 1.0,"unit": "ounce"}}]}}
Example Response
12345678910111213141516171819202122232425262728293031323334353637
{"label_id": "se-test-41860047","status": "processing","shipment_id": "se-41860047","ship_date": "2019-07-25T05:00:00.000Z","created_at": "2019-07-25T15:24:46.657Z","shipment_cost": {"currency": "usd","amount": 0.0},"insurance_cost": {"currency": "usd","amount": 0.0},"tracking_number": "9999999999999","is_return_label": false,"is_international": false,"batch_id": "","carrier_id": "se-0","service_code": "usps_priority_mail","package_code": "package","voided": false,"voided_at": null,"label_format": "pdf","label_layout": "4x6","trackable": true,"carrier_code": "stamps_com","tracking_status": "unknown","label_download": {"pdf": "https://api.shipengine.com/v1/downloads/6/Q2OLdnGaqk-UzkN6pFH0lg/testlabel-202923521.pdf","png": "https://api.shipengine.com/v1/downloads/6/Q2OLdnGaqk-UzkN6pFH0lg/testlabel-202923521.png","zpl": "https://api.shipengine.com/v1/downloads/6/Q2OLdnGaqk-UzkN6pFH0lg/testlabel-202923521.zpl","href": "https://api.shipengine.com/v1/downloads/6/Q2OLdnGaqk-UzkN6pFH0lg/testlabel-202923521.pdf"},"form_download": null,"insurance_claim": null}
That's it! Your label will now be available to download using the label_download.href
URL provided in the response.