Form
After a Shipment is created, you can create various
associated Form objects for that Shipment, such as a
return packing slip, QR codes, and other international shipping forms.
For more information about how to use forms with your shipments, please
check our forms guide.
Forms that may be returned with Shipment objects depending on the
carrier and data passed:
- cn22
- cod_return_label
- commercial_invoice
- high_value_report
- nafta_certificate_of_origin
- order_summary
Forms that can be created after a Shipment has been bought:
- commercial_invoice
- label_qr_code
- return_packing_slip
- rma_qr_code
Endpoints
id
string
Unique, begins with "form_"
object
string
"Form"
mode
string
"test" or "production"
form_type
string
The type of form. Possible values:
- "cn22"
- "cod_return_label"
- "commercial_invoice"
- "high_value_report"
- "label_qr_code"
- "nafta_certificate_of_origin"
- "order_summary"
- "return_packing_slip"
- "rma_qr_code"
form_url
string
The URL from which the form can be downloaded
submitted_electronically
boolean
If EasyPost has submitted the form to the carrier on behalf of the user
created_at
datetime
When the
Form was createdupdated_at
datetime
When the
Form was last updatedForm Object
{
"object": "Form",
"id": "form_c7d83834b45544399bf704c468df06b6",
"created_at": "2025-05-09T20:39:21Z",
"updated_at": "2025-05-09T20:39:21Z",
"mode": "test",
"form_type": "return_packing_slip",
"form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20250509/827694e0c57149079d691ac3fb85e2b1.pdf",
"submitted_electronically": null
}Please see forms guide for request parameters.
POSTÂ / shipments/ :id/ forms
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# type always required
# all other elements differ based on form type
curl -X POST https://api.easypost.com/v2/shipments/shp_.../forms \
-u "EASYPOST_API_KEY": \
-H 'Content-Type: application/json' \
-d '{
"form": {
"type": "return_packing_slip",
"barcode": "RMA12345678900",
"line_items": [
{
"product": {
"title": "Square Reader",
"barcode": "855658003251"
},
"units": 8
}
]
}
}'Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
{
"id": "shp_c1e2946bb3c84b13a383168190a0c7e4",
"created_at": "2025-05-09T20:39:20Z",
"is_return": false,
"messages": [],
"mode": "test",
"options": {
"currency": "USD",
"payment": {
"type": "SENDER"
},
"date_advance": 0
},
"reference": null,
"status": "unknown",
"tracking_code": "9405500208303109884083",
"updated_at": "2025-05-09T20:39:20Z",
"batch_id": null,
"batch_status": null,
"batch_message": null,
"customs_info": {
"id": "cstinfo_93e983e34bd044d9ba941f01a59a5654",
"object": "CustomsInfo",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"contents_explanation": "",
"contents_type": "merchandise",
"customs_certify": true,
"customs_signer": "Steve Brule",
"eel_pfc": "NOEEI 30.37(a)",
"non_delivery_option": "return",
"restriction_comments": null,
"restriction_type": "none",
"mode": "test",
"declaration": null,
"customs_items": [
{
"id": "cstitem_6f7d78c129384937b830e0fc1ad245d7",
"object": "CustomsItem",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"description": "T-shirt",
"hs_tariff_number": "123456",
"origin_country": "US",
"quantity": 1,
"value": "10.0",
"weight": 5.0,
"code": "123",
"mode": "test",
"manufacturer": null,
"currency": null,
"eccn": null,
"printed_commodity_identifier": null
}
]
},
"from_address": {
"id": "adr_af0074a72d1511f0aa27ac1f6bc539ae",
"object": "Address",
"created_at": "2025-05-09T20:39:20+00:00",
"updated_at": "2025-05-09T20:39:20+00:00",
"name": "EasyPost",
"company": null,
"street1": "417 Montgomery Street",
"street2": "5th Floor",
"city": "San Francisco",
"state": "CA",
"zip": "94104",
"country": "US",
"phone": "4153334445",
"email": "support@easypost.com",
"mode": "test",
"carrier_facility": null,
"residential": null,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {}
},
"insurance": null,
"order_id": null,
"parcel": {
"id": "prcl_6a8fee5bf2a04f3d8b30efe1e28f0edf",
"object": "Parcel",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"length": 20.2,
"width": 10.9,
"height": 5.0,
"predefined_package": null,
"weight": 65.9,
"mode": "test"
},
"postage_label": {
"object": "PostageLabel",
"id": "pl_14e14fa52a7c46a6ba6468724ee7e6e6",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"date_advance": 0,
"integrated_form": "none",
"label_date": "2025-05-09T20:39:20Z",
"label_resolution": 300,
"label_size": "4x6",
"label_type": "default",
"label_file_type": "image/png",
"label_url": "https://easypost-files.s3.us-west-2.amazonaws.com/files/postage_label/20250509/e8e22a61dc0dd544f7803aec40ae2da05f.png",
"label_pdf_url": null,
"label_zpl_url": null,
"label_epl2_url": null,
"label_file": null
},
"rates": [
{
"id": "rate_9a59180d1ac04c1e9d578575941728c3",
"object": "Rate",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"mode": "test",
"service": "Express",
"carrier": "USPS",
"rate": "51.20",
"currency": "USD",
"retail_rate": "59.25",
"retail_currency": "USD",
"list_rate": "51.20",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 2,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 2,
"shipment_id": "shp_c1e2946bb3c84b13a383168190a0c7e4",
"carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac"
},
{
"id": "rate_1e8725994ca847299188a76543d1ee5c",
"object": "Rate",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"mode": "test",
"service": "Priority",
"carrier": "USPS",
"rate": "11.01",
"currency": "USD",
"retail_rate": "15.40",
"retail_currency": "USD",
"list_rate": "11.01",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 2,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 2,
"shipment_id": "shp_c1e2946bb3c84b13a383168190a0c7e4",
"carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac"
},
{
"id": "rate_89e3dc281a4a4993aa4636b260f9bd74",
"object": "Rate",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"mode": "test",
"service": "GroundAdvantage",
"carrier": "USPS",
"rate": "8.20",
"currency": "USD",
"retail_rate": "13.85",
"retail_currency": "USD",
"list_rate": "9.74",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 3,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 3,
"shipment_id": "shp_c1e2946bb3c84b13a383168190a0c7e4",
"carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac"
}
],
"refund_status": null,
"scan_form": null,
"selected_rate": {
"id": "rate_1e8725994ca847299188a76543d1ee5c",
"object": "Rate",
"created_at": "2025-05-09T20:39:20Z",
"updated_at": "2025-05-09T20:39:20Z",
"mode": "test",
"service": "Priority",
"carrier": "USPS",
"rate": "11.01",
"currency": "USD",
"retail_rate": "15.40",
"retail_currency": "USD",
"list_rate": "11.01",
"list_currency": "USD",
"billing_type": "easypost",
"delivery_days": 2,
"delivery_date": null,
"delivery_date_guaranteed": false,
"est_delivery_days": 2,
"shipment_id": "shp_c1e2946bb3c84b13a383168190a0c7e4",
"carrier_account_id": "ca_9685a1198a75477885a3cdca37559bac"
},
"tracker": {
"id": "trk_266fa8e93fa54a408fd1a734054c7743",
"object": "Tracker",
"mode": "test",
"tracking_code": "9405500208303109884083",
"status": "pre_transit",
"status_detail": "status_update",
"created_at": "2025-05-09T20:39:21Z",
"updated_at": "2025-05-09T20:39:21Z",
"signed_by": null,
"weight": null,
"est_delivery_date": "2025-05-09T20:39:21Z",
"shipment_id": "shp_c1e2946bb3c84b13a383168190a0c7e4",
"carrier": "USPS",
"tracking_details": [
{
"object": "TrackingDetail",
"message": "Pre-Shipment Info Sent to USPS",
"description": "",
"status": "pre_transit",
"status_detail": "status_update",
"datetime": "2025-04-09T20:39:21Z",
"source": "USPS",
"carrier_code": "",
"tracking_location": {
"object": "TrackingLocation",
"city": null,
"state": null,
"country": null,
"zip": null
},
"est_delivery_date": null
},
{
"object": "TrackingDetail",
"message": "Shipping Label Created",
"description": "",
"status": "pre_transit",
"status_detail": "status_update",
"datetime": "2025-04-10T09:16:21Z",
"source": "USPS",
"carrier_code": "",
"tracking_location": {
"object": "TrackingLocation",
"city": "HOUSTON",
"state": "TX",
"country": null,
"zip": "77063"
},
"est_delivery_date": null
}
],
"fees": [],
"carrier_detail": {
"object": "CarrierDetail",
"service": "First-Class Package Service",
"container_type": null,
"est_delivery_date_local": null,
"est_delivery_time_local": null,
"origin_location": "HOUSTON TX, 77001",
"origin_tracking_location": {
"object": "TrackingLocation",
"city": "HOUSTON",
"state": "TX",
"country": null,
"zip": "77063"
},
"destination_location": "CHARLESTON SC, 29401",
"destination_tracking_location": null,
"guaranteed_delivery_date": null,
"alternate_identifier": null,
"initial_delivery_attempt": null
},
"public_url": "https://track.easypost.com/djE6dHJrXzI2NmZhOGU5M2ZhNTRhNDA4ZmQxYTczNDA1NGM3NzQz"
},
"to_address": {
"id": "adr_aefd9a212d1511f0aa26ac1f6bc539ae",
"object": "Address",
"created_at": "2025-05-09T20:39:20+00:00",
"updated_at": "2025-05-09T20:39:20+00:00",
"name": "DR. STEVE BRULE",
"company": null,
"street1": "179 N HARBOR DR",
"street2": null,
"city": "REDONDO BEACH",
"state": "CA",
"zip": "90277-2506",
"country": "US",
"phone": "8573875756",
"email": "DR_STEVE_BRULE@GMAIL.COM",
"mode": "test",
"carrier_facility": null,
"residential": false,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": true,
"errors": [],
"details": null
},
"delivery": {
"success": true,
"errors": [],
"details": {
"latitude": 33.8436,
"longitude": -118.39177,
"time_zone": "America/Los_Angeles"
}
}
}
},
"usps_zone": 4,
"return_address": {
"id": "adr_af0074a72d1511f0aa27ac1f6bc539ae",
"object": "Address",
"created_at": "2025-05-09T20:39:20+00:00",
"updated_at": "2025-05-09T20:39:20+00:00",
"name": "EasyPost",
"company": null,
"street1": "417 Montgomery Street",
"street2": "5th Floor",
"city": "San Francisco",
"state": "CA",
"zip": "94104",
"country": "US",
"phone": "4153334445",
"email": "support@easypost.com",
"mode": "test",
"carrier_facility": null,
"residential": null,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {}
},
"buyer_address": {
"id": "adr_aefd9a212d1511f0aa26ac1f6bc539ae",
"object": "Address",
"created_at": "2025-05-09T20:39:20+00:00",
"updated_at": "2025-05-09T20:39:20+00:00",
"name": "DR. STEVE BRULE",
"company": null,
"street1": "179 N HARBOR DR",
"street2": null,
"city": "REDONDO BEACH",
"state": "CA",
"zip": "90277-2506",
"country": "US",
"phone": "8573875756",
"email": "DR_STEVE_BRULE@GMAIL.COM",
"mode": "test",
"carrier_facility": null,
"residential": false,
"federal_tax_id": null,
"state_tax_id": null,
"verifications": {
"zip4": {
"success": true,
"errors": [],
"details": null
},
"delivery": {
"success": true,
"errors": [],
"details": {
"latitude": 33.8436,
"longitude": -118.39177,
"time_zone": "America/Los_Angeles"
}
}
}
},
"forms": [
{
"object": "Form",
"id": "form_c7d83834b45544399bf704c468df06b6",
"created_at": "2025-05-09T20:39:21Z",
"updated_at": "2025-05-09T20:39:21Z",
"mode": "test",
"form_type": "return_packing_slip",
"form_url": "https://easypost-files.s3-us-west-2.amazonaws.com/files/form/20250509/827694e0c57149079d691ac3fb85e2b1.pdf",
"submitted_electronically": null
}
],
"fees": [
{
"object": "Fee",
"type": "PostageFee",
"amount": "11.01000",
"charged": true,
"refunded": false
}
],
"object": "Shipment"
}