Skip to main content
This guide covers the customer role. For shipper, consignee, freight forwarder, notify party, customs broker, and dray carrier, see Assign Shipper, Consignee, and Other Parties.

Why add a party to a tracking request?

Adding a party to a tracking request associates customer information with the request. The customer is assigned to the shipment when it is created, just like reference numbers and tags. This helps you organize and manage your shipments more effectively.

How to get the party ID

You can either find an existing party or create a new one.

List all parties

You can list all parties associated with your account through the API. Endpoint: GET - https://api.terminal49.com/v2/parties
Response
After you get all the parties you would filter the parties by company_name to find the correct ID, either by looking through the list manually or using code to automate the process.

Add a party to a tracking request

To add a customer to a tracking request, include the party as a customer relationship when creating the request. Shipper, consignee, and the other roles are passed the same way, as relationships named after the role. To change roles on an existing shipment, use party roles. Endpoint: POST - https://api.terminal49.com/v2/tracking_requests
Request
The response carries the tracking request ID. Its customer relationship references the party’s linked account and is null when the party has none, which is the case for parties created through this API. Once the shipment exists, read the assigned party with GET /v2/shipments/SHIPMENT_ID/party_roles.
Response

Create a party for a customer

To add a customer to a tracking request, you first need to create a party. You can create a party through the API. Endpoint: POST - https://api.terminal49.com/v2/parties
Request
After you send a POST request to create a party, you will receive a response with the Party ID. You can use this Party ID to add the customer to a tracking request.
Response

Edit a party

You can update existing parties through the API. Endpoint: PATCH - https://api.terminal49.com/v2/parties/PARTY_ID

Read a party

You can retrieve the details of an existing party through the API. Endpoint: GET - https://api.terminal49.com/v2/parties/PARTY_ID