Seller-fulfilled labels
Find eligible shipping services and buy, retrieve and cancel labels for seller-fulfilled orders with the Merchant Fulfillment API.
The Merchant Fulfillment API lets you find eligible shipping services for a seller-fulfilled order, buy a label from the carrier you choose, and retrieve or cancel that label.
Deprecated
All Merchant Fulfillment operations are deprecated. The Shipping API covers the same tasks. Build new integrations on the Shipping API instead. See Create a shipping label.
Before you begin
- Get an access token with the
fulfillment:readscope to read eligible services andfulfillment:writeto buy and cancel labels. See Authentication. - Have the order's
purchaseOrderId, both addresses, and the package dimensions and weight.
API operations
| Operation | Method & path | Use it to |
|---|---|---|
| Get eligible shipping services | POST /mfn/v4/eligibleShippingServices | List carriers and rates for a package |
| Create shipment | POST /mfn/v4/shipments | Buy a label |
| Get shipment | GET /mfn/v4/shipments/{shipmentId} | Retrieve a shipment |
| Get label | GET /mfn/v4/shipments/{shipmentId}/label | Download a label |
| Cancel shipment | DELETE /mfn/v4/shipments/{shipmentId} | Cancel a label |
Step 1: Get eligible shipping services
Send the shipment details in shipmentRequestDetails. purchaseOrderId, shipFromAddress, shipToAddress, packageDimensions, weight, shippingServiceOptions and shipDate are required.
POST /mfn/v4/eligibleShippingServices
Authorization: Bearer <access_token>
Content-Type: application/json{
"shipmentRequestDetails": {
"purchaseOrderId": "1234567891234",
"itemList": [ { "orderItemId": "1", "quantity": 2 } ],
"shipFromAddress": { "name": "Acme Warehouse", "addressLine1": "100 Industrial Way", "city": "Rogers", "stateOrRegion": "AR", "postalCode": "72756", "countryCode": "US" },
"shipToAddress": { "name": "Jane Doe", "addressLine1": "702 SW 8th St", "city": "Bentonville", "stateOrRegion": "AR", "postalCode": "72716", "countryCode": "US" },
"packageDimensions": { "length": 12, "width": 8, "height": 6, "unit": "inches" },
"weight": { "value": 3.5, "unit": "lb" },
"shipDate": "2026-12-04T15:00:00Z",
"shippingServiceOptions": {
"deliveryExperience": "DeliveryConfirmationWithoutSignature",
"carrierWillPickUp": false
}
}
}deliveryExperience is one of DeliveryConfirmationWithAdultSignature, DeliveryConfirmationWithSignature, DeliveryConfirmationWithoutSignature or NoTracking. The response lists shippingServiceList and rejectedShippingServiceList.
{
"shippingServiceList": [
{
"shippingServiceId": "UPS_GROUND",
"shippingServiceOfferId": "offer-abc123",
"carrierName": "UPS",
"shippingServiceName": "UPS Ground",
"earliestEstimatedDeliveryDate": "2026-12-06T00:00:00Z",
"latestEstimatedDeliveryDate": "2026-12-08T00:00:00Z",
"rate": { "amount": "9.45", "currencyCode": "USD" }
}
],
"rejectedShippingServiceList": []
}Step 2: Buy the label
Send the same shipmentRequestDetails with the chosen shippingServiceId. You can also send the shippingServiceOfferId and a labelFormat of PDF, PNG, ZPL, ZPL300 or ShippingServiceDefault.
POST /mfn/v4/shipments
Authorization: Bearer <access_token>
Content-Type: application/json{
"shipmentRequestDetails": {
"purchaseOrderId": "1234567891234",
"shipFromAddress": { "name": "Acme Warehouse", "addressLine1": "100 Industrial Way", "city": "Rogers", "stateOrRegion": "AR", "postalCode": "72756", "countryCode": "US" },
"shipToAddress": { "name": "Jane Doe", "addressLine1": "702 SW 8th St", "city": "Bentonville", "stateOrRegion": "AR", "postalCode": "72716", "countryCode": "US" },
"packageDimensions": { "length": 12, "width": 8, "height": 6, "unit": "inches" },
"weight": { "value": 3.5, "unit": "lb" },
"shipDate": "2026-12-04T15:00:00Z",
"shippingServiceOptions": { "deliveryExperience": "DeliveryConfirmationWithoutSignature" }
},
"shippingServiceId": "UPS_GROUND",
"shippingServiceOfferId": "offer-abc123",
"labelFormat": "PDF"
}The response returns a shipment with its shipmentId, shipmentStatus and label. The label's fileContents.contents is the Base64-encoded file.
{
"shipment": {
"shipmentId": "mfn-0001",
"shipmentStatus": "PURCHASED",
"label": {
"labelFormat": "PDF",
"fileContents": { "contents": "JVBERi0xLjQK...", "fileType": "application/pdf" }
}
}
}Step 3: Retrieve the shipment or label
Get the full shipment record, or download only the label in a chosen format (default PDF).
GET /mfn/v4/shipments/mfn-0001
Authorization: Bearer <access_token>GET /mfn/v4/shipments/mfn-0001/label?format=ZPL
Authorization: Bearer <access_token>Step 4: Cancel the shipment
Cancel a label you won't use. The response returns the updated shipment.
DELETE /mfn/v4/shipments/mfn-0001
Authorization: Bearer <access_token>shipmentStatus is PURCHASED, REFUNDED or SHIPPED.
Errors and edge cases
400: a required field is missing or an enum value isn't valid.404: no shipment exists for theshipmentId.429: you exceeded the rate limit. Back off and retry.
Related
Track and cancel shipments
Track packages you shipped with a Walmart label, cancel unused labels, find access points and resolve failed deliveries.
Buyer communications API overview
Send order-related messages to buyers and request product reviews and seller feedback with the Messaging and Solicitations APIs.
