Documentation
¶
Overview ¶
httpclient implements an API client for AfterShip Tracking https://www.aftership.com/docs/tracking
Index ¶
- Constants
- type Checkpoint
- type Client
- func (c *Client) CompleteTracking(ctx context.Context, id string, req *CompleteTrackingRequest) (*Tracking, error)
- func (c *Client) CreateTracking(ctx context.Context, req *CreateTrackingRequest) (*Tracking, error)
- func (c *Client) DeleteTracking(ctx context.Context, id string) (*Tracking, error)
- func (c *Client) DetectCouriers(ctx context.Context, req *DetectCouriersRequest) ([]Courier, error)
- func (c *Client) GetTracking(ctx context.Context, id string, req *GetTrackingRequest) (*Tracking, error)
- func (c *Client) ListCouriers(ctx context.Context, req *ListCouriersRequest) ([]Courier, error)
- func (c *Client) ListTrackings(ctx context.Context, req *ListTrackingsRequest) (*TrackingList, error)
- func (c *Client) RetrackTracking(ctx context.Context, id string) (*Tracking, error)
- func (c *Client) UpdateTracking(ctx context.Context, id string, req *UpdateTrackingRequest) (*Tracking, error)
- type CompleteTrackingRequest
- type Coordinate
- type Courier
- type CreateTrackingRequest
- type Credentials
- type Customer
- type DetectCouriersRequest
- type Dimensions
- type EstimatedDate
- type EstimatedTime
- type Event
- type GetTrackingRequest
- type LinkedShipment
- type ListCouriersRequest
- type ListTrackingsRequest
- type Mile
- type MultiPiece
- type Pagination
- type PromisedDate
- type Proof
- type Quantity
- type Tag
- type Tracking
- type TrackingList
- type TrackingMeta
- type UpdateTrackingRequest
Constants ¶
const ( ReasonDelivered = "DELIVERED" ReasonLost = "LOST" ReasonReturnedToSender = "RETURNED_TO_SENDER" )
Why a tracking is marked as completed
const (
// Version is the version of the API
Version = "2026-07"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct {
CreatedAt time.Time `json:"created_at,omitzero"`
Time string `json:"checkpoint_time,omitempty"`
Slug string `json:"slug,omitempty"`
Tag Tag `json:"tag,omitempty"`
Subtag string `json:"subtag,omitempty"`
SubtagMessage string `json:"subtag_message,omitempty"`
RawTag string `json:"raw_tag,omitempty"`
Message string `json:"message,omitempty"`
Location string `json:"location,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
PostalCode string `json:"postal_code,omitempty"`
CountryRegion string `json:"country_region,omitempty"`
CountryRegionName string `json:"country_region_name,omitempty"`
Coordinate *Coordinate `json:"coordinate,omitempty"`
Events []Event `json:"events,omitempty"`
Source string `json:"source,omitempty"` // carrier, or user
Hash string `json:"hash,omitempty"` // identifies it
}
Checkpoint is something which happened to a shipment, where, and when
func (Checkpoint) String ¶
func (c Checkpoint) String() string
type Client ¶
func New ¶
New returns a client for AfterShip Tracking with the API key. The endpoint can be replaced with client.OptEndpoint, for example for testing, and the rate limit, which is the lowest of AfterShip's, with client.OptRateLimit.
func (*Client) CompleteTracking ¶
func (c *Client) CompleteTracking(ctx context.Context, id string, req *CompleteTrackingRequest) (*Tracking, error)
CompleteTracking marks the tracking with the identifier as completed, such as delivered, so it's no longer tracked, and returns it
func (*Client) CreateTracking ¶
CreateTracking adds a tracking, whose courier is detected, when the request has none, and returns it. Returns ErrConflict when there's a tracking of the number already.
func (*Client) DeleteTracking ¶
DeleteTracking deletes the tracking with the identifier, and returns it, as it was. Returns ErrNotFound when there's none.
func (*Client) DetectCouriers ¶
DetectCouriers returns the couriers which could have the tracking number, the likeliest first
func (*Client) GetTracking ¶
func (c *Client) GetTracking(ctx context.Context, id string, req *GetTrackingRequest) (*Tracking, error)
GetTracking returns the tracking with the identifier, with its checkpoints. Returns ErrNotFound when there's none.
func (*Client) ListCouriers ¶
ListCouriers returns the couriers matching the request
func (*Client) ListTrackings ¶
func (c *Client) ListTrackings(ctx context.Context, req *ListTrackingsRequest) (*TrackingList, error)
ListTrackings returns a page of the trackings matching the request, and how many there are. The next page is got with the cursor of its pagination.
func (*Client) RetrackTracking ¶
RetrackTracking tracks the tracking with the identifier again, which has expired, and which can only be done once, and returns it
func (*Client) UpdateTracking ¶
func (c *Client) UpdateTracking(ctx context.Context, id string, req *UpdateTrackingRequest) (*Tracking, error)
UpdateTracking changes what's set of the tracking with the identifier, and returns it. Returns ErrNotFound when there's none.
type CompleteTrackingRequest ¶
type CompleteTrackingRequest struct {
Reason string `json:"reason" enum:"DELIVERED,LOST,RETURNED_TO_SENDER" help:"Why it's completed"`
Time string `json:"event_datetime,omitempty" help:"When it was, such as 2026-11-24, or 2026-11-24T11:23:51+01:00" optional:""`
}
CompleteTrackingRequest is why a tracking is completed, and when
type Coordinate ¶
Coordinate is where a checkpoint is
type Courier ¶
type Courier struct {
Slug string `json:"slug"`
Name string `json:"name"`
OtherName string `json:"other_name,omitempty"`
Phone string `json:"phone,omitempty"`
WebURL string `json:"web_url,omitempty"`
DefaultLanguage string `json:"default_language,omitempty"`
SupportLanguages []string `json:"support_languages,omitempty"`
ServiceFromCountryRegions []string `json:"service_from_country_regions,omitempty"`
RequiredFields []string `json:"required_fields,omitempty"`
OptionalFields []string `json:"optional_fields,omitempty"`
// What a connection to the person's account with it needs, when it needs
// one
Credentials *Credentials `json:"credentials,omitempty"`
}
Courier is a courier, by its code, which is its slug, with what a tracking of it needs besides its number
type CreateTrackingRequest ¶
type CreateTrackingRequest struct {
TrackingNumber string `json:"tracking_number" help:"Tracking number, of 4 to 100 characters"`
TrackingMeta
ID string `json:"id,omitempty" help:"Identifier of the tracking, which AfterShip gives it when it isn't given" optional:""`
SlugGroup string `json:"slug_group,omitempty" help:"Group of couriers which the courier is detected from, such as fedex-group" optional:""`
ShipmentTags []string `json:"shipment_tags,omitempty" help:"Tags of the shipment" optional:""`
CourierConnectionID string `json:"courier_connection_id,omitempty" help:"Identifier of the courier's account which it's sent with" optional:""`
LastMile *Mile `json:"last_mile,omitempty" help:"The courier which delivers it, when it's another" optional:""`
}
CreateTrackingRequest is a tracking to add
type Credentials ¶
type Credentials struct {
Fields []struct {
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Required bool `json:"required,omitempty"`
} `json:"fields,omitempty"`
}
Credentials are what a connection to an account with a courier needs
type Customer ¶
type Customer struct {
ID string `json:"id,omitempty"`
Role string `json:"role,omitempty" help:"Such as buyer, or receiver"`
Name string `json:"name,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phone_number,omitempty"`
Language string `json:"language,omitempty"`
}
Customer is who a shipment is for, or from
type DetectCouriersRequest ¶
type DetectCouriersRequest struct {
TrackingNumber string `json:"tracking_number" help:"Tracking number"`
Slug []string `json:"slug,omitempty" help:"Codes of the couriers it could be, such as dhl" optional:""`
SlugGroup string `json:"slug_group,omitempty" help:"Group of couriers it could be, such as fedex-group" optional:""`
DestinationPostalCode string `json:"destination_postal_code,omitempty" help:"Postal code it's to" optional:""`
DestinationState string `json:"destination_state,omitempty" help:"State it's to" optional:""`
DestinationCountryRegion string `json:"destination_country_region,omitempty" help:"Country it's to, such as DEU" optional:""`
OriginCountryRegion string `json:"origin_country_region,omitempty" help:"Country it's from, such as DEU" optional:""`
TrackingShipDate string `json:"tracking_ship_date,omitempty" help:"When it's sent, such as 2026-11-24" optional:""`
TrackingAccountNumber string `json:"tracking_account_number,omitempty" help:"The sender's account" optional:""`
TrackingKey string `json:"tracking_key,omitempty" help:"A key, which some couriers need" optional:""`
}
DetectCouriersRequest is a tracking number, and what else is known of it, whose couriers are detected
type Dimensions ¶
type Dimensions struct {
Unit string `json:"unit,omitempty"`
Length float64 `json:"length,omitempty"`
Width float64 `json:"width,omitempty"`
Height float64 `json:"height,omitempty"`
}
Dimensions are the size of a shipment
type EstimatedDate ¶
type EstimatedDate struct {
Date string `json:"estimated_delivery_date,omitempty"`
DateMin string `json:"estimated_delivery_date_min,omitempty"`
DateMax string `json:"estimated_delivery_date_max,omitempty"`
ConfidenceCode float64 `json:"confidence_code,omitempty"`
}
EstimatedDate is the day a shipment is estimated to be delivered, or between
type EstimatedTime ¶
type EstimatedTime struct {
Type string `json:"type,omitempty"` // specific, or range
Source string `json:"source,omitempty"`
Datetime string `json:"datetime,omitempty"`
DatetimeMin string `json:"datetime_min,omitempty"`
DatetimeMax string `json:"datetime_max,omitempty"`
ReviseReason string `json:"revise_reason,omitempty"`
}
EstimatedTime is when a shipment is estimated to be delivered, or between, and who estimates it, such as the courier
type Event ¶
type Event struct {
Code string `json:"code,omitempty"`
Reason *struct {
Code string `json:"code,omitempty"`
} `json:"reason,omitempty"`
}
Event is what a checkpoint says happened, such as that it's returned, and why
type GetTrackingRequest ¶
type GetTrackingRequest struct {
Fields []string `json:"fields,omitempty" help:"The fields which are returned, such as tag and checkpoints, or every field" optional:""`
Lang string `json:"lang,omitempty" help:"Language which the courier's messages are translated to, such as en" optional:""`
}
GetTrackingRequest is what's returned of a tracking
func (*GetTrackingRequest) Values ¶
func (r *GetTrackingRequest) Values() url.Values
Values returns the request as URL query parameters
type LinkedShipment ¶
type LinkedShipment struct {
ID string `json:"id,omitempty"`
TrackingNumber string `json:"tracking_number,omitempty"`
Slug string `json:"slug,omitempty"`
}
LinkedShipment is the return of a shipment, or the shipment of a return
type ListCouriersRequest ¶
type ListCouriersRequest struct {
Active *bool `json:"active,omitempty" help:"Whether only the couriers which are on, in AfterShip, are returned" optional:""`
Slug []string `json:"slug,omitempty" help:"Codes of couriers, such as dhl" optional:""`
}
ListCouriersRequest selects couriers
func (*ListCouriersRequest) Values ¶
func (r *ListCouriersRequest) Values() url.Values
Values returns the request as URL query parameters
type ListTrackingsRequest ¶
type ListTrackingsRequest struct {
Keyword string `` /* 146-byte string literal not displayed */
TrackingNumbers []string `json:"tracking_numbers,omitempty" help:"Tracking numbers, of which there can be 50" optional:""`
Slug []string `json:"slug,omitempty" help:"Codes of couriers, such as dhl" optional:""`
Tag []Tag `` /* 164-byte string literal not displayed */
TransitTime *int `json:"transit_time,omitempty" help:"Days since it was picked up, or until it was delivered" optional:""`
Origin []string `json:"origin,omitempty" help:"Countries it's from, such as DEU" optional:""`
Destination []string `json:"destination,omitempty" help:"Countries it's to, such as DEU" optional:""`
CourierDestinationCountryRegion []string `json:"courier_destination_country_region,omitempty" help:"Countries the courier says it's to, such as DEU" optional:""`
CreatedAtMin time.Time `json:"created_at_min,omitzero" help:"When it was added, at the earliest, which is up to 120 days ago" optional:""`
CreatedAtMax time.Time `json:"created_at_max,omitzero" help:"When it was added, at the latest" optional:""`
UpdatedAtMin time.Time `json:"updated_at_min,omitzero" help:"When it last changed, at the earliest" optional:""`
UpdatedAtMax time.Time `json:"updated_at_max,omitzero" help:"When it last changed, at the latest" optional:""`
ReturnToSender *bool `json:"return_to_sender,omitempty" help:"Whether it's returned to its sender" optional:""`
ShipmentTags []string `json:"shipment_tags,omitempty" help:"Tags of shipments" optional:""`
OrderID []string `json:"order_id,omitempty" help:"Identifiers of orders" optional:""`
Fields []string `` /* 129-byte string literal not displayed */
Cursor string `json:"cursor,omitempty" help:"The next_cursor of the page before" optional:""`
Limit uint64 `json:"limit,omitempty" help:"Most trackings to return, which is 100 when it isn't given" min:"1" max:"200" optional:""`
}
ListTrackingsRequest selects trackings, and a page of them
func (*ListTrackingsRequest) Values ¶
func (r *ListTrackingsRequest) Values() url.Values
Values returns the request as URL query parameters
type Mile ¶
type Mile struct {
TrackingNumber string `json:"tracking_number,omitempty" help:"Tracking number of the courier"`
Slug string `json:"slug,omitempty" help:"Code of the courier"`
TransitTime *int `json:"transit_time,omitempty" readonly:""`
CourierTrackingLink string `json:"courier_tracking_link,omitempty" readonly:""`
CourierRedirectLink string `json:"courier_redirect_link,omitempty" readonly:""`
Source string `json:"source,omitempty" readonly:""`
}
Mile is the first, or last, part of a shipment, which can be another courier's
type MultiPiece ¶
type MultiPiece struct {
Type string `json:"type,omitempty"`
Pieces []struct {
TrackingID string `json:"tracking_id,omitempty"`
TrackingNumber string `json:"tracking_number,omitempty"`
Type string `json:"type,omitempty"`
Trackable bool `json:"trackable,omitempty"`
} `json:"pieces,omitempty"`
}
MultiPiece is the packages of a shipment which has more than one
type Pagination ¶
type Pagination struct {
Total int `json:"total"`
NextCursor string `json:"next_cursor,omitempty"`
HasNextPage bool `json:"has_next_page,omitempty"`
}
Pagination is how many there are, and the cursor of the next page, when there is one
type PromisedDate ¶
type PromisedDate struct {
Date string `json:"promised_delivery_date,omitempty" help:"When it's promised, such as 2026-11-30"`
DateMin string `json:"promised_delivery_date_min,omitempty" help:"The earliest it's promised"`
DateMax string `json:"promised_delivery_date_max,omitempty" help:"The latest it's promised"`
}
PromisedDate is the day a shipment is promised to be delivered, or between
type Tag ¶
type Tag string
Tag is the status of a tracking, or of a checkpoint
const ( TagPending Tag = "Pending" // added, without information yet TagInfoReceived Tag = "InfoReceived" // the courier has been told, and hasn't it yet TagInTransit Tag = "InTransit" // on its way TagOutForDelivery Tag = "OutForDelivery" // about to be delivered TagAttemptFail Tag = "AttemptFail" // couldn't be delivered, and will usually be tried again TagDelivered Tag = "Delivered" // delivered TagAvailableForPickup Tag = "AvailableForPickup" // can be picked up TagException Tag = "Exception" // something's wrong, such as customs, or it's returned TagExpired Tag = "Expired" // without information for some time )
The statuses of a tracking, and of a checkpoint
type Tracking ¶
type Tracking struct {
ID string `json:"id"`
LegacyID string `json:"legacy_id,omitempty"`
CreatedAt time.Time `json:"created_at,omitzero"`
UpdatedAt time.Time `json:"updated_at,omitzero"`
TrackingNumber string `json:"tracking_number"`
Slug string `json:"slug,omitempty"` // the courier's code
Title string `json:"title,omitempty"`
Note string `json:"note,omitempty"`
Language string `json:"language,omitempty"`
Source string `json:"source,omitempty"`
Active bool `json:"active"` // whether it's still tracked
TrackedCount float64 `json:"tracked_count,omitempty"`
// Its status, and what's happened
Tag Tag `json:"tag,omitempty"`
Subtag string `json:"subtag,omitempty"`
SubtagMessage string `json:"subtag_message,omitempty"`
Checkpoints []Checkpoint `json:"checkpoints,omitempty"`
ReturnToSender bool `json:"return_to_sender,omitempty"`
FailedDeliveryAttempts int `json:"failed_delivery_attempts,omitempty"`
SignedBy string `json:"signed_by,omitempty"`
SignatureRequirement string `json:"signature_requirement,omitempty"`
ProofOfDelivery []Proof `json:"proof_of_delivery,omitempty"`
// When it's shipped, and delivered
TransitTime *int `json:"transit_time,omitempty"` // days, or nil before it's picked up
TrackingShipDate string `json:"tracking_ship_date,omitempty"`
ShipmentPickupDate string `json:"shipment_pickup_date,omitempty"`
FirstAttemptedAt string `json:"first_attempted_at,omitempty"`
ShipmentDelivery string `json:"shipment_delivery_date,omitempty"`
OnTimeStatus string `json:"on_time_status,omitempty"`
OnTimeDifference float64 `json:"on_time_difference,omitempty"` // days
FirstEstimated *EstimatedTime `json:"first_estimated_delivery,omitempty"`
LatestEstimated *EstimatedTime `json:"latest_estimated_delivery,omitempty"`
CustomEstimated *EstimatedTime `json:"custom_estimated_delivery_date,omitempty"`
CourierEstimated *EstimatedDate `json:"courier_estimated_delivery_date,omitempty"`
AfterShipEstimated *EstimatedDate `json:"aftership_estimated_delivery_date,omitempty"`
OrderPromised *PromisedDate `json:"order_promised_delivery_date,omitempty"`
DeliveryType string `json:"delivery_type,omitempty"`
DeliveryLocation string `json:"delivery_location_type,omitempty"`
PickupLocation string `json:"pickup_location,omitempty"`
PickupNote string `json:"pickup_note,omitempty"`
ShippingMethod string `json:"shipping_method,omitempty"`
ShipmentDirection string `json:"shipment_direction,omitempty"` // forward, or return
ReturnShipment *LinkedShipment `json:"return_shipment,omitempty"`
ForwardShipment *LinkedShipment `json:"forward_shipment,omitempty"`
FirstMile *Mile `json:"first_mile,omitempty"`
LastMile *Mile `json:"last_mile,omitempty"`
CourierTrackingLink string `json:"courier_tracking_link,omitempty"`
CourierRedirectLink string `json:"courier_redirect_link,omitempty"`
TrackingURL string `json:"aftership_tracking_url,omitempty"`
OrderTrackingURL string `json:"aftership_tracking_order_url,omitempty"`
MultiPiece *MultiPiece `json:"multi_piece_info,omitempty"`
Type string `json:"shipment_type,omitempty"` // the courier's service
PackageCount float64 `json:"shipment_package_count,omitempty"`
Weight *Quantity `json:"shipment_weight,omitempty"`
Dimensions *Dimensions `json:"shipment_dimensions,omitempty"`
CarbonEmissions *Quantity `json:"carbon_emissions,omitempty"`
ShipmentTags []string `json:"shipment_tags,omitempty"`
// Where it's from, and to
OriginCountryRegion string `json:"origin_country_region,omitempty"`
OriginState string `json:"origin_state,omitempty"`
OriginCity string `json:"origin_city,omitempty"`
OriginPostalCode string `json:"origin_postal_code,omitempty"`
OriginRawLocation string `json:"origin_raw_location,omitempty"`
DestinationCountryRegion string `json:"destination_country_region,omitempty"`
DestinationState string `json:"destination_state,omitempty"`
DestinationCity string `json:"destination_city,omitempty"`
DestinationPostalCode string `json:"destination_postal_code,omitempty"`
DestinationRawLocation string `json:"destination_raw_location,omitempty"`
CourierDestinationCountryRegion string `json:"courier_destination_country_region,omitempty"`
LocationID string `json:"location_id,omitempty"`
// Its order, and who it's for
OrderID string `json:"order_id,omitempty"`
OrderIDPath string `json:"order_id_path,omitempty"`
OrderNumber string `json:"order_number,omitempty"`
OrderDate string `json:"order_date,omitempty"`
OrderTags []string `json:"order_tags,omitempty"`
CustomFields map[string]string `json:"custom_fields,omitempty"`
Customers []Customer `json:"customers,omitempty"`
SubscribedEmails []string `json:"subscribed_emails,omitempty"`
SubscribedSmses []string `json:"subscribed_smses,omitempty"`
// What the courier needs to track it
TrackingAccountNumber string `json:"tracking_account_number,omitempty"`
TrackingKey string `json:"tracking_key,omitempty"`
CourierConnectionID string `json:"courier_connection_id,omitempty"`
}
Tracking is a shipment which is tracked. A time which the courier gives is text, as it can be a date, or a time without a time zone.
type TrackingList ¶
type TrackingList struct {
Pagination Pagination `json:"pagination"`
Trackings []Tracking `json:"trackings"`
}
TrackingList is a page of trackings, and how many there are
func (TrackingList) String ¶
func (l TrackingList) String() string
type TrackingMeta ¶
type TrackingMeta struct {
Slug *string `json:"slug,omitempty" help:"Code of the courier, such as dhl, which is detected when it isn't given" optional:""`
Title *string `json:"title,omitempty" help:"What it's called, which is its tracking number when it isn't given" optional:""`
Note *string `json:"note,omitempty" help:"A note, or empty, to remove it" optional:""`
Language *string `json:"language,omitempty" help:"Language of who it's for, such as en" optional:""`
OrderID *string `json:"order_id,omitempty" help:"Identifier of its order" optional:""`
OrderIDPath *string `json:"order_id_path,omitempty" help:"URL of its order" optional:""`
OrderNumber *string `json:"order_number,omitempty" help:"Number of its order" optional:""`
OrderDate *string `json:"order_date,omitempty" help:"When it was ordered, such as 2026-11-24T11:23:51+01:00" optional:""`
OrderPromised *PromisedDate `json:"order_promised_delivery_date,omitempty" help:"When it's promised" optional:""`
DeliveryType *string `json:"delivery_type,omitempty" enum:"pickup_at_store,pickup_at_courier,door_to_door" help:"How it's delivered" optional:""`
PickupLocation *string `json:"pickup_location,omitempty" help:"Where it's picked up" optional:""`
PickupNote *string `json:"pickup_note,omitempty" help:"A note about where it's picked up" optional:""`
ShipmentType *string `json:"shipment_type,omitempty" help:"The courier's service" optional:""`
ShipmentDirection *string `json:"shipment_direction,omitempty" enum:"forward,return" help:"Whether it's sent, or returned" optional:""`
ShippingMethod *string `json:"shipping_method,omitempty" help:"How it's sent, as it was chosen, such as express" optional:""`
TrackingAccountNumber *string `json:"tracking_account_number,omitempty" help:"The sender's account, which some couriers need" optional:""`
TrackingKey *string `json:"tracking_key,omitempty" help:"A key, which some couriers need" optional:""`
TrackingShipDate *string `json:"tracking_ship_date,omitempty" help:"When it's sent, such as 2026-11-24, which some couriers need" optional:""`
OriginCountryRegion *string `json:"origin_country_region,omitempty" help:"Country it's from, such as DEU" optional:""`
OriginState *string `json:"origin_state,omitempty" help:"State it's from" optional:""`
OriginCity *string `json:"origin_city,omitempty" help:"City it's from" optional:""`
OriginPostalCode *string `json:"origin_postal_code,omitempty" help:"Postal code it's from" optional:""`
OriginRawLocation *string `json:"origin_raw_location,omitempty" help:"Address it's from" optional:""`
DestinationCountryRegion *string `json:"destination_country_region,omitempty" help:"Country it's to, such as DEU, which some couriers need" optional:""`
DestinationState *string `json:"destination_state,omitempty" help:"State it's to, which some couriers need" optional:""`
DestinationCity *string `json:"destination_city,omitempty" help:"City it's to" optional:""`
DestinationPostalCode *string `json:"destination_postal_code,omitempty" help:"Postal code it's to, which some couriers need" optional:""`
DestinationRawLocation *string `json:"destination_raw_location,omitempty" help:"Address it's to" optional:""`
LocationID *string `json:"location_id,omitempty" help:"Identifier of the location it's sent from, rather than its address" optional:""`
CustomFields map[string]string `json:"custom_fields,omitempty" help:"Other fields, which shouldn't have personal information" optional:""`
Customers []Customer `json:"customers,omitempty" help:"Who it's for, of whom there can be three" optional:""`
}
TrackingMeta is what can be set of a tracking, and changed. When it's changed, what's nil stays as it was.
type UpdateTrackingRequest ¶
type UpdateTrackingRequest struct {
TrackingMeta
}
UpdateTrackingRequest is what's changed of a tracking