PATCH
/
tracking_requests
/
{id}
curl --request PATCH \
  --url https://api.terminal49.com/v2/tracking_requests/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "attributes": {
      "ref_number": "REFNUMBER11"
    }
  }
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "tracking_request",
    "attributes": {
      "request_number": "ONEYSH9AME650500",
      "ref_numbers": [
        "<string>"
      ],
      "tags": [
        "<string>"
      ],
      "status": "pending",
      "failed_reason": "booking_cancelled",
      "request_type": "bill_of_lading",
      "scac": "ONEY",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "is_retrying": true,
      "retry_count": 123
    },
    "relationships": {
      "tracked_object": {
        "data": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "shipment"
        }
      },
      "customer": {
        "data": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "party"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Token YOUR_API_TOKEN

The APIs require authentication to be done using header-based API Key and Secret Authentication.

API key and secret are sent va the Authorization request header.

You send your API key and secret in the following way:

Authorization: Token YOUR_API_KEY

Path Parameters

id
string
required

Tracking Request ID

Body

application/json
data
object

Response

200 - application/json
OK
data
object