Skip to Content

Create a shipping label

Quote rates for your packages, buy a label for the rate you choose, and download the label documents.

Buy a shipping label through Walmart to ship an order you fulfill yourself. You can compare rates first and then buy the one you want, or quote and buy in a single call when you already know the carrier and service.

Before you begin

  • Get an access token with the shipping:read and shipping:write scopes. See Authentication.
  • Have the order's purchaseOrderId, the ship-to address, your ship-from address, and each package's dimensions and weight. See Retrieve orders.

Step 1: Get rate quotes

Call Get shipping rate quotes. shipTo, shipFrom, packages and channelDetails are required. Each address needs name, addressLine1, city, stateOrRegion, postalCode and countryCode. To limit the quote to certain carriers or services, add serviceSelection.

POST /v4/fulfillment/shipping/shipment-rates
Authorization: Bearer <access_token>
Content-Type: application/json
{
  "shipFrom": {
    "name": "Acme Warehouse", "addressLine1": "100 Industrial Way",
    "city": "Rogers", "stateOrRegion": "AR", "postalCode": "72756", "countryCode": "US"
  },
  "shipTo": {
    "name": "Jane Doe", "addressLine1": "702 SW 8th St",
    "city": "Bentonville", "stateOrRegion": "AR", "postalCode": "72716", "countryCode": "US",
    "isCommercialAddress": false
  },
  "shipDate": "2026-12-04T15:00:00Z",
  "packages": [
    {
      "packageClientReferenceId": "PKG-1",
      "dimensions": { "length": 12, "width": 8, "height": 6, "unit": "inches" },
      "weight": { "value": 3.5, "unit": "lb" },
      "items": [ { "quantity": 2, "description": "Red ceramic mug", "sellerSku": "SKU-RED-MUG" } ]
    }
  ],
  "channelDetails": {
    "channelType": "WALMART_MARKETPLACE",
    "marketplaceOrderDetails": { "purchaseOrderId": "1234567891234" }
  }
}

The response lists the available rates, any ineligibleRates with their reasons, and a requestToken.

{
  "payload": {
    "requestToken": "rq-7f3c2a",
    "rates": [
      {
        "rateId": "rate-001",
        "carrier": { "id": "UPS", "name": "UPS" },
        "service": { "id": "UPS_GROUND", "name": "UPS Ground" },
        "totalCharge": { "amount": "9.45", "currencyCode": "USD" },
        "billedWeight": { "value": 4, "unit": "lb" },
        "expirationTime": "2026-12-04T23:59:59Z",
        "promise": {
          "deliveryWindow": { "start": "2026-12-06T00:00:00Z", "end": "2026-12-08T00:00:00Z" }
        }
      }
    ],
    "ineligibleRates": [
      {
        "carrierName": "FedEx",
        "serviceName": "FedEx 2Day",
        "ineligibilityReasons": [ { "code": "WEIGHT_LIMIT", "message": "Package exceeds service limits" } ]
      }
    ]
  }
}

Step 2: Get additional inputs (if required)

Some carriers and services need extra inputs. Call Get the JSON Schema for additional carrier/service inputs with the rateId and requestToken. The response payload is a JSON Schema (draft-07 compatible). Validate your inputs against it before you buy.

GET /v4/fulfillment/shipping/shipments/additional-input-schemas?rateId=rate-001&requestToken=rq-7f3c2a
Authorization: Bearer <access_token>

Step 3: Buy the label

Call Purchase a shipping label with the requestToken, the chosen rateId and a requestedDocumentSpecification. format, size and dpi are required. Add additionalInputs if step 2 returned a schema, and requestedValueAddedServices for any services offered on the rate.

POST /v4/fulfillment/shipping/shipments
Authorization: Bearer <access_token>
Content-Type: application/json
{
  "requestToken": "rq-7f3c2a",
  "rateId": "rate-001",
  "requestedDocumentSpecification": {
    "format": "PDF",
    "size": { "width": 4, "length": 6, "unit": "inches" },
    "dpi": 300,
    "pageLayout": "DEFAULT"
  }
}

The response returns the shipmentId and, for each package, its documents, trackingId, carrier, service and actualCharge.

{
  "payload": {
    "shipmentId": "shp-0001",
    "packageDocumentDetails": [
      {
        "packageClientReferenceId": "PKG-1",
        "trackingId": "1Z999AA10123456784",
        "carrier": { "id": "UPS", "name": "UPS" },
        "service": { "id": "UPS_GROUND", "name": "UPS Ground" },
        "actualCharge": { "amount": "9.45", "currencyCode": "USD" },
        "packageDocuments": [ { "type": "LABEL", "format": "PDF", "contents": "JVBERi0xLjQK..." } ]
      }
    ]
  }
}

Decode contents from Base64 to print the label. Store the shipmentId and trackingId.

Alternative: quote and buy in one call

When you already know the service you want, call Quote and purchase a shipment in a single call. Send the same addresses, packages and channelDetails as in step 1, plus a required serviceSelection and requestedDocumentSpecification. The response has the same shape as the purchase response.

POST /v4/fulfillment/shipping/shipments/oneClickShipment
Authorization: Bearer <access_token>
Content-Type: application/json
{
  "shipFrom": { "name": "Acme Warehouse", "addressLine1": "100 Industrial Way", "city": "Rogers", "stateOrRegion": "AR", "postalCode": "72756", "countryCode": "US" },
  "shipTo": { "name": "Jane Doe", "addressLine1": "702 SW 8th St", "city": "Bentonville", "stateOrRegion": "AR", "postalCode": "72716", "countryCode": "US" },
  "packages": [
    {
      "packageClientReferenceId": "PKG-1",
      "dimensions": { "length": 12, "width": 8, "height": 6, "unit": "inches" },
      "weight": { "value": 3.5, "unit": "lb" }
    }
  ],
  "serviceSelection": { "carrierIds": ["UPS"], "serviceIds": ["UPS_GROUND"] },
  "requestedDocumentSpecification": { "format": "ZPL203", "size": { "width": 4, "length": 6, "unit": "inches" }, "dpi": 203 },
  "channelDetails": { "channelType": "WALMART_MARKETPLACE", "marketplaceOrderDetails": { "purchaseOrderId": "1234567891234" } }
}

Step 4: Download documents again

To reprint a label, call Retrieve printable documents. Add packageClientReferenceId to get one package of a multi-package shipment, and format to choose PDF (the default), PNG, ZPL203 or ZPL300.

GET /v4/fulfillment/shipping/shipments/shp-0001/documents?packageClientReferenceId=PKG-1&format=PNG
Authorization: Bearer <access_token>

Step 5: Confirm shipment on the order

Send the carrier and trackingId to Walmart with Ship order lines.

Errors and edge cases

  • 400: a required field is missing or an enum value isn't valid, for example a dpi other than 203 or 300.
  • 403: your token is missing the shipping:read or shipping:write scope.
  • 404: a referenced resource, such as the shipment, wasn't found.
  • 429: you exceeded the rate limit. Back off and retry.

On this page