All URIs are relative to https://api.terminal49.com/v2
Method | HTTP request | Description |
---|---|---|
GetContainers | Get /containers | List containers |
GetContainersId | Get /containers/{id} | Get a container |
GetContainersIdRawEvents | Get /containers/{id}/raw_events | Get a container's raw events |
GetContainersIdTransportEvents | Get /containers/{id}/transport_events | Get a container's transport events |
InlineResponse2008 GetContainers(ctx, optional)
List containers
Returns a list of container. The containers are returned sorted by creation date, with the most recent container appearing first. This API will return all containers associated with the account.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetContainersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetContainersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
pageNumber | optional.Int32 | [default to 1] | |
pageSize | optional.Int32 | [default to 30] | |
include | optional.String | Comma delimited list of relations to include |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2009 GetContainersId(ctx, id, optional)
Get a container
Retrieves the details of a container.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ||
optional | *GetContainersIdOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetContainersIdOpts struct
Name | Type | Description | Notes |
---|
include | optional.String| Comma delimited list of relations to include |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20010 GetContainersIdRawEvents(ctx, id)
Get a container's raw events
Get a list of past and futuer (estimated) milestones for a container as reported by the carrier. Some of the data is normalized even though the API is called raw_events. Normalized attributes: event
, estimated_at
, actual_at
timestamps. Not all of the event
values have been normalized. You can expect the the events related to container movements to be normalized but there are cases (paperwork "milestones" like customs release) where events are not normalized.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20011 GetContainersIdTransportEvents(ctx, id, optional)
Get a container's transport events
Get a list of past transport events (canonical) for a container. All data has been normalized across all carriers. These are a verified subset of the raw events may also be sent as Webhook Notifications to a webhook endpoint. This does not provide any estiamted future events. See container/:id/raw_events
endpoint for that.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ||
optional | *GetContainersIdTransportEventsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetContainersIdTransportEventsOpts struct
Name | Type | Description | Notes |
---|
include | optional.String| Comma delimited list of relations to include |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]