PATCH
/
api
/
v2
/
platform
/
shipments
/
{id}
/
ship
curl --request PATCH \
  --url http://{defaultHost}/api/v2/platform/shipments/{id}/ship \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "62",
    "type": "shipment",
    "attributes": {
      "tracking": "U10000",
      "number": "H98524317894",
      "cost": "100.0",
      "shipped_at": "2022-11-08T19:35:17.839Z",
      "state": "shipped",
      "created_at": "2022-11-08T19:35:17.583Z",
      "updated_at": "2022-11-08T19:35:17.839Z",
      "adjustment_total": "0.0",
      "additional_tax_total": "0.0",
      "promo_total": "0.0",
      "included_tax_total": "0.0",
      "pre_tax_amount": "0.0",
      "taxable_adjustment_total": "0.0",
      "non_taxable_adjustment_total": "0.0",
      "public_metadata": {},
      "private_metadata": {},
      "display_discounted_cost": "$100.00",
      "display_item_cost": "$10.00",
      "display_amount": "$100.00",
      "display_final_price": "$100.00",
      "display_cost": "$100.00",
      "tracking_url": null
    },
    "relationships": {
      "order": {
        "data": {
          "id": "97",
          "type": "order"
        }
      },
      "address": {
        "data": null
      },
      "stock_location": {
        "data": {
          "id": "141",
          "type": "stock_location"
        }
      },
      "adjustments": {
        "data": []
      },
      "inventory_units": {
        "data": [
          {
            "id": "59",
            "type": "inventory_unit"
          }
        ]
      },
      "shipping_rates": {
        "data": [
          {
            "id": "117",
            "type": "shipping_rate"
          }
        ]
      },
      "state_changes": {
        "data": [
          {
            "id": "27",
            "type": "state_change"
          }
        ]
      },
      "selected_shipping_rate": {
        "data": {
          "id": "117",
          "type": "shipping_rate"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

include
string

Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>

Response

200
application/vnd.api+json
Record updated
data
object
required