Getting started

Quickstart

Two requests get you live rates for a package. You don't need to create an order first.

  1. Get a token

    Send your Ship.com email and password as request headers. You get back a token that's good for 180 days and a refresh token that never changes. Token generation

    GEThttps://app.ship.com/public/token
    Request
    curl https://app.ship.com/public/token \
      -H "email: $SHIP_EMAIL" \
      -H "password: $SHIP_PASSWORD"
  2. Ask for rates

    Send origin and destination ZIP codes, plus package weight and dimensions for accurate pricing. Every quote comes back in one response. Field reference

    POSThttps://app.ship.com/public/quote
    Request
    curl -X POST https://app.ship.com/public/quote \
      -H "Authorization: Bearer $SHIP_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
        "fromZip": "90210",
        "toZip": "10001",
        "weight": 2,
        "length": 10,
        "width": 8,
        "height": 4
      }'
    Response
    {
      "success": true,
      "result": {
        "orderID": 0,
        "error": null,
        "prices": [
          {
            "id": "string",
            "rate": 8.45,
            "retailRate": 10.20,
            "serviceLevel": "string",
            "deliveryDate": "date"
          }
        ]
      }
    }
  3. Buy the label

    Pick a rate from prices and send its details to /public/purchase-label. The response gives you a secure link to download or print the label. Purchase label reference

    POSThttps://app.ship.com/public/purchase-label