Skip to Content

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:read scope to read eligible services and fulfillment:write to buy and cancel labels. See Authentication.
  • Have the order's purchaseOrderId, both addresses, and the package dimensions and weight.

API operations

OperationMethod & pathUse it to
Get eligible shipping servicesPOST /mfn/v4/eligibleShippingServicesList carriers and rates for a package
Create shipmentPOST /mfn/v4/shipmentsBuy a label
Get shipmentGET /mfn/v4/shipments/{shipmentId}Retrieve a shipment
Get labelGET /mfn/v4/shipments/{shipmentId}/labelDownload a label
Cancel shipmentDELETE /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 the shipmentId.
  • 429: you exceeded the rate limit. Back off and retry.

On this page