Documentation
¶
Overview ¶
Package shipping provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func NewDeprecatedShipmentRequest(server string, deprecatedVersion string, params *DeprecatedShipmentParams, ...) (*http.Request, error)
- func NewDeprecatedShipmentRequestWithBody(server string, deprecatedVersion string, params *DeprecatedShipmentParams, ...) (*http.Request, error)
- func NewDeprecatedVoidShipmentRequest(server string, deprecatedVersion string, shipmentidentificationnumber string, ...) (*http.Request, error)
- func NewLabelRecoveryOpRequest(server string, version string, params *LabelRecoveryOpParams, ...) (*http.Request, error)
- func NewLabelRecoveryOpRequestWithBody(server string, version string, params *LabelRecoveryOpParams, ...) (*http.Request, error)
- func NewShipmentOpRequest(server string, version string, params *ShipmentOpParams, ...) (*http.Request, error)
- func NewShipmentOpRequestWithBody(server string, version string, params *ShipmentOpParams, contentType string, ...) (*http.Request, error)
- func NewVoidShipmentOpRequest(server string, version string, shipmentidentificationnumber string, ...) (*http.Request, error)
- type AddressPOE
- type AdjustedHeightUnitOfMeasurement
- type AgentTaxIdentificationNumberTaxIdentificationNumber
- type AlternateDeliveryAddressAddress
- type BillReceiverAddress
- type BillShipperCreditCard
- type BillThirdPartyAddress
- type BillingWeightUnitOfMeasurement
- type CN22ContentCN22ContentWeight
- type CN22ContentCN22DDSReferenceNumber
- type CN22ContentWeightUnitOfMeasurement
- type CN22FormCN22Content
- type CODCODAmount
- type CODTurnInPageImage
- type CODTurnInPageImageImageFormat
- type ChildLTLCharges
- type ChildLTLPackage
- type ChildProduct
- type ChildProductUnitOfMeasure
- type Client
- func (c *Client) DeprecatedShipment(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) DeprecatedShipmentWithBody(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) DeprecatedVoidShipment(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) LabelRecoveryOp(ctx context.Context, version string, params *LabelRecoveryOpParams, ...) (*http.Response, error)
- func (c *Client) LabelRecoveryOpWithBody(ctx context.Context, version string, params *LabelRecoveryOpParams, ...) (*http.Response, error)
- func (c *Client) ShipmentOp(ctx context.Context, version string, params *ShipmentOpParams, ...) (*http.Response, error)
- func (c *Client) ShipmentOpWithBody(ctx context.Context, version string, params *ShipmentOpParams, ...) (*http.Response, error)
- func (c *Client) VoidShipmentOp(ctx context.Context, version string, shipmentidentificationnumber string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeprecatedShipmentWithBodyWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedShipmentResponse, error)
- func (c *ClientWithResponses) DeprecatedShipmentWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedShipmentResponse, error)
- func (c *ClientWithResponses) DeprecatedVoidShipmentWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedVoidShipmentResponse, error)
- func (c *ClientWithResponses) LabelRecoveryOpWithBodyWithResponse(ctx context.Context, version string, params *LabelRecoveryOpParams, ...) (*LabelRecoveryOpResponse, error)
- func (c *ClientWithResponses) LabelRecoveryOpWithResponse(ctx context.Context, version string, params *LabelRecoveryOpParams, ...) (*LabelRecoveryOpResponse, error)
- func (c *ClientWithResponses) ShipmentOpWithBodyWithResponse(ctx context.Context, version string, params *ShipmentOpParams, ...) (*ShipmentOpResponse, error)
- func (c *ClientWithResponses) ShipmentOpWithResponse(ctx context.Context, version string, params *ShipmentOpParams, ...) (*ShipmentOpResponse, error)
- func (c *ClientWithResponses) VoidShipmentOpWithResponse(ctx context.Context, version string, shipmentidentificationnumber string, ...) (*VoidShipmentOpResponse, error)
- type ClientWithResponsesInterface
- type CommodityNMFC
- type CommonErrorResponse
- type ContactsForwardAgent
- type ContactsIntermediateConsignee
- type ContactsProducer
- type ContactsSoldTo
- type ContactsUltimateConsignee
- type ControlLogReceiptImageFormat
- type CreditCardAddress
- type DDTCInformationUnitOfMeasurement
- type DeclaredValueType
- type DeprecatedShipmentJSONRequestBody
- type DeprecatedShipmentParams
- type DeprecatedShipmentResponse
- type DeprecatedVoidShipmentParams
- type DeprecatedVoidShipmentResponse
- type DimWeightUnitOfMeasurement
- type DimensionsUnitOfMeasurement
- type DryIceDryIceWeight
- type DryIceWeightUnitOfMeasurement
- type EEIFilingOptionShipperFiled
- type EEIFilingOptionUPSFiled
- type EEIInformationDDTCInformation
- type EEIInformationLicense
- type ErrorMessage
- type ErrorResponse
- type FRSPaymentInformationAddress
- type FRSPaymentInformationType
- type FRSShipmentDataFreightDensityRate
- type FRSShipmentDataHandlingUnits
- type FRSShipmentDataTransportationCharges
- type FormImage
- type ForwardAgentAddress
- type FreightDensityInfoAdjustedHeight
- type FreightDensityInfoHandlingUnits
- type FreightShipmentInformationFreightDensityInfo
- type GlobalTaxInformationAgentTaxIdentificationNumber
- type HandlingUnitsAdjustedHeight
- type HandlingUnitsDimensions
- type HandlingUnitsType
- type HandlingUnitsUnitOfMeasurement
- type HighValueReportImage
- type HighValueReportImageImageFormat
- type HttpRequestDoer
- type ImageImageFormat
- type IntermediateConsigneeAddress
- type InternationalFormsBlanketPeriod
- type InternationalFormsCN22Form
- type InternationalFormsContacts
- type InternationalFormsDiscount
- type InternationalFormsEEIFilingOption
- type InternationalFormsFreightCharges
- type InternationalFormsInsuranceCharges
- type InternationalFormsOtherCharges
- type InternationalFormsProduct
- type InternationalFormsProductIdentifier
- type InternationalFormsUPSPremiumCareForm
- type InternationalFormsUserCreatedForm
- type LABELRECOVERYRequestWrapper
- type LABELRECOVERYResponseWrapper
- type LRCODTurnInPageImage
- type LRCODTurnInPageImageImageFormat
- type LRFormImage
- type LRRequestTransactionReference
- type LRResponseResponseStatus
- type LRResponseTransactionReference
- type LTLDimensions
- type LTLDimensionsUnitOfMeasurement
- type LTLHandlingUnits
- type LTLHandlingUnitsFreightClass
- type LTLHandlingUnitsType
- type LTLOtherCharges
- type LTLPackageWeightType
- type LTLPackageWeightTypeUnitOfMeasurement
- type LTLReferenceNumber
- type LTLReferenceNumberCode
- type LabelDeliveryEMail
- type LabelImageLabelImageFormat
- type LabelRecoveryFormImage
- type LabelRecoveryImageImageFormat
- type LabelRecoveryLabelSpecificationLabelImageFormat
- type LabelRecoveryLabelSpecificationLabelStockSize
- type LabelRecoveryOpJSONRequestBody
- type LabelRecoveryOpParams
- type LabelRecoveryOpResponse
- type LabelRecoveryRequest
- type LabelRecoveryRequestLabelDelivery
- type LabelRecoveryRequestLabelSpecification
- type LabelRecoveryRequestReferenceValues
- type LabelRecoveryRequestRequest
- type LabelRecoveryRequestTranslate
- type LabelRecoveryRequestUPSPremiumCareForm
- type LabelRecoveryResponse
- type LabelRecoveryResponseCODTurnInPage
- type LabelRecoveryResponseForm
- type LabelRecoveryResponseHighValueReport
- type LabelRecoveryResponseLabelResults
- type LabelRecoveryResponseResponse
- type LabelRecoveryResponseTrackingCandidate
- type LabelResultsForm
- type LabelResultsLabelImage
- type LabelResultsMailInnovationsLabelImage
- type LabelResultsReceipt
- type LabelSpecificationInstruction
- type LabelSpecificationLabelImageFormat
- type LabelSpecificationLabelStockSize
- type MailInnovationsLabelImageLabelImageFormat
- type MasterPickup
- type MasterSoldTo
- type MasterTradeComplianceDetails
- type MasterTradeComplianceDetailsDeclarationStatement
- type MasterTradeComplianceDetailsTermsOfShipment
- type NegotiatedChargesItemizedCharges
- type NegotiatedChargesRateModifier
- type NegotiatedRateChargesItemizedCharges
- type NegotiatedRateChargesRateModifier
- type NegotiatedRateChargesTaxCharges
- type NegotiatedRateChargesTotalCharge
- type NegotiatedRateChargesTotalChargesWithTaxes
- type NotificationEMail
- type NotificationLocale
- type NotificationTextMessage
- type NotificationVoiceMessage
- type PackageCommodity
- type PackageDimWeight
- type PackageDimensions
- type PackageHazMatPackageInformation
- type PackageLevelResultsStatus
- type PackagePackageServiceOptions
- type PackagePackageWeight
- type PackagePackaging
- type PackageReferenceNumber
- type PackageResultsAccessorial
- type PackageResultsBaseServiceCharge
- type PackageResultsForm
- type PackageResultsItemizedCharges
- type PackageResultsNegotiatedCharges
- type PackageResultsRateModifier
- type PackageResultsServiceOptionsCharges
- type PackageResultsShippingLabel
- type PackageResultsShippingReceipt
- type PackageResultsSimpleRate
- type PackageServiceOptionsAccessPointCOD
- type PackageServiceOptionsCOD
- type PackageServiceOptionsCODCODAmount
- type PackageServiceOptionsDeclaredValue
- type PackageServiceOptionsDeliveryConfirmation
- type PackageServiceOptionsDryIce
- type PackageServiceOptionsHazMat
- type PackageServiceOptionsHealthcare
- type PackageServiceOptionsNotification
- type PackageServiceOptionsNotificationEMail
- type PackageSimpleRate
- type PackageUPSPremier
- type PackageWeightUnitOfMeasurement
- type PackingListInfoPackageAssociated
- type PaymentInformationShipmentCharge
- type PreAlertNotificationEMailMessage
- type PreAlertNotificationLocale
- type PreAlertNotificationTextMessage
- type PreAlertNotificationVoiceMessage
- type ProducerAddress
- type ProducerPhone
- type ProductDDSReferenceNumber
- type ProductEEIInformation
- type ProductExcludeFromForm
- type ProductNetCostDateRange
- type ProductPackingListInfo
- type ProductProductWeight
- type ProductScheduleB
- type ProductUnit
- type ProductWeightUnitOfMeasurement
- type ReceiptImage
- type ReceiptImageImageFormat
- type ReceiptSpecificationImageFormat
- type ReferenceValuesReferenceNumber
- type RequestEditorFn
- type RequestTransactionReference
- type ResponseAlert
- type ResponseResponseStatus
- type ResponseTransactionReference
- type SHIPRequestWrapper
- type SHIPResponseWrapper
- type ScheduleBUnitOfMeasurement
- type ShipFromAddress
- type ShipFromPhone
- type ShipFromTaxIDType
- type ShipFromVendorInfo
- type ShipToAddress
- type ShipToPhone
- type ShipmentAlternateDeliveryAddress
- type ShipmentChargeBillReceiver
- type ShipmentChargeBillShipper
- type ShipmentChargeBillThirdParty
- type ShipmentChargesBaseServiceCharge
- type ShipmentChargesItemizedCharges
- type ShipmentChargesServiceOptionsCharges
- type ShipmentChargesTaxCharges
- type ShipmentChargesTotalCharges
- type ShipmentChargesTotalChargesWithTaxes
- type ShipmentChargesTransportationCharges
- type ShipmentDGSignatoryInfo
- type ShipmentFRSPaymentInformation
- type ShipmentFreightShipmentInformation
- type ShipmentGlobalTaxInformation
- type ShipmentInvoiceLineTotal
- type ShipmentOpJSONRequestBody
- type ShipmentOpParams
- type ShipmentOpResponse
- type ShipmentPackage
- type ShipmentPaymentInformation
- type ShipmentPromotionalDiscountInformation
- type ShipmentReferenceNumber
- type ShipmentRequest
- type ShipmentRequestLabelSpecification
- type ShipmentRequestReceiptSpecification
- type ShipmentRequestRequest
- type ShipmentRequestShipment
- type ShipmentResponse
- type ShipmentResponseResponse
- type ShipmentResponseShipmentResults
- type ShipmentResultsBillingWeight
- type ShipmentResultsCODTurnInPage
- type ShipmentResultsControlLogReceipt
- type ShipmentResultsDisclaimer
- type ShipmentResultsFRSShipmentData
- type ShipmentResultsForm
- type ShipmentResultsFormImage
- type ShipmentResultsHighValueReport
- type ShipmentResultsImageImageFormat
- type ShipmentResultsNegotiatedRateCharges
- type ShipmentResultsPackageResults
- type ShipmentResultsPalletLabel
- type ShipmentResultsShipmentCharges
- type ShipmentReturnService
- type ShipmentService
- type ShipmentServiceOptionsAccessPointCOD
- type ShipmentServiceOptionsCOD
- type ShipmentServiceOptionsDeliveryConfirmation
- type ShipmentServiceOptionsInternationalForms
- type ShipmentServiceOptionsLabelDelivery
- type ShipmentServiceOptionsLabelMethod
- type ShipmentServiceOptionsNotification
- type ShipmentServiceOptionsPreAlertNotification
- type ShipmentServiceOptionsRestrictedArticles
- type ShipmentServiceOptionsVerifiedDelivery
- type ShipmentShipFrom
- type ShipmentShipTo
- type ShipmentShipmentIndicationType
- type ShipmentShipmentRatingOptions
- type ShipmentShipmentServiceOptions
- type ShipmentShipper
- type ShipmentTradeDirect
- type ShipmentTradeDirectShipmentType
- type ShipmentWorldEase
- type ShipmentWorldEaseMasterShipmentChgType
- type ShipperAddress
- type ShipperPhone
- type ShippingLabelImageFormat
- type ShippingReceiptImageFormat
- type SoldToAddress
- type SoldToPhone
- type SummaryResultStatus
- type TrackingCandidatePickupDateRange
- type TradeDirectAddress
- type TradeDirectChild
- type TradeDirectChildType
- type TradeDirectMaster
- type TradeDirectMasterUomType
- type TradeDirectNotificationBeforeDelivery
- type TradeDirectNotificationBeforeDeliveryMediaTypeCode
- type TradeDirectNotificationBeforeDeliveryRequestType
- type TradeDirectPhone
- type TransportationChargesDiscountAmount
- type TransportationChargesGrossCharge
- type TransportationChargesNetCharge
- type UPSFiledPOA
- type UPSPremierHandlingInstructions
- type UPSPremiumCareFormLanguageForUPSPremiumCare
- type UltimateConsigneeAddress
- type UltimateConsigneeUltimateConsigneeType
- type UnitUnitOfMeasurement
- type VOIDSHIPMENTResponseWrapper
- type VoidResponseResponseStatus
- type VoidResponseTransactionReference
- type VoidShipmentOpParams
- type VoidShipmentOpResponse
- type VoidShipmentResponse
- type VoidShipmentResponsePackageLevelResults
- type VoidShipmentResponseResponse
- type VoidShipmentResponseSummaryResult
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeprecatedShipmentRequest ¶
func NewDeprecatedShipmentRequest(server string, deprecatedVersion string, params *DeprecatedShipmentParams, body DeprecatedShipmentJSONRequestBody) (*http.Request, error)
NewDeprecatedShipmentRequest calls the generic DeprecatedShipment builder with application/json body
func NewDeprecatedShipmentRequestWithBody ¶
func NewDeprecatedShipmentRequestWithBody(server string, deprecatedVersion string, params *DeprecatedShipmentParams, contentType string, body io.Reader) (*http.Request, error)
NewDeprecatedShipmentRequestWithBody generates requests for DeprecatedShipment with any type of body
func NewDeprecatedVoidShipmentRequest ¶
func NewDeprecatedVoidShipmentRequest(server string, deprecatedVersion string, shipmentidentificationnumber string, params *DeprecatedVoidShipmentParams) (*http.Request, error)
NewDeprecatedVoidShipmentRequest generates requests for DeprecatedVoidShipment
func NewLabelRecoveryOpRequest ¶
func NewLabelRecoveryOpRequest(server string, version string, params *LabelRecoveryOpParams, body LabelRecoveryOpJSONRequestBody) (*http.Request, error)
NewLabelRecoveryOpRequest calls the generic LabelRecoveryOp builder with application/json body
func NewLabelRecoveryOpRequestWithBody ¶
func NewLabelRecoveryOpRequestWithBody(server string, version string, params *LabelRecoveryOpParams, contentType string, body io.Reader) (*http.Request, error)
NewLabelRecoveryOpRequestWithBody generates requests for LabelRecoveryOp with any type of body
func NewShipmentOpRequest ¶
func NewShipmentOpRequest(server string, version string, params *ShipmentOpParams, body ShipmentOpJSONRequestBody) (*http.Request, error)
NewShipmentOpRequest calls the generic ShipmentOp builder with application/json body
func NewShipmentOpRequestWithBody ¶
func NewShipmentOpRequestWithBody(server string, version string, params *ShipmentOpParams, contentType string, body io.Reader) (*http.Request, error)
NewShipmentOpRequestWithBody generates requests for ShipmentOp with any type of body
func NewVoidShipmentOpRequest ¶
func NewVoidShipmentOpRequest(server string, version string, shipmentidentificationnumber string, params *VoidShipmentOpParams) (*http.Request, error)
NewVoidShipmentOpRequest generates requests for VoidShipmentOp
Types ¶
type AddressPOE ¶
type AddressPOE struct {
// AddressLine Address Line
AddressLine []string `json:"AddressLine"`
// City City
City string `json:"City"`
// CountryCode Country code
CountryCode string `json:"CountryCode"`
// PostalCode Postal code
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode The code of the address's admininstrative division (state, province, distict, prefecture, etc...). Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
AddressPOE defines model for Address_POE.
type AdjustedHeightUnitOfMeasurement ¶
type AdjustedHeightUnitOfMeasurement struct {
// Code Code associated with Unit of Measurement for the Adjusted height.
// Valid value: IN Unit of measurement code for Adjusted height is validated only when Handling unit type is SKD = Skid or PLT = Pallet.
Code string `json:"Code"`
// Description Description for UnitOfMeasurement for the adjusted height.
Description *string `json:"Description,omitempty"`
}
AdjustedHeightUnitOfMeasurement Container for UnitOfMeasurement for the adjusted height.
type AgentTaxIdentificationNumberTaxIdentificationNumber ¶
type AgentTaxIdentificationNumberTaxIdentificationNumber struct {
// IDNumberCustomerRole A business or individual identification type description (Future Use).specifies the relationship of the customer/ID Number to the shipment 05 =importer Address, 06=Exporter Address , 18=DeliverTo/Consignee/Reciever Address, 37= Shipper Address.
IDNumberCustomerRole string `json:"IDNumberCustomerRole"`
// IDNumberEncryptionIndicator to determine if decryption is required. 0 = Identification number is not
// Encrypted
// 1 = Identification number is
// Encrypted
IDNumberEncryptionIndicator string `json:"IDNumberEncryptionIndicator"`
// IDNumberIssuingCntryCd The ISO-defined country code of the country where the Identification Number was issued, when applicable (as per business requirements). Needed for certain types of Identification Numbers (e.g., Passport Number).
// Sample Values: 'ID' = Indonesia,
// 'VN' = Vietnam,
// 'DE' = Germany
IDNumberIssuingCntryCd *string `json:"IDNumberIssuingCntryCd,omitempty"`
// IDNumberPurposeCode Code that specifies the purpose of the Identification Number. For all tax ID that are not EORI = ‘01’
// Valid values:
// 00/ Spaces = Unknown
// 01= Customs/Brokerage (Default)
// 02= Customs/Brokerage EORI
// 99= Other
IDNumberPurposeCode string `json:"IDNumberPurposeCode"`
// IDNumberRequestingCntryCd The ISO-defined country code of the country whose regulatory agency is requesting the Identification Number.
// Typically for Import, the Consignee ID is requested by the Ship To country
// For export, the Shipper ID is requested by the Ship From country.
//
// Required when a country (e.g., Origin country, Destination country) is requesting an ID Number for a shipment.
IDNumberRequestingCntryCd *string `json:"IDNumberRequestingCntryCd,omitempty"`
// IDNumberTypeCode Valid Values are:
// 0000 = Unknown
// IDNumberTypeCode equal to ‘0000’ (unknown) is to be used when an ‘ID Number Type’ is not applicable, or when the front-end/client system cannot determine the type of IdentificationNumber (for any reason).
// 0001 = Exporter Tax ID Number
// 0002 = Importer Tax ID Number or
// EORI Number – When
// IdentificationNumberPurposeCode
// = 02
// 0005 = Personal Tax ID Number
// 1001 = Other / Free Form
// 1002 = Company/Business Tax ID Number
// 1003 = National ID Number
// 1004 = Passport Number
// 1005 = Personal ID Number
// 1006 = Phone Number
IDNumberTypeCode string `json:"IDNumberTypeCode"`
// IdentificationNumber The code or number that a shipper or consignee has registered with a particular country’s authority for doing business, or for identification purposes.
IdentificationNumber string `json:"IdentificationNumber"`
// IncludeIDNumberOnShippingBrokerageDocs field to determine if the Identification Number should be excluded from Shipping/Brokerage documents (not be passed to Document Services) ‘00’ -> Do Not include 01-> Include.
IncludeIDNumberOnShippingBrokerageDocs *string `json:"IncludeIDNumberOnShippingBrokerageDocs,omitempty"`
}
AgentTaxIdentificationNumberTaxIdentificationNumber The value for flexibility and future extensibility of these Identification Numberrequirements,the recommendation is to support up to eight Identification Numbers per shipment party/role.
type AlternateDeliveryAddressAddress ¶
type AlternateDeliveryAddressAddress struct {
// AddressLine Address Line of the Retail Location.
AddressLine []string `json:"AddressLine"`
// City Retail Location City.
City string `json:"City"`
// CountryCode Retail Location country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode If the Alternate Delivery Address country or territory is US or Puerto Rico, 5 or 9 digits are required. The character - may be used to separate the first five digits and the last four digits. If the Alternate Delivery Address country or territory is CA, then the postal code is required and must be 6 alphanumeric characters whose format is A#A#A# where A is an uppercase letter and # is a digit. Otherwise optional. For all other countries or territories the postal code is optional and must be no more than 9 alphanumeric characters long.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode Retail Location state or province code. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
AlternateDeliveryAddressAddress Address Container.
type BillReceiverAddress ¶
type BillReceiverAddress struct {
// PostalCode The postal code for the UPS accounts pickup address. The pickup postal code was entered in the UPS system when the account was set-up. The postal code must be the same as the UPS Bill Receiver account number pickup address postal code.
//
// Required for United States and Canadian UPS accounts and/or if the UPS account pickup address has a postal code.
// If the UPS accounts pickup country or territory is US or Puerto Rico, the postal code is 5 or 9 digits.
//
// The character - may be used to separate the first five digits and the last four digits.
//
// If the UPS accounts pickup country or territory is CA, the postal code is 6 alphanumeric characters whose format is A#A#A# where A is an uppercase letter and # is a digit
PostalCode *string `json:"PostalCode,omitempty"`
}
BillReceiverAddress Container for additional information for the bill receiver's UPS accounts address.
type BillShipperCreditCard ¶
type BillShipperCreditCard struct {
// Address Container to hold the Credit card Billing Address. It is required to provide billing address if credit card information is provided and when the ShipFrom country or territory is the US, PR, and CA.
Address *CreditCardAddress `json:"Address,omitempty"`
// ExpirationDate Format is MMYYYY where MM is the 2 digit month and YYYY is the 4 digit year. Valid month values are 01-12 and valid year values are Present Year - (Present Year + 10 years)
ExpirationDate string `json:"ExpirationDate"`
// Number Credit Card number.
Number string `json:"Number"`
// SecurityCode Three or four digits that can be found either on top of credit card number or on the back of credit card. Number of digits varies for different type of credit card. Valid values are 3 or 4 digits. It is required to provide the security code if credit card information is provided and when the ShipFrom countries or territories are other than the below mentioned countries or territories. Argentina, Bahamas, Costa Rica, Dominican Republic, Guatemala, Panama, Puerto Rico and Russia.
SecurityCode string `json:"SecurityCode"`
// Type Valid values:
// - 01 = American Express
// - 03 = Discover
// - 04 = MasterCard
// - 05 = Optima
// - 06 = VISA
// - 07 = Bravo
// - 08 = Diners Club
// - 13 = Dankort
// - 14 = Hipercard
// - 15 = JCB
// - 17 = Postepay
// - 18 = UnionPay/ExpressPay
// - 19 = Visa Electron
// - 20 = VPAY
// - 21 = Carte Bleue
Type string `json:"Type"`
}
BillShipperCreditCard Credit card information container. Required if neither of the following is present:
/ShipmentRequest/Shipment/PaymentInformation/ShipmentCharge/BillShipper/AccountNumber or /ShipmentRequest/Shipment/PaymentInformation/ShipmentCharge/BillShipper/AlternatePaymentMethod.
Credit card payment is valid for shipments without return service only.
type BillThirdPartyAddress ¶
type BillThirdPartyAddress struct {
// CountryCode The country or territory code for the UPS accounts pickup address.
CountryCode string `json:"CountryCode"`
// PostalCode The postal code for the UPS accounts pickup address. The pickup postal code is the one that was entered in the UPS system when the account was set-up. The postal code must be the same as the UPS Bill Third Party account number pickup address postal code.
//
// Required for United States and Canadian UPS accounts and/or if the UPS account pickup address has a postal code.
// If the UPS accounts pickup country or territory is US or Puerto Rico, the postal code is 5 or 9 digits.
//
// The character - may be used to separate the first five digits and the last four digits.
//
// If the UPS accounts pickup country or territory is CA, the postal code is 6 alphanumeric characters whose format is A#A#A# where A is an uppercase letter and # is a digit.
PostalCode *string `json:"PostalCode,omitempty"`
}
BillThirdPartyAddress Container for additional information for the third party UPS accounts address.
type BillingWeightUnitOfMeasurement ¶
type BillingWeightUnitOfMeasurement struct {
// Code Code of the billing weight measurement units. Values are: KGS or LBS.
Code string `json:"Code"`
// Description Description of the billing weight measurement units.
Description *string `json:"Description,omitempty"`
}
BillingWeightUnitOfMeasurement Billing weight unit of measurement code. The unit of measurement used in Shipment request is returned.
type CN22ContentCN22ContentWeight ¶
type CN22ContentCN22ContentWeight struct {
// UnitOfMeasurement Container for UOM.
UnitOfMeasurement CN22ContentWeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Total weight of the content. Pounds and Ounces are allowed up to 2 decimals. Required if the CN22 form container is present.
Weight string `json:"Weight"`
}
CN22ContentCN22ContentWeight Container for CN22 content weight.
type CN22ContentCN22DDSReferenceNumber ¶
type CN22ContentCN22DDSReferenceNumber struct {
// Number holds a list of DDS Reference Numbers
Number *string `json:"Number,omitempty"`
}
CN22ContentCN22DDSReferenceNumber defines model for CN22Content_CN22DDSReferenceNumber.
type CN22ContentWeightUnitOfMeasurement ¶
type CN22ContentWeightUnitOfMeasurement struct {
// Code Required if weight is provided, valid values are lbs. and ozs. Required if weight is provided.
Code string `json:"Code"`
// Description Short description for UnitOfMeasurement.
Description *string `json:"Description,omitempty"`
}
CN22ContentWeightUnitOfMeasurement Container for UOM.
type CN22FormCN22Content ¶
type CN22FormCN22Content struct {
// CN22ContentCountryOfOrigin Country or Territory of Origin from where the CN22 contents originated.
CN22ContentCountryOfOrigin *string `json:"CN22ContentCountryOfOrigin,omitempty"`
// CN22ContentCurrencyCode Currently only USD is supported. Required if the CN22 form container is present.
CN22ContentCurrencyCode string `json:"CN22ContentCurrencyCode"`
// CN22ContentDescription Detailed description of the content.
//
// If the combined MI package and CN22 label is requested, only the first 30 characters will appear on the combined label. Required if the CN22 form container is present.
CN22ContentDescription string `json:"CN22ContentDescription"`
// CN22ContentQuantity Total number of items associated with this content. Required if the CN22 form container is present.
CN22ContentQuantity string `json:"CN22ContentQuantity"`
// CN22ContentTariffNumber The tariff number associated with the CN22 contents.
CN22ContentTariffNumber *string `json:"CN22ContentTariffNumber,omitempty"`
// CN22ContentTotalValue Total value of the items associated with this content. Required if the CN22 form container is present.
CN22ContentTotalValue string `json:"CN22ContentTotalValue"`
// CN22ContentWeight Container for CN22 content weight.
CN22ContentWeight CN22ContentCN22ContentWeight `json:"CN22ContentWeight"`
DDSReferenceNumber *CN22ContentCN22DDSReferenceNumber `json:"DDSReferenceNumber,omitempty"`
}
CN22FormCN22Content Container for CN22 content. Required if the CN22 form container is present. Note: The maximum number of goods printed on the CN22 form when a combined MI package and CN22 form label is requested is 30.
type CODCODAmount ¶
type CODCODAmount struct {
// CurrencyCode COD amount currency code type.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue COD Amount monetary value.
MonetaryValue string `json:"MonetaryValue"`
}
CODCODAmount COD Amount container.
type CODTurnInPageImage ¶
type CODTurnInPageImage struct {
// GraphicImage Base 64 encoded html browser image rendering software
GraphicImage string `json:"GraphicImage"`
// ImageFormat The container for format of COD Turn In Page.
ImageFormat CODTurnInPageImageImageFormat `json:"ImageFormat"`
}
CODTurnInPageImage The container of the image for COD Turn In Page.
type CODTurnInPageImageImageFormat ¶
type CODTurnInPageImageImageFormat struct {
// Code Format code of the generated COD Turn In Page.
//
// Valid values:
// - HTML = HTML format.
//
// Only HTML format is supported for COD Turn In Page.
Code string `json:"Code"`
// Description Description of the form image format code.
Description *string `json:"Description,omitempty"`
}
CODTurnInPageImageImageFormat The container for format of COD Turn In Page.
type ChildLTLCharges ¶
type ChildLTLCharges struct {
// Discount The monetary value of the discount/rebate charge.
Discount *string `json:"Discount,omitempty"`
// FreightCharges Freight charges.
FreightCharges *string `json:"FreightCharges,omitempty"`
// InsuranceCharges The monetary value of the insurance charge.
InsuranceCharges *string `json:"InsuranceCharges,omitempty"`
// OtherCharges Any other miscellaneous charges.
OtherCharges *LTLOtherCharges `json:"OtherCharges,omitempty"`
}
ChildLTLCharges Represents transportation charges for child shipments categorized as "Less than Truck Load" (LTL), including freight, fuel surcharges, and accessorial fees. These charges are calculated based on shipment weight, volume, or distance. Applicable only for LTL child.
type ChildLTLPackage ¶
type ChildLTLPackage struct {
// HandlingUnits Used to provide information about the handling units in the package/ltl.
HandlingUnits LTLHandlingUnits `json:"HandlingUnits"`
// NumberOfIdenticalUnits Number of identical units in the package/ltl.
NumberOfIdenticalUnits string `json:"NumberOfIdenticalUnits"`
// ReferenceNumber LTL Reference number.
ReferenceNumber *LTLReferenceNumber `json:"ReferenceNumber,omitempty"`
}
ChildLTLPackage LTL package information. Applicable only for LTL child.
type ChildProduct ¶
type ChildProduct struct {
// CommodityCode 6-to-15-alphanumeric commodity code. Customs uses this code to determine what duties should be assessed on the commodity. Applies to Invoice, Partial Invoice and USMCA. Required for USMCA and optional for Partial Invoice. Should be at least 6 alphanumeric. For USMCA: For each good described in Description of Goods field, identify the H.S. tariff classification to six digits. If the good is subject to a specific rule of origin in Annex 401 that requires eight digits, identify to eight digits, using the H.S. tariff classification of the country or territory into whose territory the good is imported.
CommodityCode *string `json:"CommodityCode,omitempty"`
// CountryOriginCode Country code of the product being shipped.
CountryOriginCode string `json:"CountryOriginCode"`
// Description Description of the product being shipped.
Description string `json:"Description"`
// EEIInformation Required for EEI form. Applies to EEI form only.
EEIInformation *ProductEEIInformation `json:"EEIInformation,omitempty"`
// ExcludeFromForm Container tag for determining whether or not to exclude product information from a particular form. If this container is not present we assume that the DEFAULT is selected which is "none" and all products will appear on all forms.
ExcludeFromForm *ProductExcludeFromForm `json:"ExcludeFromForm,omitempty"`
// ExportType Code indicating Domestic: Exports that have been produced, manufactured, or grown in the United States or Puerto Rico. This includes imported merchandise which has been enhanced in value or changed from the form in which imported by further manufacture or processing in the United States or Puerto Rico. Foreign: Merchandise that has entered the United States and is being exported again in the same condition as when imported. Applies to EEI forms only. Required for EEI form. Valid values: D: Domestic; F: Foreign.
ExportType *string `json:"ExportType,omitempty"`
// JointProductionIndicator If present, JNT will be used as the origin of country or territory code on the USMCA form and the Product/Origincountry or territoryCode tag will be ignored. Applies to USMCA only.
JointProductionIndicator *string `json:"JointProductionIndicator,omitempty"`
// MarksAndNumbers Any special marks, codes, and numbers that may appear on package. Applies to CO Only.
MarksAndNumbers *string `json:"MarksAndNumbers,omitempty"`
// NetCostCode For each good described in the Description of Goods field, where the good is subject to a regional value content (RVC) requirement, indicate NC if the RVC is calculated according to the net cost method; otherwise, indicate NO. If the RVC is calculated over a period of time then indicate "NC with begin/end date" by passing code "ND" Applies to USMCA only. Required for USMCA. Valid values:
// - NC
// - ND
// - NO
NetCostCode *string `json:"NetCostCode,omitempty"`
// NetCostDateRange Date Range for regional value content (RVC). Applies to USMCA CO only.
NetCostDateRange *ProductNetCostDateRange `json:"NetCostDateRange,omitempty"`
// NumberOfPackagesPerCommodity The total number of packages, cartons, or containers for the commodity. Applicable for CO and is required. Should be numeric. Valid characters are 0 -9.
NumberOfPackagesPerCommodity *string `json:"NumberOfPackagesPerCommodity,omitempty"`
// NumberOfUnits Number of units of the product being shipped.
NumberOfUnits string `json:"NumberOfUnits"`
// PackingListInfo Data Container holding package related information. Required for packaging list, Air Freight Packing list and multi-piece Economy shipments.
PackingListInfo *ProductPackingListInfo `json:"PackingListInfo,omitempty"`
// PreferenceCriteria Indicates the criterion (A through F) for each good described in the Description of Goods field if applicable.
//
// The rules of origin are contained in Chapter Four and Annex 401.
//
// Additional rules are described in Annex 703.2 (certain agricultural goods), Annex 300-B, Appendix 6 (certain textile goods) and Annex 308.1 (certain automatic data processing goods and their parts). Applies to USMCA only.
PreferenceCriteria *string `json:"PreferenceCriteria,omitempty"`
// ProducerInfo Indicate the following: Yes - If shipper is the producer of the good. If not, state 02, 03, and 04 depending on whether this certificate was based upon:
// No [1] - Knowledge of whether the good qualifies as an originating good.
// No [2] - Reliance on the producers written representation (other than a Certificate of Origin) that the good qualifies as an originating good.
// No [3] - A completed and signed Certificate for the good voluntarily provided to the exporter by the producer. Applicable for USMCA and is required. Valid values: Yes, No [1], No [2], and No [3].
ProducerInfo *string `json:"ProducerInfo,omitempty"`
// ProductNumber Product number of the product being shipped.
ProductNumber string `json:"ProductNumber"`
// ProductWeight The shipping weight, including containers, for each commodity with a separate Harmonized Tariff Code / Schedule B Number. This weight does not include carrier equipment. Applies to CO and EEI forms only. Required for CO and EEI forms.
ProductWeight *ProductProductWeight `json:"ProductWeight,omitempty"`
// SEDTotalValue This amount will always be USD. Applies to EEI forms only. Required for EEI form. Valid characters are 0-9 and \'.\' (Decimal point). Limit to 2 digit after the decimal. The maximum length of the field is 15 including \'.\' and can hold up to 2 decimal places.
//
// Note: This value is calculated based on the Product/Unit/Value and /Product/Unit/Number (Number of Units * Price per Unit). If the total value is incorrect it will be replaced by the actual calculated total value.
SEDTotalValue *string `json:"SEDTotalValue,omitempty"`
// ScheduleB Container tag for the schedule B information of a commodity. Applies to EEI forms only. Required for EEI form
ScheduleB *ProductScheduleB `json:"ScheduleB,omitempty"`
// TaxesPaid Invoice Commodity Level Tax Collected Code for each shipment commodity line.Taxes paid Indicator is only applicable for shipments to Singapore. [TaxesPaid = 0 - No on Report], [TaxesPaid = 1 -Yes on Report], [TaxesPaid = empty - null on Report], [If TaxesPaid is not passed in input request = null on Report]
TaxesPaid *string `json:"TaxesPaid,omitempty"`
// UnitOfMeasure Unit of Measure for the product being shipped.
//
// Valid values are :
// - BA = Barrel
// - BE = Bundle
// - BG = Bag
// - BH = Bunch
// - BOX = Box
// - BT = Bolt
// - LB = Pound
// - LBS = Pounds
// - L = Liter
// - M = Meter
// - NMB = Number
// - PA = Packet
// - BU = Butt
// - CI = Canister
// - CM = Centimeter
// - CON = Container
// - CR = Crate
// - CS = Case
// - CT = Carton
// - CY = Cylinder
// - DOZ = Dozen
// - EA = Each
// - EN = Envelope
// - FT = Feet
// - KG = Kilogram
// - KGS = Kilograms
// - PAL = Pallet
// - PC = Piece
// - PCS = Pieces
// - PF = Proof Liters
// - OTH = Other
// - PKG = Package
// - PR = Pair
// - PRS = Pairs
// - RL = Roll
// - SET = Set
// - SME = Square Meters
// - SYD = Square Yards
// - TU = Tube
// - YD = Yard
UnitOfMeasure ChildProductUnitOfMeasure `json:"UnitOfMeasure"`
// UnitPrice Price per unit of the product being shipped.
UnitPrice string `json:"UnitPrice"`
// VehicleID Includes the following information for used self-propelled vehicles as defined in Customs regulations 19 CFR 192.1: The unique Vehicle Identification Number (VIN) in the proper format. Or The Product Identification Number (PIN) for those used self-propelled vehicles for which there are no VINs. Or the Vehicle Title Number. Applies to EEI forms only.
VehicleID *string `json:"VehicleID,omitempty"`
}
ChildProduct This variable represents the product details. It is used to provide information about the product being shipped.
type ChildProductUnitOfMeasure ¶
type ChildProductUnitOfMeasure string
ChildProductUnitOfMeasure Unit of Measure for the product being shipped.
Valid values are :
- BA = Barrel
- BE = Bundle
- BG = Bag
- BH = Bunch
- BOX = Box
- BT = Bolt
- LB = Pound
- LBS = Pounds
- L = Liter
- M = Meter
- NMB = Number
- PA = Packet
- BU = Butt
- CI = Canister
- CM = Centimeter
- CON = Container
- CR = Crate
- CS = Case
- CT = Carton
- CY = Cylinder
- DOZ = Dozen
- EA = Each
- EN = Envelope
- FT = Feet
- KG = Kilogram
- KGS = Kilograms
- PAL = Pallet
- PC = Piece
- PCS = Pieces
- PF = Proof Liters
- OTH = Other
- PKG = Package
- PR = Pair
- PRS = Pairs
- RL = Roll
- SET = Set
- SME = Square Meters
- SYD = Square Yards
- TU = Tube
- YD = Yard
const ( ChildProductUnitOfMeasureBA ChildProductUnitOfMeasure = "BA" ChildProductUnitOfMeasureBE ChildProductUnitOfMeasure = "BE" ChildProductUnitOfMeasureBG ChildProductUnitOfMeasure = "BG" ChildProductUnitOfMeasureBH ChildProductUnitOfMeasure = "BH" ChildProductUnitOfMeasureBOX ChildProductUnitOfMeasure = "BOX" ChildProductUnitOfMeasureBT ChildProductUnitOfMeasure = "BT" ChildProductUnitOfMeasureBU ChildProductUnitOfMeasure = "BU" ChildProductUnitOfMeasureCI ChildProductUnitOfMeasure = "CI" ChildProductUnitOfMeasureCM ChildProductUnitOfMeasure = "CM" ChildProductUnitOfMeasureCON ChildProductUnitOfMeasure = "CON" ChildProductUnitOfMeasureCR ChildProductUnitOfMeasure = "CR" ChildProductUnitOfMeasureCS ChildProductUnitOfMeasure = "CS" ChildProductUnitOfMeasureCT ChildProductUnitOfMeasure = "CT" ChildProductUnitOfMeasureCY ChildProductUnitOfMeasure = "CY" ChildProductUnitOfMeasureDOZ ChildProductUnitOfMeasure = "DOZ" ChildProductUnitOfMeasureEA ChildProductUnitOfMeasure = "EA" ChildProductUnitOfMeasureEN ChildProductUnitOfMeasure = "EN" ChildProductUnitOfMeasureFT ChildProductUnitOfMeasure = "FT" ChildProductUnitOfMeasureKG ChildProductUnitOfMeasure = "KG" ChildProductUnitOfMeasureKGS ChildProductUnitOfMeasure = "KGS" ChildProductUnitOfMeasureL ChildProductUnitOfMeasure = "L" ChildProductUnitOfMeasureLB ChildProductUnitOfMeasure = "LB" ChildProductUnitOfMeasureLBS ChildProductUnitOfMeasure = "LBS" ChildProductUnitOfMeasureM ChildProductUnitOfMeasure = "M" ChildProductUnitOfMeasureNMB ChildProductUnitOfMeasure = "NMB" ChildProductUnitOfMeasureOTH ChildProductUnitOfMeasure = "OTH" ChildProductUnitOfMeasurePA ChildProductUnitOfMeasure = "PA" ChildProductUnitOfMeasurePAL ChildProductUnitOfMeasure = "PAL" ChildProductUnitOfMeasurePC ChildProductUnitOfMeasure = "PC" ChildProductUnitOfMeasurePCS ChildProductUnitOfMeasure = "PCS" ChildProductUnitOfMeasurePF ChildProductUnitOfMeasure = "PF" ChildProductUnitOfMeasurePKG ChildProductUnitOfMeasure = "PKG" ChildProductUnitOfMeasurePR ChildProductUnitOfMeasure = "PR" ChildProductUnitOfMeasurePRS ChildProductUnitOfMeasure = "PRS" ChildProductUnitOfMeasureRL ChildProductUnitOfMeasure = "RL" ChildProductUnitOfMeasureSET ChildProductUnitOfMeasure = "SET" ChildProductUnitOfMeasureSME ChildProductUnitOfMeasure = "SME" ChildProductUnitOfMeasureSYD ChildProductUnitOfMeasure = "SYD" ChildProductUnitOfMeasureTU ChildProductUnitOfMeasure = "TU" ChildProductUnitOfMeasureYD ChildProductUnitOfMeasure = "YD" )
Defines values for ChildProductUnitOfMeasure.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeprecatedShipment ¶
func (c *Client) DeprecatedShipment(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, body DeprecatedShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeprecatedShipmentWithBody ¶
func (*Client) DeprecatedVoidShipment ¶
func (c *Client) DeprecatedVoidShipment(ctx context.Context, deprecatedVersion string, shipmentidentificationnumber string, params *DeprecatedVoidShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LabelRecoveryOp ¶
func (c *Client) LabelRecoveryOp(ctx context.Context, version string, params *LabelRecoveryOpParams, body LabelRecoveryOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LabelRecoveryOpWithBody ¶
func (*Client) ShipmentOp ¶
func (c *Client) ShipmentOp(ctx context.Context, version string, params *ShipmentOpParams, body ShipmentOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ShipmentOpWithBody ¶
func (*Client) VoidShipmentOp ¶
func (c *Client) VoidShipmentOp(ctx context.Context, version string, shipmentidentificationnumber string, params *VoidShipmentOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// LabelRecoveryOpWithBody request with any body
LabelRecoveryOpWithBody(ctx context.Context, version string, params *LabelRecoveryOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LabelRecoveryOp(ctx context.Context, version string, params *LabelRecoveryOpParams, body LabelRecoveryOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeprecatedShipmentWithBody request with any body
DeprecatedShipmentWithBody(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeprecatedShipment(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, body DeprecatedShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeprecatedVoidShipment request
DeprecatedVoidShipment(ctx context.Context, deprecatedVersion string, shipmentidentificationnumber string, params *DeprecatedVoidShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ShipmentOpWithBody request with any body
ShipmentOpWithBody(ctx context.Context, version string, params *ShipmentOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ShipmentOp(ctx context.Context, version string, params *ShipmentOpParams, body ShipmentOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VoidShipmentOp request
VoidShipmentOp(ctx context.Context, version string, shipmentidentificationnumber string, params *VoidShipmentOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeprecatedShipmentWithBodyWithResponse ¶
func (c *ClientWithResponses) DeprecatedShipmentWithBodyWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedShipmentResponse, error)
DeprecatedShipmentWithBodyWithResponse request with arbitrary body returning *DeprecatedShipmentResponse
func (*ClientWithResponses) DeprecatedShipmentWithResponse ¶
func (c *ClientWithResponses) DeprecatedShipmentWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, body DeprecatedShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedShipmentResponse, error)
func (*ClientWithResponses) DeprecatedVoidShipmentWithResponse ¶
func (c *ClientWithResponses) DeprecatedVoidShipmentWithResponse(ctx context.Context, deprecatedVersion string, shipmentidentificationnumber string, params *DeprecatedVoidShipmentParams, reqEditors ...RequestEditorFn) (*DeprecatedVoidShipmentResponse, error)
DeprecatedVoidShipmentWithResponse request returning *DeprecatedVoidShipmentResponse
func (*ClientWithResponses) LabelRecoveryOpWithBodyWithResponse ¶
func (c *ClientWithResponses) LabelRecoveryOpWithBodyWithResponse(ctx context.Context, version string, params *LabelRecoveryOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LabelRecoveryOpResponse, error)
LabelRecoveryOpWithBodyWithResponse request with arbitrary body returning *LabelRecoveryOpResponse
func (*ClientWithResponses) LabelRecoveryOpWithResponse ¶
func (c *ClientWithResponses) LabelRecoveryOpWithResponse(ctx context.Context, version string, params *LabelRecoveryOpParams, body LabelRecoveryOpJSONRequestBody, reqEditors ...RequestEditorFn) (*LabelRecoveryOpResponse, error)
func (*ClientWithResponses) ShipmentOpWithBodyWithResponse ¶
func (c *ClientWithResponses) ShipmentOpWithBodyWithResponse(ctx context.Context, version string, params *ShipmentOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShipmentOpResponse, error)
ShipmentOpWithBodyWithResponse request with arbitrary body returning *ShipmentOpResponse
func (*ClientWithResponses) ShipmentOpWithResponse ¶
func (c *ClientWithResponses) ShipmentOpWithResponse(ctx context.Context, version string, params *ShipmentOpParams, body ShipmentOpJSONRequestBody, reqEditors ...RequestEditorFn) (*ShipmentOpResponse, error)
func (*ClientWithResponses) VoidShipmentOpWithResponse ¶
func (c *ClientWithResponses) VoidShipmentOpWithResponse(ctx context.Context, version string, shipmentidentificationnumber string, params *VoidShipmentOpParams, reqEditors ...RequestEditorFn) (*VoidShipmentOpResponse, error)
VoidShipmentOpWithResponse request returning *VoidShipmentOpResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// LabelRecoveryOpWithBodyWithResponse request with any body
LabelRecoveryOpWithBodyWithResponse(ctx context.Context, version string, params *LabelRecoveryOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LabelRecoveryOpResponse, error)
LabelRecoveryOpWithResponse(ctx context.Context, version string, params *LabelRecoveryOpParams, body LabelRecoveryOpJSONRequestBody, reqEditors ...RequestEditorFn) (*LabelRecoveryOpResponse, error)
// DeprecatedShipmentWithBodyWithResponse request with any body
DeprecatedShipmentWithBodyWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedShipmentResponse, error)
DeprecatedShipmentWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedShipmentParams, body DeprecatedShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedShipmentResponse, error)
// DeprecatedVoidShipmentWithResponse request
DeprecatedVoidShipmentWithResponse(ctx context.Context, deprecatedVersion string, shipmentidentificationnumber string, params *DeprecatedVoidShipmentParams, reqEditors ...RequestEditorFn) (*DeprecatedVoidShipmentResponse, error)
// ShipmentOpWithBodyWithResponse request with any body
ShipmentOpWithBodyWithResponse(ctx context.Context, version string, params *ShipmentOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShipmentOpResponse, error)
ShipmentOpWithResponse(ctx context.Context, version string, params *ShipmentOpParams, body ShipmentOpJSONRequestBody, reqEditors ...RequestEditorFn) (*ShipmentOpResponse, error)
// VoidShipmentOpWithResponse request
VoidShipmentOpWithResponse(ctx context.Context, version string, shipmentidentificationnumber string, params *VoidShipmentOpParams, reqEditors ...RequestEditorFn) (*VoidShipmentOpResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CommodityNMFC ¶
type CommodityNMFC struct {
// PrimeCode Specifies the Commodity's NMFC prime code. Required if NMFC Container is present.
PrimeCode string `json:"PrimeCode"`
// SubCode Specifies the Commodity's NMFC sub code. Needs to be provided when the SubCode associated with the PrimeCode is other than 00. UPS defaults the sub value to 00 if not provided. If provided the Sub Code should be associated with the PrimeCode of the NMFC.
SubCode *string `json:"SubCode,omitempty"`
}
CommodityNMFC Container to hold the NMFC codes.
type CommonErrorResponse ¶
type CommonErrorResponse struct {
// Errors The error array containing any errors that occurred.
Errors *[]ErrorMessage `json:"errors,omitempty"`
}
CommonErrorResponse The error response containing any errors that occurred.
type ContactsForwardAgent ¶
type ContactsForwardAgent struct {
// Address Address information of the Forwarding agent. Applicable for EEI form only.
Address ForwardAgentAddress `json:"Address"`
// CompanyName Company Name or the Individual name of the Forwarding agent. Applicable for EEI form only.
CompanyName string `json:"CompanyName"`
// TaxIdentificationNumber Tax ID of the Forwarding agent.
// Valid Values: (Below values are applicable for EEIFilingOption Code =3)
// 94-308351500
// 13-168669100
// Applicable for EEI form only.
TaxIdentificationNumber string `json:"TaxIdentificationNumber"`
}
ContactsForwardAgent The forwarding agent is the company or person acting as agent in the trans-shipping of freight to the destination country or territory. Applicable for EEI form only.
type ContactsIntermediateConsignee ¶
type ContactsIntermediateConsignee struct {
// Address Address information of the Intermediate Consignee. Applicable for EEI form only.
Address IntermediateConsigneeAddress `json:"Address"`
// CompanyName Company Name or the Individual name of the Intermediate consignee. Applicable for EEI form only.
CompanyName string `json:"CompanyName"`
}
ContactsIntermediateConsignee The intermediate consignee is the person or company in the importing country or territory that makes final delivery to the ultimate consignee. Applicable for EEI form only.
type ContactsProducer ¶
type ContactsProducer struct {
// Address Address information of the Producer. Applies to USMCA. Only applicable if producer option is empty or not present. Conditionally required for: USMCA, when Producer option is not specified.
Address *ProducerAddress `json:"Address,omitempty"`
// AttentionName Contact name at the Producer location. Applies to USMCA.
AttentionName *string `json:"AttentionName,omitempty"`
// CompanyName Company Name or the Individual name of the Producer. Applies to USMCA. Only applicable when producer option is empty or not present. Conditionally required for: USMCA, when Producer option is not specified.
CompanyName *string `json:"CompanyName,omitempty"`
// EMailAddress Producer email address. Applies to USMCA.
EMailAddress *string `json:"EMailAddress,omitempty"`
// Option The text associated with the code will be printed in the producer section instead of producer contact information.
// Use attached List if more than one producer's good is included on the Certificate, attach a list of additional producers, including the legal name, address (including country or territory), and legal tax identification number, cross-referenced to the goods described in the Description of Goods field. Applies to USMCA.
// Valid values:
// 01 - AVAILABLE TO CUSTOMS UPON REQUEST
// 02 - SAME AS EXPORTER
// 03 - ATTACHED LIST
// 04 - UNKNOWN
Option *string `json:"Option,omitempty"`
// Phone Phone number information of Producer. Applies to USMCA.
Phone *ProducerPhone `json:"Phone,omitempty"`
// TaxIdentificationNumber Tax ID of the Producer. Applies to USMCA. Only applicable when producer option is empty or not present
TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}
ContactsProducer Information of the producer. The USMCA Certificate of Origin must be completed, signed, and dated by the exporter. When the Certificate is completed by the producer for use by the exporter, it must be completed, signed, and dated by the producer. The date must be the date the Certificate was completed and signed. Applies to USMCA. Required for USMCA forms.
type ContactsSoldTo ¶
type ContactsSoldTo struct {
// AccountNumber SoldTo AccountNumber
AccountNumber *string `json:"AccountNumber,omitempty"`
// Address Sold To Address Container. Applies to USMCA.
Address SoldToAddress `json:"Address"`
// AttentionName Sold to contact name.
AttentionName string `json:"AttentionName"`
// EMailAddress SoldTo email address.
EMailAddress *string `json:"EMailAddress,omitempty"`
// Name Company Name.
Name string `json:"Name"`
// Option The text associated with the code will be printed in the sold to section of the USMCA form. The values indicate the following: 01 – Unknown. Applies to USMCA form. Possible Values are 01 and 02.
Option *string `json:"Option,omitempty"`
// Phone Phone Container.
Phone *SoldToPhone `json:"Phone,omitempty"`
// TaxIdentificationNumber SoldTo Tax Identification Number. This element has been deprecated, replacement can be found in the GlobalTaxInformation container.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}
ContactsSoldTo SoldTo Container. The Sold To party's country code must be the same as the Ship To party's country code with the exception of Canada and satellite countries. Applies to Invoice and USMCA Forms. Required if Invoice or USMCA (International Form) is requested.
type ContactsUltimateConsignee ¶
type ContactsUltimateConsignee struct {
// Address Address information of the Ultimate consignee. Applicable for EEI form only.
Address UltimateConsigneeAddress `json:"Address"`
// CompanyName Company Name or the Individual name of the Ultimate consignee. Applicable for EEI form only.
CompanyName string `json:"CompanyName"`
// UltimateConsigneeType Container for providing UltimateConsignee Type. Applicable for EEI form only.
UltimateConsigneeType *UltimateConsigneeUltimateConsigneeType `json:"UltimateConsigneeType,omitempty"`
}
ContactsUltimateConsignee The ultimate consignee is the person or company who receives the goods for end-use or the person or company listed on the export license. This is the end-user of the goods. Applicable for EEI form only.
type ControlLogReceiptImageFormat ¶
type ControlLogReceiptImageFormat struct {
// Code Code for the type of Graphic Image for the High Value Report.
//
// Valid values:
// - EPL = EPL2 (when user requests label in EPL2 format)
// - SPL = SPL (when user requests label in SPL format)
// - ZPL = ZPL (when user requests label in ZPL format)
// - HTML= HTML (when user requests label in HTML format)
Code string `json:"Code"`
// Description Description of the format code.
Description *string `json:"Description,omitempty"`
}
ControlLogReceiptImageFormat Container for the High Value report format required if parent exist.
type CreditCardAddress ¶
type CreditCardAddress struct {
// AddressLine Address Line 1 of the credit card billing address. Usually Street address information.
AddressLine []string `json:"AddressLine"`
// City City of the credit card billing address.
City string `json:"City"`
// CountryCode Credit card billing address country or territory code. Must be a valid UPS Billing country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode Credit card billing addressee postal code.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode State or province code of the credit card billing address. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
CreditCardAddress Container to hold the Credit card Billing Address. It is required to provide billing address if credit card information is provided and when the ShipFrom country or territory is the US, PR, and CA.
type DDTCInformationUnitOfMeasurement ¶
type DDTCInformationUnitOfMeasurement struct {
// Code Required for EEI form. Unit of measurement code. The two or three (3) alpha unit of measurement for the article being shipped. For example: BAG/BG - bags Applies to EEI form only. It is required for EEIFilingOption code 1A and 3.
Code string `json:"Code"`
// Description Description for Unit of Measurement. Applies to EEI form only.
Description *string `json:"Description,omitempty"`
}
DDTCInformationUnitOfMeasurement Container for unit of measurement. Applies to EEI form only. It is required for EEIFilingOption code 3.
type DeclaredValueType ¶
type DeclaredValueType struct {
// Code Declared value type. Valid values:
// - 01=EVS
// - 02=DVS
//
// Defaults to 01 i.e. EVS if declared value type is not provided. The user cannot specify different type of declared value for the shipment. User can either have shipper declared value (DVS) or declared value (EVS) but not both at package level.
//
// Note: The Shipper Declared Value is applicable for forward shipments when the billing option is freight collect or third party.
Code string `json:"Code"`
// Description Declared value Description.
Description *string `json:"Description,omitempty"`
}
DeclaredValueType Container for Declared Value Type.
type DeprecatedShipmentJSONRequestBody ¶
type DeprecatedShipmentJSONRequestBody = SHIPRequestWrapper
DeprecatedShipmentJSONRequestBody defines body for DeprecatedShipment for application/json ContentType.
type DeprecatedShipmentParams ¶
type DeprecatedShipmentParams struct {
// Additionaladdressvalidation Valid Values:
// city = validation will include city.Length 15
Additionaladdressvalidation *string `form:"additionaladdressvalidation,omitempty" json:"additionaladdressvalidation,omitempty"`
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
DeprecatedShipmentParams defines parameters for DeprecatedShipment.
type DeprecatedShipmentResponse ¶
type DeprecatedShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SHIPResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseDeprecatedShipmentResponse ¶
func ParseDeprecatedShipmentResponse(rsp *http.Response) (*DeprecatedShipmentResponse, error)
ParseDeprecatedShipmentResponse parses an HTTP response from a DeprecatedShipmentWithResponse call
func (DeprecatedShipmentResponse) Status ¶
func (r DeprecatedShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecatedShipmentResponse) StatusCode ¶
func (r DeprecatedShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeprecatedVoidShipmentParams ¶
type DeprecatedVoidShipmentParams struct {
// Trackingnumber The package's tracking number. You may have
// up to 20 different tracking numbers listed.
// If more than one tracking number, pass this
// value as: trackingnumber=
// ["1ZISUS010330563105","1ZISUS01033056310
// 8"] with a coma separating each number.
// Alpha-numeric. Must pass 1Z rules. Must be
// upper case. Length 18
Trackingnumber *string `form:"trackingnumber,omitempty" json:"trackingnumber,omitempty"`
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
DeprecatedVoidShipmentParams defines parameters for DeprecatedVoidShipment.
type DeprecatedVoidShipmentResponse ¶
type DeprecatedVoidShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *VOIDSHIPMENTResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseDeprecatedVoidShipmentResponse ¶
func ParseDeprecatedVoidShipmentResponse(rsp *http.Response) (*DeprecatedVoidShipmentResponse, error)
ParseDeprecatedVoidShipmentResponse parses an HTTP response from a DeprecatedVoidShipmentWithResponse call
func (DeprecatedVoidShipmentResponse) Status ¶
func (r DeprecatedVoidShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecatedVoidShipmentResponse) StatusCode ¶
func (r DeprecatedVoidShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DimWeightUnitOfMeasurement ¶
type DimWeightUnitOfMeasurement struct {
// Code Code representing the unit of measure associated with the package weight.
//
// Valid values:
// - LBS = Pounds (default)
// - KGS = Kilograms
Code string `json:"Code"`
// Description Text description of the code representing the unit of measure associated with the package weight. Length and value are not validated.
Description *string `json:"Description,omitempty"`
}
DimWeightUnitOfMeasurement UnitOfMeasurement Container.
type DimensionsUnitOfMeasurement ¶
type DimensionsUnitOfMeasurement struct {
// Code Package dimensions measurement code. Valid codes: IN = Inches CM = Centimeters 00 = Metric Units Of Measurement 01 = English Units of Measurement The unit of measurement must be valid for the Shipper country or territory.
Code *string `json:"Code,omitempty"`
// Description Description of the package dimensions measurement units.
Description *string `json:"Description,omitempty"`
}
DimensionsUnitOfMeasurement UnitOfMeasurement container for dimensions.
type DryIceDryIceWeight ¶
type DryIceDryIceWeight struct {
// UnitOfMeasurement Container for Unit of measurement for Dry Ice Weight.
UnitOfMeasurement DryIceWeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Dry Ice Weight. Cannot be more than package weight. Should be more than 0.0. Valid characters are 0-9 and "." (Decimal point). Limit to 1 digit after the decimal. The maximum length of the field is 5 including "." and can hold up to 1 decimal place.
Weight string `json:"Weight"`
}
DryIceDryIceWeight Container for Dry Ice weight.
type DryIceWeightUnitOfMeasurement ¶
type DryIceWeightUnitOfMeasurement struct {
// Code DryIce weight unit of measurement code. Valid values:
// - 00 = KG (Metric Unit of Measurements) or KGS
// - 01 = LB (English Unit of Measurements) or LBS The following values are valid : 00, 01, KG, KGS, LBS.
Code string `json:"Code"`
// Description Description for unit of measurement for Dry Ice Weight.
Description *string `json:"Description,omitempty"`
}
DryIceWeightUnitOfMeasurement Container for Unit of measurement for Dry Ice Weight.
type EEIFilingOptionShipperFiled ¶
type EEIFilingOptionShipperFiled struct {
// Code Indicates the EEI Shipper sub option. Applicable for EEI form and is required. Valid value is: A- requires the ITN; B- requires the Exemption Legend; C- requires the post departure filing citation.
Code string `json:"Code"`
// Description Description of ShipperFiled Code. Applicable for EEI form.
Description *string `json:"Description,omitempty"`
// EEIShipmentReferenceNumber Shipment Reference Number for use during interaction with AES. Valid for EEI form for Shipper Filed option 'C' and AES Direct Filed.
EEIShipmentReferenceNumber *string `json:"EEIShipmentReferenceNumber,omitempty"`
// ExemptionLegend Input for Shipper Filed option B. 30.2(d)(2), 30.26(a), 30.36, 30.37(a), 30.37(b), 30.37(c), 30.37(d), 30.37(e), 30.37(f), 30.37(h), 30.37(i), 30.30(j), 30.37(k), 30.37(i), 30.37(j), 30.37(k), 30.37(l), 30.37(m), 30.37(n), 30.37(o), 30.37(p), 30.37(q), 30.37(r), 30.37(s), 30.37(t), 30.37(u), 30.37(x), 30.37(y)(1), 30.37(y)(2), 30.37(y)(3), 30.37(y)(4), 30.37(y)(5), 30.37(y)(6), 30.39, 30.40(a), 30.40(b), 30.40(c), 30.40(d), 30.8(b) Valid and Required for Shipper Filed option B. EEI form only.
ExemptionLegend *string `json:"ExemptionLegend,omitempty"`
// PreDepartureITNNumber Input for Shipper Filed option A and AES Direct. The format is available from AESDirect website. Valid and Required for Shipper Filed option A. EEI form only.
PreDepartureITNNumber *string `json:"PreDepartureITNNumber,omitempty"`
}
EEIFilingOptionShipperFiled Indicates the EEI Shipper Filed option or AES Direct. (Option 1 or 2). Applicable for EEI form.
type EEIFilingOptionUPSFiled ¶
type EEIFilingOptionUPSFiled struct {
// POA Container for POA. Applicable for EEI form.
POA UPSFiledPOA `json:"POA"`
}
EEIFilingOptionUPSFiled Indicates the EEI UPS Filed option. (option 3) Applicable for EEI form.
type EEIInformationDDTCInformation ¶
type EEIInformationDDTCInformation struct {
// ACMNumber Approved Community Member Number (ACM). It is required to be provided along with ITARExemptionNumber for some License code (SGB and SAU). The ACM# for the United Kingdom (License code SGB) must begin with UK followed by 9 numbers. The ACM# for Australia (License Code SAU) must begin with DTT followed by 8 numbers. Applies to EEI form only. It is required for EEIFilingOption code 1A and 3.
ACMNumber *string `json:"ACMNumber,omitempty"`
// EligiblePartyIndicator Presence/Absent indicator. Certification by the U.S. exporter that the exporter is an eligible party to participate in the defense trade.
EligiblePartyIndicator *string `json:"EligiblePartyIndicator,omitempty"`
// ITARExemptionNumber The specific citation (exemption number) under the International Traffic in Arms Regulations (ITAR) from the Code of Federal Register (see 22 CFR 120-130) that exempts the shipment from the requirements for a license or other written authorization from the Directorate of Trade Controls (DDTC).
// Refer to EEI License Codes in the Appendix for valid values. Applies to EEI Form only. This field is applicable for EEIFiling option 1A and 3.
ITARExemptionNumber *string `json:"ITARExemptionNumber,omitempty"`
// Quantity Export Quantity. Applies to EEI form only. It is required for EEIFilingOption code 3. Only positive integer value is valid.
Quantity *string `json:"Quantity,omitempty"`
// RegistrationNumber It is a unique registration code assigned to the registrant. The DDTC registration code consist of a letter prefix, M (assigned to a manufacturer and/or exporter) or K (assigned to a broker), followed by four or five digits (e.g. K-1234 or M12345). It is required for EEIFilingOption code 3.
RegistrationNumber *string `json:"RegistrationNumber,omitempty"`
// SignificantMilitaryEquipmentIndicator Presence/ Absence Indicator. Applies to EEI form only.
SignificantMilitaryEquipmentIndicator *string `json:"SignificantMilitaryEquipmentIndicator,omitempty"`
// USMLCategoryCode Digit numeric code (e.g. 01-18, 20 or 21). Indicates the U.S. Munitions List (USML) category article, service or related technical data as it applies to the article reported. Applies to EEI form only. It is required for EEIFilingOption code 3.
USMLCategoryCode *string `json:"USMLCategoryCode,omitempty"`
// UnitOfMeasurement Container for unit of measurement. Applies to EEI form only. It is required for EEIFilingOption code 3.
UnitOfMeasurement *DDTCInformationUnitOfMeasurement `json:"UnitOfMeasurement,omitempty"`
}
EEIInformationDDTCInformation Department of State/ Directorate of Defense Trade Control Information. This element is a container for additional information that is applicable to SDL products. It will only be evaluated if the provided license code is an SDL code. Applies to EEI Form only.
type EEIInformationLicense ¶
type EEIInformationLicense struct {
// Code The standard license code published by US government.
// Refer to EEI License Codes in the Appendix for valid values. Applies to EEI form only. It is required for EEIFilingOption code 3. It is optionally required for all other filing types; however, it is used to categorize each product as SDL or non-SDL. It is also used to identify which piece of information is applicable.
Code *string `json:"Code,omitempty"`
// ECCNNumber Product ECCN Number issued by BIS (Bureau of Industry and Security). If the license number is a commerce license, ECCN must be provided. The format is #A### or EAR99 Applies to EEI forms only. It is required for EEIFilingOption code 3. ECCN is required one of the following License Exception Codes is entered: CIV, CTP, ENC, GBS, KMI, LVS, TSR
ECCNNumber *string `json:"ECCNNumber,omitempty"`
// LicenseLineValue The export monetary amount allowed per license. Required for a licensable product when the EEI form is selected.
// Format: Whole numbers only. Applies to EEI form only. Required if EEIFilingOption code 1A (only for SDL shipments) or 3.
LicenseLineValue *string `json:"LicenseLineValue,omitempty"`
// Number Represents any one of the following values: export license number, exception code, CFR citation, KPC Number, ACM Number. Applies to EEI form only.
//
// Refer to EEI License Types and Exemptions in the Appendix for valid values and formats.
Number *string `json:"Number,omitempty"`
}
EEIInformationLicense Licence information for SDL commodity. Applies to EEI form only.
type ErrorMessage ¶
type ErrorMessage struct {
// Code The error code.
Code *string `json:"code,omitempty"`
// Message The error message.
Message *string `json:"message,omitempty"`
}
ErrorMessage The error response containing any errors that occurred.
type ErrorResponse ¶
type ErrorResponse struct {
// Response The error response containing any errors that occurred.
Response *CommonErrorResponse `json:"response,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type FRSPaymentInformationAddress ¶
type FRSPaymentInformationAddress struct {
// CountryCode The country or territory code for the Ground Freight Pricing payment information address.
CountryCode string `json:"CountryCode"`
// PostalCode The postal code for the Ground Freight Pricing payment information address.
PostalCode *string `json:"PostalCode,omitempty"`
}
FRSPaymentInformationAddress Container to hold the information for the FreightCollect and PrepaidThirdParty Address. Note: The Address is required only when the billing option is Freight collect or ThirdParty.
type FRSPaymentInformationType ¶
type FRSPaymentInformationType struct {
// Code Valid codes:
// - 01 = Prepaid
// - 02 = FreightCollect
// - 03 = ThirdParty
Code string `json:"Code"`
// Description Specifies the description for Ground Freight Pricing payment type.
Description *string `json:"Description,omitempty"`
}
FRSPaymentInformationType Container to hold the Ground Freight Pricing payment type information. It is required if the request has Ground Freight Pricing shipment indicator.
type FRSShipmentDataFreightDensityRate ¶
type FRSShipmentDataFreightDensityRate struct {
// Density Density is returned if the Shipper is eligible for Density based rate. Valid values are 0 to 999.9
Density string `json:"Density"`
// TotalCubicFeet Total Cubic feet is returned if the Shipper is eligible for Density based rate. Valid values are 0 to 99999.999
TotalCubicFeet string `json:"TotalCubicFeet"`
}
FRSShipmentDataFreightDensityRate FreightDensityRate container for Density based rating.
type FRSShipmentDataHandlingUnits ¶
type FRSShipmentDataHandlingUnits struct {
// AdjustedHeight Container to hold Adjusted Height information.
AdjustedHeight *HandlingUnitsAdjustedHeight `json:"AdjustedHeight,omitempty"`
// Dimensions Dimension of the HandlingUnit container for density based pricing.
Dimensions HandlingUnitsDimensions `json:"Dimensions"`
// Quantity Handling Unit Quantity for Density based rating.
Quantity string `json:"Quantity"`
// Type Handling Unit Type for Density based rating.
Type HandlingUnitsType `json:"Type"`
}
FRSShipmentDataHandlingUnits defines model for FRSShipmentData_HandlingUnits.
type FRSShipmentDataTransportationCharges ¶
type FRSShipmentDataTransportationCharges struct {
// DiscountAmount Discount Amount container. It indicates the shipment level Ground Freight Pricing discount amount for transportation charges
DiscountAmount TransportationChargesDiscountAmount `json:"DiscountAmount"`
// DiscountPercentage It indicates the shipment level discount percentage for transportation charges.
DiscountPercentage string `json:"DiscountPercentage"`
// GrossCharge Gross Charges container. It indicates the shipment level gross Ground Freight Pricing transportation charges.
GrossCharge TransportationChargesGrossCharge `json:"GrossCharge"`
// NetCharge Net Charges container. It indicates the shipment level net Ground Freight Pricing transportation charges.
NetCharge TransportationChargesNetCharge `json:"NetCharge"`
}
FRSShipmentDataTransportationCharges Transportation charges container. Ground Freight Pricing transportation charges. These are only returned for Ground Freight Pricing enabled shipper account number when the user includes the FRSShipmentIndicator in the request.
type FormImage ¶
type FormImage struct {
// GraphicImage Base 64 encoded International forms image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container tag for the International forms image format information.
ImageFormat ImageImageFormat `json:"ImageFormat"`
}
FormImage Container tag for the International forms image.
type ForwardAgentAddress ¶
type ForwardAgentAddress struct {
// AddressLine Address line of the Forwarding agent. Applicable for EEI form only.
AddressLine []string `json:"AddressLine"`
// City City of the Forwarding agent. Applicable for EEI form only.
City string `json:"City"`
// CountryCode Country or Territory code of the Forwarding agent. Applicable for EEI form only.
CountryCode string `json:"CountryCode"`
// PostalCode Postal code of the Forwarding agent. Applicable for EEI form only. Required for certain countries or territories. The length of the postal code depends on the country or territory code
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode State of the Forwarding agent. Applicable for EEI form only. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
// Town Town of the Forwarding Agent. Applicable for EEI form only.
Town *string `json:"Town,omitempty"`
}
ForwardAgentAddress Address information of the Forwarding agent. Applicable for EEI form only.
type FreightDensityInfoAdjustedHeight ¶
type FreightDensityInfoAdjustedHeight struct {
// UnitOfMeasurement Container for UnitOfMeasurement for the adjusted height.
UnitOfMeasurement AdjustedHeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Value Adjusted height value.
Value string `json:"Value"`
}
FreightDensityInfoAdjustedHeight Container for the adjusted height. Required if AdjustedHeightIndicator is present.
type FreightDensityInfoHandlingUnits ¶
type FreightDensityInfoHandlingUnits struct {
// Dimensions Dimension of the HandlingUnit container for density based pricing.
Dimensions HandlingUnitsDimensions `json:"Dimensions"`
// Quantity Handling Unit Quantity for Density based rating.
Quantity string `json:"Quantity"`
// Type Handling Unit Type for Density based rating.
Type HandlingUnitsType `json:"Type"`
}
FreightDensityInfoHandlingUnits Handling Unit for Density based rating container.
type FreightShipmentInformationFreightDensityInfo ¶
type FreightShipmentInformationFreightDensityInfo struct {
// AdjustedHeight Container for the adjusted height. Required if AdjustedHeightIndicator is present.
AdjustedHeight *FreightDensityInfoAdjustedHeight `json:"AdjustedHeight,omitempty"`
// AdjustedHeightIndicator The presence of the AdjustedHeightIndicator indicates that allow the height reduction adjustment for density based rate request.
AdjustedHeightIndicator *string `json:"AdjustedHeightIndicator,omitempty"`
HandlingUnits *[]FreightDensityInfoHandlingUnits `json:"HandlingUnits,omitempty"`
}
FreightShipmentInformationFreightDensityInfo Freight Density Info container. Required if DensityEligibleIndicator is present.
type GlobalTaxInformationAgentTaxIdentificationNumber ¶
type GlobalTaxInformationAgentTaxIdentificationNumber struct {
// AgentRole When the value passed to the AgentRole parameter is 30, the value passed to the IDNumberTypeCode parameter must be 1002, 1005 or 0005. (SHIP_FROM=20, CONSIGNEE=30)
AgentRole string `json:"AgentRole"`
TaxIdentificationNumber *[]AgentTaxIdentificationNumberTaxIdentificationNumber `json:"TaxIdentificationNumber,omitempty"`
}
GlobalTaxInformationAgentTaxIdentificationNumber Container to specify the GlobalTax ID
type HandlingUnitsAdjustedHeight ¶
type HandlingUnitsAdjustedHeight struct {
// UnitOfMeasurement Container for UnitOfMeasurement for the adjusted height.
UnitOfMeasurement AdjustedHeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Value Adjusted Height value for the handling unit. Height Adjustment is done only when Handling unit type is SKD = Skid or PLT = Pallet.
Value string `json:"Value"`
}
HandlingUnitsAdjustedHeight Container to hold Adjusted Height information.
type HandlingUnitsDimensions ¶
type HandlingUnitsDimensions struct {
// Height The height of the line item used to determine dimensional weight.
Height string `json:"Height"`
// Length The length of the line item used to determine dimensional weight.
Length string `json:"Length"`
// UnitOfMeasurement UnitOfMeasurement container.
UnitOfMeasurement HandlingUnitsUnitOfMeasurement `json:"UnitOfMeasurement"`
// Width The width of the line item used to determine dimensional weight.
Width string `json:"Width"`
}
HandlingUnitsDimensions Dimension of the HandlingUnit container for density based pricing.
type HandlingUnitsType ¶
type HandlingUnitsType struct {
// Code Handling Unit Code for Density based rating. Valid values:
// - SKD = Skid
// - CBY = Carboy
// - PLT = Pallet
// - TOT = Totes
// - LOO = Loose
// - OTH = Other
Code string `json:"Code"`
// Description A description of the code for the Handling Unit type.
Description *string `json:"Description,omitempty"`
}
HandlingUnitsType Handling Unit Type for Density based rating.
type HandlingUnitsUnitOfMeasurement ¶
type HandlingUnitsUnitOfMeasurement struct {
// Code Code for UnitOfMeasurement for the line item dimension. Valid value is IN
Code string `json:"Code"`
// Description Description for UnitOfMeasurement for the line item dimension.
Description *string `json:"Description,omitempty"`
}
HandlingUnitsUnitOfMeasurement UnitOfMeasurement container.
type HighValueReportImage ¶
type HighValueReportImage struct {
// GraphicImage Base 64 encoded High Value Report image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container for the High Value Report image format information for Import Control Shipments.
ImageFormat HighValueReportImageImageFormat `json:"ImageFormat"`
}
HighValueReportImage Container tag for the High Value Report image.
type HighValueReportImageImageFormat ¶
type HighValueReportImageImageFormat struct {
// Code Code representing the format in which the High Value Report is generated.
//
// Valid values:
// - PDF = pdf.
Code string `json:"Code"`
// Description Description of the High Value Report image format code.
Description *string `json:"Description,omitempty"`
}
HighValueReportImageImageFormat Container for the High Value Report image format information for Import Control Shipments.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImageImageFormat ¶
type ImageImageFormat struct {
// Code Code representing the format in which the forms are generated. Valid values: PDF = pdf, PNG = png
Code string `json:"Code"`
// Description Description of the form image format code.
Description *string `json:"Description,omitempty"`
}
ImageImageFormat Container tag for the International forms image format information.
type IntermediateConsigneeAddress ¶
type IntermediateConsigneeAddress struct {
// AddressLine Address line of the Intermediate Consignee. Applicable for EEI form only.
AddressLine []string `json:"AddressLine"`
// City City of the Intermediate Consignee. Applicable for EEI form only.
City string `json:"City"`
// CountryCode Country or Territory code of the Intermediate Consignee. Applicable for EEI form only.
CountryCode string `json:"CountryCode"`
// PostalCode Postal code of the Intermediate Consignee. Applicable for EEI form only. Required for certain countries or territories. The length of the postal code depends on the country or territory code.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode State of the Intermediate Consignee. Applicable for EEI form only. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
// Town Town of the Intermediate consignee. Applicable for EEI form only.
Town *string `json:"Town,omitempty"`
}
IntermediateConsigneeAddress Address information of the Intermediate Consignee. Applicable for EEI form only.
type InternationalFormsBlanketPeriod ¶
type InternationalFormsBlanketPeriod struct {
// BeginDate Begin date of the blanket period. It is the date upon which the Certificate becomes applicable to the good covered by the blanket Certificate (it may be prior to the date of signing this Certificate). Applies to USMCA form only. Required for USMCA. Format is yyyyMMdd. This is not valid for a paperless shipment.
BeginDate string `json:"BeginDate"`
// EndDate End Date of the blanket period. It is the date upon which the blanket period expires. Applies to USMCA form only. Required for USMCA CO. Format is yyyyMMdd. This is not valid for a paperless shipment.
EndDate string `json:"EndDate"`
}
InternationalFormsBlanketPeriod This field should be entered if the USMCA Certificate covers multiple shipments of identical goods as described in the Description of Goods field that are imported into a USMCA country or territory for a specified period of up to one year (the blanket period). The importation of a good for which preferential treatment is claimed based on this certificate must occur between these dates. Applies to USMCA form only. Required for USMCA. This is not valid for a paperless shipment.
type InternationalFormsCN22Form ¶
type InternationalFormsCN22Form struct {
CN22Content []CN22FormCN22Content `json:"CN22Content"`
// CN22OtherDescription Required if CN22Type is OTHER. Required if the CN22 form container is present.
CN22OtherDescription *string `json:"CN22OtherDescription,omitempty"`
// CN22Type Valid values:
// 1 = GIFT
// 2 = DOCUMENTS
// 3 = COMMERCIAL SAMPLE
// 4 = OTHER Required if the CN22 form container is present.
CN22Type string `json:"CN22Type"`
// FoldHereText String will replace default "Fold Here" text displayed on the label.
FoldHereText *string `json:"FoldHereText,omitempty"`
// LabelPrintType Valid Values are pdf, png, gif, zpl, star, epl2 and spl.
// Required if the CN22 form container is present.
LabelPrintType string `json:"LabelPrintType"`
// LabelSize Provide the valid values:
// 6 = 4X6
// 1 = 8.5X11
// Required if the CN22 form container is present.
LabelSize string `json:"LabelSize"`
// PrintsPerPage Number of label per page. Currently 1 per page is supported. Required if the CN22 form container is present.
PrintsPerPage string `json:"PrintsPerPage"`
}
InternationalFormsCN22Form Container for the CN22 form. Required if the customer wants to use the UPS generated CN22.
type InternationalFormsContacts ¶
type InternationalFormsContacts struct {
// ForwardAgent The forwarding agent is the company or person acting as agent in the trans-shipping of freight to the destination country or territory. Applicable for EEI form only.
ForwardAgent *ContactsForwardAgent `json:"ForwardAgent,omitempty"`
// IntermediateConsignee The intermediate consignee is the person or company in the importing country or territory that makes final delivery to the ultimate consignee. Applicable for EEI form only.
IntermediateConsignee *ContactsIntermediateConsignee `json:"IntermediateConsignee,omitempty"`
// Producer Information of the producer. The USMCA Certificate of Origin must be completed, signed, and dated by the exporter.
// When the Certificate is completed by the producer for use by the exporter, it must be completed, signed, and dated by the producer. The date must be the date the Certificate was completed and signed. Applies to USMCA. Required for USMCA forms.
Producer *ContactsProducer `json:"Producer,omitempty"`
// SoldTo SoldTo Container. The Sold To party's country code must be the same as the Ship To party's country code with the exception of Canada and satellite countries. Applies to Invoice and USMCA Forms. Required if Invoice or USMCA (International Form) is requested.
SoldTo *ContactsSoldTo `json:"SoldTo,omitempty"`
// UltimateConsignee The ultimate consignee is the person or company who receives the goods for end-use or the person or company listed on the export license. This is the end-user of the goods. Applicable for EEI form only.
UltimateConsignee *ContactsUltimateConsignee `json:"UltimateConsignee,omitempty"`
}
InternationalFormsContacts Holds the contact information of various parties. Applicable for EEI and USMCA only. Required for USMCA and EEI. Ultimate consignee contact information is required for EEI. Producer contact information is required for USMCA
type InternationalFormsDiscount ¶
type InternationalFormsDiscount struct {
// MonetaryValue The discount to be subtracted from the sum of the total value on the invoice. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and optional for Partial Invoice. Valid characters are 0-9 and '.' (Decimal point). Limit to 2 digit after the decimal. The maximum length of the field is 15 including '.' and can hold up to 2 decimal places. This value should be greater than or equal to zero or less than or equal to the value of all goods listed on the invoice.
MonetaryValue string `json:"MonetaryValue"`
}
InternationalFormsDiscount Container tag that holds the discount. Applies to Invoice and Partial Invoice forms only.
type InternationalFormsEEIFilingOption ¶
type InternationalFormsEEIFilingOption struct {
// Code Required for EEI Form. Applicable for EEI form.
// Valid values:
// 1 - Shipper filed,
// 2 - AES Direct,
// 3 - UPS filed.
Code string `json:"Code"`
// Description Optional Description of Filing Code. Applicable for EEI form.
Description *string `json:"Description,omitempty"`
// EMailAddress Email Address where the notification is sent. Valid for UPS filed (option 3), Shipper filed (option 1- A , 1-C) Applicable for EEI form.
EMailAddress *string `json:"EMailAddress,omitempty"`
// ShipperFiled Indicates the EEI Shipper Filed option or AES Direct. (Option 1 or 2). Applicable for EEI form.
ShipperFiled *EEIFilingOptionShipperFiled `json:"ShipperFiled,omitempty"`
// UPSFiled Indicates the EEI UPS Filed option. (option 3) Applicable for EEI form.
UPSFiled *EEIFilingOptionUPSFiled `json:"UPSFiled,omitempty"`
}
InternationalFormsEEIFilingOption EEI Filing option. Applicable for EEI form and is required.
type InternationalFormsFreightCharges ¶
type InternationalFormsFreightCharges struct {
// MonetaryValue Cost to transport the shipment. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and optional for Partial Invoice. Valid characters are 0-9 and '.' (Decimal point). Limit to 2 digit after the decimal. The maximum length of the field is 15 including '.' and can hold up to 2 decimal places.
MonetaryValue string `json:"MonetaryValue"`
}
InternationalFormsFreightCharges Container tag that holds the Freight Charges. Applies to Invoice and Partial Invoice forms only.
type InternationalFormsInsuranceCharges ¶
type InternationalFormsInsuranceCharges struct {
// MonetaryValue The amount the shipper or receiver pays to cover the cost of replacing the shipment if it is lost or damaged. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and optional for Partial Invoice. Valid characters are 0-9 and '.' (Decimal point). Limit to 2 digit after the decimal. The maximum length of the field is 15 including '.' and can hold up to 2 decimal places.
MonetaryValue string `json:"MonetaryValue"`
}
InternationalFormsInsuranceCharges Container tag that holds the Insurance Charges. Applies to Invoice and Partial Invoice forms only.
type InternationalFormsOtherCharges ¶
type InternationalFormsOtherCharges struct {
// Description Description of what the other charges are for. Applies to Invoice and Partial Invoice forms only. Required for Complete Invoice and Optional for Partial Invoice forms.
Description string `json:"Description"`
// MonetaryValue The Monetary value of Other Charges. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and optional for Partial Invoice. Valid characters are 0-9 and '.' (Decimal point). Limit to 2 digit after the decimal. The maximum length of the field is 15 including '.' and can hold up to 2 decimal places.
MonetaryValue string `json:"MonetaryValue"`
}
InternationalFormsOtherCharges Container tag that holds the information of amount that covers additional charges not already listed on the invoice. Applies to Invoice and Partial Invoice forms only.
type InternationalFormsProduct ¶
type InternationalFormsProduct struct {
// CommodityCode 6-to-15-alphanumeric commodity code. Customs uses this code to determine what duties should be assessed on the commodity. Applies to Invoice, Partial Invoice and USMCA. Required for USMCA and optional for Partial Invoice. Should be at least 6 alphanumeric. For USMCA: For each good described in Description of Goods field, identify the H.S. tariff classification to six digits. If the good is subject to a specific rule of origin in Annex 401 that requires eight digits, identify to eight digits, using the H.S. tariff classification of the country or territory into whose territory the good is imported.
CommodityCode *string `json:"CommodityCode,omitempty"`
DDSReferenceNumber *ProductDDSReferenceNumber `json:"DDSReferenceNumber,omitempty"`
// Description Description of the product. Applies to all International Forms. Optional for Partial Invoice. Must be present at least once and can occur for a maximum of 3 times.
Description []string `json:"Description"`
// EEIInformation Required for EEI form. Applies to EEI form only.
EEIInformation *ProductEEIInformation `json:"EEIInformation,omitempty"`
// ExcludeFromForm Container tag for determining whether or not to exclude product information from a particular form. If this container is not present we assume that the DEFAULT is selected which is "none" and all products will appear on all forms.
ExcludeFromForm *ProductExcludeFromForm `json:"ExcludeFromForm,omitempty"`
// ExportType Code indicating Domestic: Exports that have been produced, manufactured, or grown in the United States or Puerto Rico. This includes imported merchandise which has been enhanced in value or changed from the form in which imported by further manufacture or processing in the United States or Puerto Rico. Foreign: Merchandise that has entered the United States and is being exported again in the same condition as when imported. Applies to EEI forms only. Required for EEI form. Valid values: D: Domestic; F: Foreign.
ExportType *string `json:"ExportType,omitempty"`
// JointProductionIndicator If present, JNT will be used as the origin of country or territory code on the USMCA form and the Product/Origincountry or territoryCode tag will be ignored. Applies to USMCA only.
JointProductionIndicator *string `json:"JointProductionIndicator,omitempty"`
// MarksAndNumbers Any special marks, codes, and numbers that may appear on package. Applies to CO Only.
MarksAndNumbers *string `json:"MarksAndNumbers,omitempty"`
// NetCostCode For each good described in the Description of Goods field, where the good is subject to a regional value content (RVC) requirement, indicate NC if the RVC is calculated according to the net cost method; otherwise, indicate NO. If the RVC is calculated over a period of time then indicate "NC with begin/end date" by passing code "ND" Applies to USMCA only. Required for USMCA. Valid values:
// - NC
// - ND
// - NO
NetCostCode *string `json:"NetCostCode,omitempty"`
// NetCostDateRange Date Range for regional value content (RVC). Applies to USMCA CO only.
NetCostDateRange *ProductNetCostDateRange `json:"NetCostDateRange,omitempty"`
// NumberOfPackagesPerCommodity The total number of packages, cartons, or containers for the commodity. Applicable for CO and is required. Should be numeric. Valid characters are 0 -9.
NumberOfPackagesPerCommodity *string `json:"NumberOfPackagesPerCommodity,omitempty"`
// OriginCountryCode The country or territory in which the good was manufactured, produced or grown. For detailed information on country or territory of origin, certificate of origin, rules of origin, and any related matters, please refer to the U.S. Customs and Border Protection Web site at www.customs.gov or contact your country or territory's Customs authority.
OriginCountryCode *string `json:"OriginCountryCode,omitempty"`
// PackingListInfo Data Container holding package related information. Required for packaging list, Air Freight Packing list and multi-piece Economy shipments.
PackingListInfo *ProductPackingListInfo `json:"PackingListInfo,omitempty"`
// PartNumber The part number or reference number for the product contained in the invoice line, as indicated on the customs invoice. Applies to Invoice and Partial Invoice. Required for Invoice forms and optional for Partial Invoice.
PartNumber *string `json:"PartNumber,omitempty"`
// PreferenceCriteria Indicates the criterion (A through F) for each good described in the Description of Goods field if applicable.
//
// The rules of origin are contained in Chapter Four and Annex 401.
//
// Additional rules are described in Annex 703.2 (certain agricultural goods), Annex 300-B, Appendix 6 (certain textile goods) and Annex 308.1 (certain automatic data processing goods and their parts). Applies to USMCA only.
PreferenceCriteria *string `json:"PreferenceCriteria,omitempty"`
// ProducerInfo Indicate the following: Yes - If shipper is the producer of the good. If not, state 02, 03, and 04 depending on whether this certificate was based upon:
// No [1] - Knowledge of whether the good qualifies as an originating good.
// No [2] - Reliance on the producers written representation (other than a Certificate of Origin) that the good qualifies as an originating good.
// No [3] - A completed and signed Certificate for the good voluntarily provided to the exporter by the producer. Applicable for USMCA and is required. Valid values: Yes, No [1], No [2], and No [3].
ProducerInfo *string `json:"ProducerInfo,omitempty"`
// ProductIdentifier The Product Identifier array contains the following pair of fields<br/>1) Product ID<br/>2) Product ID Type Code. <br/>Required if ProductIdentifierExemptIndicator is false. Conditionally Required for EU Inbound shipments.
ProductIdentifier *[]InternationalFormsProductIdentifier `json:"ProductIdentifier,omitempty"`
// ProductIdentifierExemptIndicator If the exemption indicator is set to true, the Product Identifiers are optional and not required. Valid values are true/false. Conditionally Required for EU Inbound shipments.
ProductIdentifierExemptIndicator *bool `json:"ProductIdentifierExemptIndicator,omitempty"`
// ProductWeight The shipping weight, including containers, for each commodity with a separate Harmonized Tariff Code / Schedule B Number. This weight does not include carrier equipment. Applies to CO and EEI forms only. Required for CO and EEI forms.
ProductWeight *ProductProductWeight `json:"ProductWeight,omitempty"`
// SEDTotalValue This amount will always be USD. Applies to EEI forms only. Required for EEI form. Valid characters are 0-9 and \'.\' (Decimal point). Limit to 2 digit after the decimal. The maximum length of the field is 15 including \'.\' and can hold up to 2 decimal places.
//
// Note: This value is calculated based on the Product/Unit/Value and /Product/Unit/Number (Number of Units * Price per Unit). If the total value is incorrect it will be replaced by the actual calculated total value.
SEDTotalValue *string `json:"SEDTotalValue,omitempty"`
// ScheduleB Container tag for the schedule B information of a commodity. Applies to EEI forms only. Required for EEI form
ScheduleB *ProductScheduleB `json:"ScheduleB,omitempty"`
// TaxesPaid Invoice Commodity Level Tax Collected Code for each shipment commodity line.Taxes paid Indicator is only applicable for shipments to Singapore. [TaxesPaid = 0 - No on Report], [TaxesPaid = 1 -Yes on Report], [TaxesPaid = empty - null on Report], [If TaxesPaid is not passed in input request = null on Report]
TaxesPaid *string `json:"TaxesPaid,omitempty"`
// Unit Container tag for the Unit information of each product. (also called as commodity) Required for Invoice forms and optional for Partial Invoice.
Unit *ProductUnit `json:"Unit,omitempty"`
// VehicleID Includes the following information for used self-propelled vehicles as defined in Customs regulations 19 CFR 192.1: The unique Vehicle Identification Number (VIN) in the proper format. Or The Product Identification Number (PIN) for those used self-propelled vehicles for which there are no VINs. Or the Vehicle Title Number. Applies to EEI forms only.
VehicleID *string `json:"VehicleID,omitempty"`
}
InternationalFormsProduct Contains the commodity/product information. Applies to EEI, Invoice, Partial Invoice, CO and USMCA. When any International form is requested, at least one Product must be present.
Maximum number of products allowed for different forms are:
50: Package Packing List
100: Commercial Invoice, USMCA, CO, EEI
1000: Air Freight packing list
Note: For Partial Invoice this container is optional.
type InternationalFormsProductIdentifier ¶
type InternationalFormsProductIdentifier struct {
// ProductID A generic field that can contain any type of product identifier used to specify a commodity/product. Every Product ID field must have a corresponding Product ID Type Code field to specify the type of product identifier it contains. This field can hold any one of the defined Product Identifiers - Merchant Product Identifier, Manufacturer Product Identifier and Standardized Product Identifier. Conditionally Required for EU Inbound shipments.
ProductID *string `json:"ProductID,omitempty"`
// ProductIDTypeCode A code that specifies the type of product identifier in the Product ID field. Conditionally Required for EU Inbound shipments.<br/>Valid values<br/>0100 = Merchant Product Identifier<br/>0200 = Manufacturer Product Identifier<br/>0300 = Standardized Product Identifier.
ProductIDTypeCode *string `json:"ProductIDTypeCode,omitempty"`
}
InternationalFormsProductIdentifier Container for Product Identifier information.
type InternationalFormsUPSPremiumCareForm ¶
type InternationalFormsUPSPremiumCareForm struct {
// LanguageForUPSPremiumCare Container to hold languages in which UPS Premium Care Form is required.
LanguageForUPSPremiumCare UPSPremiumCareFormLanguageForUPSPremiumCare `json:"LanguageForUPSPremiumCare"`
// NumOfCopies Number of Copies of UPS Premium Care Form. Valid value is 02.
NumOfCopies string `json:"NumOfCopies"`
// PageSize Size of UPS Premium Care Form. Valid values:
// 01 = A4 Size
// 02 = Letter Size
PageSize string `json:"PageSize"`
// PrintType Format of UPS Premium Care Form. Valid values:
// 01 = PNG
// 02 = PDF
PrintType string `json:"PrintType"`
// ShipmentDate Shipment Date associated with UPS Premium Care Shipment. Valid Format: yyyyMMdd
ShipmentDate string `json:"ShipmentDate"`
}
InternationalFormsUPSPremiumCareForm UPS Premium Care Form is required if UPS Premium Care Indicator is present on a package. Valid only for Canada to Canada movements.
type InternationalFormsUserCreatedForm ¶
type InternationalFormsUserCreatedForm struct {
// DocumentID DocumentID represents a document uploaded to Forms History.
DocumentID []string `json:"DocumentID"`
}
InternationalFormsUserCreatedForm Data container for DocumentID(s). Required if Form Type is 07.
type LABELRECOVERYRequestWrapper ¶
type LABELRECOVERYRequestWrapper struct {
// LabelRecoveryRequest Request for obtaining the Label for the return shipment.
LabelRecoveryRequest LabelRecoveryRequest `json:"LabelRecoveryRequest"`
}
LABELRECOVERYRequestWrapper N/A
type LABELRECOVERYResponseWrapper ¶
type LABELRECOVERYResponseWrapper struct {
// LabelRecoveryResponse Response for the Label recovery request Validates the date range and label being present. Also if the shipment is return or not
LabelRecoveryResponse LabelRecoveryResponse `json:"LabelRecoveryResponse"`
}
LABELRECOVERYResponseWrapper N/A
type LRCODTurnInPageImage ¶
type LRCODTurnInPageImage struct {
// GraphicImage Base64 Encoded COD Turnin Page image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container for the format of image.
ImageFormat LRCODTurnInPageImageImageFormat `json:"ImageFormat"`
}
LRCODTurnInPageImage Container for COD Turnin Page Image.
type LRCODTurnInPageImageImageFormat ¶
type LRCODTurnInPageImageImageFormat struct {
// Code Image format code. Values are 01=HTML
Code string `json:"Code"`
// Description Description for code.
Description *string `json:"Description,omitempty"`
}
LRCODTurnInPageImageImageFormat Container for the format of image.
type LRFormImage ¶
type LRFormImage struct {
// GraphicImage Base 64 encoded International Forms image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container tag for the International forms image format information.
ImageFormat ImageImageFormat `json:"ImageFormat"`
}
LRFormImage Container tag for the International Forms image.
type LRRequestTransactionReference ¶
type LRRequestTransactionReference struct {
// CustomerContext The CustomerContext Information which will be echoed during response
CustomerContext *string `json:"CustomerContext,omitempty"`
}
LRRequestTransactionReference Container that identifies transactions between client and server.
type LRResponseResponseStatus ¶
type LRResponseResponseStatus struct {
// Code Identifies the success status of the transaction. 1= Success
Code string `json:"Code"`
// Description Describes Response Status Code. Returns the text "Success"
Description string `json:"Description"`
}
LRResponseResponseStatus Response Status container
type LRResponseTransactionReference ¶
type LRResponseTransactionReference struct {
// CustomerContext The CustomerContext Information which will be echoed during response
CustomerContext *string `json:"CustomerContext,omitempty"`
}
LRResponseTransactionReference Transaction Reference Container
type LTLDimensions ¶
type LTLDimensions struct {
// Height Height of the package/ltl.
Height string `json:"Height"`
// Length Length of the package/ltl.
Length string `json:"Length"`
// UnitOfMeasurement The code associated with unit of measurement. The requested code must be valid for the shipper country or territory.
//
// Valid values are :
//
// - IN = Inches
// - CM = Centimeters
UnitOfMeasurement LTLDimensionsUnitOfMeasurement `json:"UnitOfMeasurement"`
// Width Width of the package/ltl.
Width string `json:"Width"`
}
LTLDimensions Dimensions for the handling unit.
type LTLDimensionsUnitOfMeasurement ¶
type LTLDimensionsUnitOfMeasurement string
LTLDimensionsUnitOfMeasurement The code associated with unit of measurement. The requested code must be valid for the shipper country or territory.
Valid values are :
- IN = Inches - CM = Centimeters
const ( LTLDimensionsUnitOfMeasurementCM LTLDimensionsUnitOfMeasurement = "CM" LTLDimensionsUnitOfMeasurementIN LTLDimensionsUnitOfMeasurement = "IN" )
Defines values for LTLDimensionsUnitOfMeasurement.
type LTLHandlingUnits ¶
type LTLHandlingUnits struct {
// Dimensions Dimensions for the handling unit.
Dimensions LTLDimensions `json:"Dimensions"`
// FreightClass Freight class of the handling unit.
//
// Valid values are:
//
// - 50 = over 50 lbs - Fits on standard shrink-wrapped 4X4 pallet, very durable
// - 55 = 35-50 pounds - Bricks, cement, mortar, hardwood flooring
// - 60 = 30-35 pounds - Car accessories & car parts
// - 65 = 22.5-30 pounds - Car accessories & car parts, bottled beverages, books in boxes
// - 70 = 15 to 22.5 pounds - Car accessories & car parts, food items, automobile engines
// - 77.5 = 13.5 to 15 pounds - Tires, bathroom fixtures
// - 85 = 12-13.5 pounds - Crated machinery, cast iron stoves
// - 92.5 = 10.5-12 pounds - Computers, monitors, refrigerators
// - 100 = 9-10.5 pounds - Boat covers, car covers, canvas, wine cases, caskets
// - 110 = 8-9 pounds - Cabinets, framed artwork, table saw
// - 125 = 7-8 pounds - Small Household appliances
// - 150 = 6-7 pounds - Auto sheet metal parts, bookcases
// - 175 = 5-6 pounds - Clothing, couches stuffed furniture
// - 200 = 4-5 pounds - Auto sheet metal parts, aircraft parts, aluminum table, packaged mattresses
// - 250 = 3-4 pounds - Bamboo furniture, mattress and box spring, plasma TV
// - 300 = 2-3 pounds - Wood cabinets, tables, chairs setup, model boats
// - 400 = 1-2 pounds - Deer antlers
// - 500 = Less than 1 lbs - Bags of gold dust, ping pong balls
FreightClass LTLHandlingUnitsFreightClass `json:"FreightClass"`
// PackageWeight Weight for the handling unit.
PackageWeight LTLPackageWeightType `json:"PackageWeight"`
// Quantity Quantity of handling units.
Quantity string `json:"Quantity"`
// Type Type of handling unit.
Type LTLHandlingUnitsType `json:"Type"`
}
LTLHandlingUnits Used to provide information about the handling units in the package/ltl.
type LTLHandlingUnitsFreightClass ¶
type LTLHandlingUnitsFreightClass string
LTLHandlingUnitsFreightClass Freight class of the handling unit.
Valid values are:
- 50 = over 50 lbs - Fits on standard shrink-wrapped 4X4 pallet, very durable - 55 = 35-50 pounds - Bricks, cement, mortar, hardwood flooring - 60 = 30-35 pounds - Car accessories & car parts - 65 = 22.5-30 pounds - Car accessories & car parts, bottled beverages, books in boxes - 70 = 15 to 22.5 pounds - Car accessories & car parts, food items, automobile engines - 77.5 = 13.5 to 15 pounds - Tires, bathroom fixtures - 85 = 12-13.5 pounds - Crated machinery, cast iron stoves - 92.5 = 10.5-12 pounds - Computers, monitors, refrigerators - 100 = 9-10.5 pounds - Boat covers, car covers, canvas, wine cases, caskets - 110 = 8-9 pounds - Cabinets, framed artwork, table saw - 125 = 7-8 pounds - Small Household appliances - 150 = 6-7 pounds - Auto sheet metal parts, bookcases - 175 = 5-6 pounds - Clothing, couches stuffed furniture - 200 = 4-5 pounds - Auto sheet metal parts, aircraft parts, aluminum table, packaged mattresses - 250 = 3-4 pounds - Bamboo furniture, mattress and box spring, plasma TV - 300 = 2-3 pounds - Wood cabinets, tables, chairs setup, model boats - 400 = 1-2 pounds - Deer antlers - 500 = Less than 1 lbs - Bags of gold dust, ping pong balls
const ( N100 LTLHandlingUnitsFreightClass = "100" N110 LTLHandlingUnitsFreightClass = "110" N125 LTLHandlingUnitsFreightClass = "125" N150 LTLHandlingUnitsFreightClass = "150" N175 LTLHandlingUnitsFreightClass = "175" N200 LTLHandlingUnitsFreightClass = "200" N250 LTLHandlingUnitsFreightClass = "250" N300 LTLHandlingUnitsFreightClass = "300" N400 LTLHandlingUnitsFreightClass = "400" N50 LTLHandlingUnitsFreightClass = "50" N500 LTLHandlingUnitsFreightClass = "500" N55 LTLHandlingUnitsFreightClass = "55" N60 LTLHandlingUnitsFreightClass = "60" N65 LTLHandlingUnitsFreightClass = "65" N70 LTLHandlingUnitsFreightClass = "70" N775 LTLHandlingUnitsFreightClass = "77.5" N85 LTLHandlingUnitsFreightClass = "85" N925 LTLHandlingUnitsFreightClass = "92.5" )
Defines values for LTLHandlingUnitsFreightClass.
type LTLHandlingUnitsType ¶
type LTLHandlingUnitsType string
LTLHandlingUnitsType Type of handling unit.
const ( BAGS LTLHandlingUnitsType = "BAGS" BOXES LTLHandlingUnitsType = "BOXES" CARTONS LTLHandlingUnitsType = "CARTONS" CRATES LTLHandlingUnitsType = "CRATES" DRUMS LTLHandlingUnitsType = "DRUMS" PALLETSKIDS LTLHandlingUnitsType = "PALLET_SKIDS" ROLLS LTLHandlingUnitsType = "ROLLS" TUBES LTLHandlingUnitsType = "TUBES" )
Defines values for LTLHandlingUnitsType.
type LTLOtherCharges ¶
type LTLOtherCharges struct {
// ChargeDescription Description of what the other charges are for.
ChargeDescription string `json:"ChargeDescription"`
// MonetaryValue The amount the shipper or receiver pays to cover the cost associated with the LTL Charges.
MonetaryValue string `json:"MonetaryValue"`
}
LTLOtherCharges Any other miscellaneous charges.
type LTLPackageWeightType ¶
type LTLPackageWeightType struct {
// UnitOfMeasurement Unit of measurement of the weight.
//
// Valid values are:
//
// - KGS = Kilograms
// - LBS = Pounds
UnitOfMeasurement LTLPackageWeightTypeUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Weight of the package/ltl.
Weight string `json:"Weight"`
}
LTLPackageWeightType Weight for the handling unit.
type LTLPackageWeightTypeUnitOfMeasurement ¶
type LTLPackageWeightTypeUnitOfMeasurement string
LTLPackageWeightTypeUnitOfMeasurement Unit of measurement of the weight.
Valid values are:
- KGS = Kilograms - LBS = Pounds
const ( KGS LTLPackageWeightTypeUnitOfMeasurement = "KGS" LBS LTLPackageWeightTypeUnitOfMeasurement = "LBS" )
Defines values for LTLPackageWeightTypeUnitOfMeasurement.
type LTLReferenceNumber ¶
type LTLReferenceNumber struct {
// Code Reference number code supplied by customer.
//
// Valid values are:
//
// - PO = Purchase Order Number
// - REF = Reference Number
// - INV = Invoice Number
Code LTLReferenceNumberCode `json:"Code"`
// Value Reference number supplied by customer.
Value string `json:"Value"`
}
LTLReferenceNumber LTL Reference number.
type LTLReferenceNumberCode ¶
type LTLReferenceNumberCode string
LTLReferenceNumberCode Reference number code supplied by customer.
Valid values are:
- PO = Purchase Order Number - REF = Reference Number - INV = Invoice Number
const ( INV LTLReferenceNumberCode = "INV" PO LTLReferenceNumberCode = "PO" REF LTLReferenceNumberCode = "REF" )
Defines values for LTLReferenceNumberCode.
type LabelDeliveryEMail ¶
type LabelDeliveryEMail struct {
// EMailAddress The destination eMail address for the Label Delivery.
EMailAddress string `json:"EMailAddress"`
}
LabelDeliveryEMail Container for the email message.
type LabelImageLabelImageFormat ¶
type LabelImageLabelImageFormat struct {
// Code The format of a label image byte stream. Code type that the label image is to be generated in. Valid value returned is GIF or PDF
Code string `json:"Code"`
}
LabelImageLabelImageFormat The format of a label image byte stream.
type LabelRecoveryFormImage ¶
type LabelRecoveryFormImage struct {
// GraphicImage Base 64 encoded International Forms image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container tag for the International forms image format information.
ImageFormat LabelRecoveryImageImageFormat `json:"ImageFormat"`
}
LabelRecoveryFormImage Container tag for the International Forms image.
type LabelRecoveryImageImageFormat ¶
type LabelRecoveryImageImageFormat struct {
// Code Code representing the format in which the Forms are generated. Valid values: PDF = pdf
Code string `json:"Code"`
// Description Description of the form image format code.
Description *string `json:"Description,omitempty"`
}
LabelRecoveryImageImageFormat Container tag for the International forms image format information.
type LabelRecoveryLabelSpecificationLabelImageFormat ¶
type LabelRecoveryLabelSpecificationLabelImageFormat struct {
// Code File type that the label is to be generated in. Valid values are:
// - GIF -- label is in HTML format.
// - PDF -- label is in PDF format.
// - ZPL -- Thermal label in ZPL format.
// - EPL -- Thermal label in EPL2 format.
// - SPL -- Thermal label in SPL format.
//
// Default is GIF.
//
// Roadie shipments only support GIF, PNG, and ZPL formats.
Code string `json:"Code"`
// Description Description of the label image format code.
Description *string `json:"Description,omitempty"`
}
LabelRecoveryLabelSpecificationLabelImageFormat The file format of the label and receipt. Defaults to HTML format if this node does not exist.
type LabelRecoveryLabelSpecificationLabelStockSize ¶
type LabelRecoveryLabelSpecificationLabelStockSize struct {
// Height Height of the Label. Only valid values are 6 or 8.
//
// Note: Label Image will only scale up to 4 X 6, even when requesting 4 X 8.
Height string `json:"Height"`
// Width Width of the Label. Valid value is 4.
//
// Note: Label Image will only scale up to 4 X 6, even when requesting 4 X 8.
Width string `json:"Width"`
}
LabelRecoveryLabelSpecificationLabelStockSize Container to hold Label Height and Width information. Applicable if Label Image Code is ZPL, EPL and SPL. Ignored for other Label Image Code types.
type LabelRecoveryOpJSONRequestBody ¶
type LabelRecoveryOpJSONRequestBody = LABELRECOVERYRequestWrapper
LabelRecoveryOpJSONRequestBody defines body for LabelRecoveryOp for application/json ContentType.
type LabelRecoveryOpParams ¶
type LabelRecoveryOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
LabelRecoveryOpParams defines parameters for LabelRecoveryOp.
type LabelRecoveryOpResponse ¶
type LabelRecoveryOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LABELRECOVERYResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseLabelRecoveryOpResponse ¶
func ParseLabelRecoveryOpResponse(rsp *http.Response) (*LabelRecoveryOpResponse, error)
ParseLabelRecoveryOpResponse parses an HTTP response from a LabelRecoveryOpWithResponse call
func (LabelRecoveryOpResponse) Status ¶
func (r LabelRecoveryOpResponse) Status() string
Status returns HTTPResponse.Status
func (LabelRecoveryOpResponse) StatusCode ¶
func (r LabelRecoveryOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LabelRecoveryRequest ¶
type LabelRecoveryRequest struct {
// LabelDelivery Container for the Label Delivery accessorial. One Label Delivery per shipment.
LabelDelivery *LabelRecoveryRequestLabelDelivery `json:"LabelDelivery,omitempty"`
// LabelSpecification Container that is used to define the properties required by the user to print and/ or display the UPS shipping label. Required for the shipment without return service, or shipment with PRL return service.
LabelSpecification *LabelRecoveryRequestLabelSpecification `json:"LabelSpecification,omitempty"`
// Locale Represents 5 character ISO Locale that allows the user to request Reference Number Code on Label, Label instructions, Receipt instructions (if available for given tracking number) and High Value Report (if available for given tracking number) in desired language.
// Locale is specified by the combination of language code and country or territory code - 2 character language code and 2 character country code seperated by an underscore ('_') character. Example - de_DE. Please refer to Appendix for supported values for Locale. Either Translate container or Locale element can be present in a given request. Both can't be requested together in same request.
Locale *string `json:"Locale,omitempty"`
// MailInnovationsTrackingNumber Mail Innovations Tracking Number. Required if Tracking Number or ReferenceNumber/Value is not populated.
// If only MailInnovationsTrackingNumber is provided, the request will be treated as Single Mail Innovations Return Shipment. Label Recovery will return label for Mail Innovations Return Tracking Number.
// If both, TrackingNumber and MailInnovationsTrackingNumber are provided, the request will be treated as Dual Mail Innovations Return Shipment. Label Recovery will return two labels one each for - Small Package Tracking Number and Mail Innovations Return Tracking Number.
MailInnovationsTrackingNumber *string `json:"MailInnovationsTrackingNumber,omitempty"`
// ReferenceValues Container that holds reference number and shipper number If tracking number is not present use reference Number. This is mandatory for only Roadie shipments.
ReferenceValues LabelRecoveryRequestReferenceValues `json:"ReferenceValues"`
// Request Request Container.
Request LabelRecoveryRequestRequest `json:"Request"`
// TrackingNumber Small Package Tracking Number. Required if Mail Innovations Tracking Number or ReferenceNumber/Value and ShipperNumber is not provided. If only TrackingNumber is provided, the request will be treated as Small Package Shipment. Label Recovery will return label for Small Package Tracking Number.
// If both, TrackingNumber and MailInnovationsTrackingNumber are provided, the request will be treated as Dual Mail Innovations Return Shipment. Label Recovery will return two labels one each for - Small Package Tracking Number and Mail Innovations Return Tracking Number.
TrackingNumber *string `json:"TrackingNumber,omitempty"`
// TrackingNumbers List of Roadie (1R) tracking numbers associated with the label recovery request. Each tracking number must start with "1R" or "1r" and must be either 16 characters (offline) or 28 characters (online) in length.
TrackingNumbers []string `json:"TrackingNumbers"`
// Translate Translate container allows the user to specify the language he/she would like a specific portion of response to return.
// The language is specified by the combination of language code and dialect code.
// Valid combinations are: LanguageCode + DialectCode. Either Translate container or Locale element can be present in a given request. Both can't be requested together in same request.
// Combinations:
// eng GB = Queen's English
// Spa 97 = Castilian Spanish
// ita 97 = Italian
// fra 97 = France French
// fra CA = Canadian French
// deu 97 = German
// por 97 = Portugal Portuguese
// nld 97 = Dutch
// dan 97 = Danish
// fin 97 = Finnish
// swe 97 = Swedish
// eng CA = Canadian English
// Eng US = US English
// Default language is Queen's English
//
// If the Ship from country or territory is Canada, the Language defaults to Canadian English.
//
// If the ship from country or territory is US, the language defaults to US English.
//
// If shipping from some other country or territory, the language defaults to Queens English.
Translate *LabelRecoveryRequestTranslate `json:"Translate,omitempty"`
// UPSPremiumCareForm UPS Premium Care Form container. Default is PDF when container is not provided.
// Valid only for Canada to Canada movements. UPS Premium Care Form will be returned in both US English and Canadian French language.
UPSPremiumCareForm *LabelRecoveryRequestUPSPremiumCareForm `json:"UPSPremiumCareForm,omitempty"`
}
LabelRecoveryRequest Request for obtaining the Label for the return shipment.
type LabelRecoveryRequestLabelDelivery ¶
type LabelRecoveryRequestLabelDelivery struct {
// LabelLinkIndicator Indicates the Label Recovery and Receipt Recovery URL links are to be returned in the XML Response. Valid for following shipment -
// Print/Electronic Return Label
// Print/Electronic Import Control Label
// Forward shipment except for Mail Innovations Forward
LabelLinkIndicator *string `json:"LabelLinkIndicator,omitempty"`
// ResendEMailIndicator Not Used. If this tag is present, resend the Label Delivery notification email.
ResendEMailIndicator *string `json:"ResendEMailIndicator,omitempty"`
}
LabelRecoveryRequestLabelDelivery Container for the Label Delivery accessorial. One Label Delivery per shipment.
type LabelRecoveryRequestLabelSpecification ¶
type LabelRecoveryRequestLabelSpecification struct {
// HTTPUserAgent Browser HTTPUserAgent String. This is the preferred way of identifying GIF image type to be generated. Required if <Root node>/ LabelSpecification/LabelImageFormat/Code = Gif. Default to Mozilla/4.5 if this field is missing or has invalid value.
HTTPUserAgent *string `json:"HTTPUserAgent,omitempty"`
// LabelImageFormat The file format of the label and receipt. Defaults to HTML format if this node does not exist.
LabelImageFormat *LabelRecoveryLabelSpecificationLabelImageFormat `json:"LabelImageFormat,omitempty"`
// LabelStockSize Container to hold Label Height and Width information. Applicable if Label Image Code is ZPL, EPL and SPL. Ignored for other Label Image Code types.
LabelStockSize *LabelRecoveryLabelSpecificationLabelStockSize `json:"LabelStockSize,omitempty"`
}
LabelRecoveryRequestLabelSpecification Container that is used to define the properties required by the user to print and/ or display the UPS shipping label. Required for the shipment without return service, or shipment with PRL return service.
type LabelRecoveryRequestReferenceValues ¶
type LabelRecoveryRequestReferenceValues struct {
// ReferenceNumber Container for reference number
ReferenceNumber ReferenceValuesReferenceNumber `json:"ReferenceNumber"`
// ShipperNumber Required if ReferenceNumber/Value is populated. Shipper's six digit account number. Must be six alphanumeric characters. Must be associated with the Internet account used to login.
ShipperNumber string `json:"ShipperNumber"`
}
LabelRecoveryRequestReferenceValues Container that holds reference number and shipper number If tracking number is not present use reference Number. This is mandatory for only Roadie shipments.
type LabelRecoveryRequestRequest ¶
type LabelRecoveryRequestRequest struct {
// RequestOption Request option is no longer used.
RequestOption *string `json:"RequestOption,omitempty"`
// SubVersion When UPS introduces new elements in the response that are not associated with new request elements, Subversion is used. This ensures backward compatibility.
//
// To get such elements you need to have the right Subversion. The value of the subversion is explained in the Response element Description. To support Roadie labels, the API version in the URL must be v2603.
//
// Format: YYMM = Year and month of the release.
// Example: 1701 = 2017 January Supported values: 1701, 1707, 1903, 2603
SubVersion *string `json:"SubVersion,omitempty"`
// TransactionReference Container that identifies transactions between client and server.
TransactionReference *LRRequestTransactionReference `json:"TransactionReference,omitempty"`
}
LabelRecoveryRequestRequest Request Container.
type LabelRecoveryRequestTranslate ¶
type LabelRecoveryRequestTranslate struct {
// Code Used to specify what will be translated.
// Valid code:
// 01 = label direction instructions and receipt
Code string `json:"Code"`
// DialectCode Valid dialect codes are:
// - CA - Canada
// - GB - Great Britain
// - US - United States
// - 97 – Not Applicable
DialectCode string `json:"DialectCode"`
// LanguageCode The Language code. The language codes are three letter language codes. Supported languages are:
// - eng - English
// - spa - Spanish
// - ita - Italian
// - fra - French
// - deu - German
// - por -Portuguese
// - nld – Dutch
// - dan - Danish
// - fin - Finnish
// - swe – Swedish
// - nor – Norwegian
LanguageCode string `json:"LanguageCode"`
}
LabelRecoveryRequestTranslate Translate container allows the user to specify the language he/she would like a specific portion of response to return. The language is specified by the combination of language code and dialect code. Valid combinations are: LanguageCode + DialectCode. Either Translate container or Locale element can be present in a given request. Both can't be requested together in same request. Combinations: eng GB = Queen's English Spa 97 = Castilian Spanish ita 97 = Italian fra 97 = France French fra CA = Canadian French deu 97 = German por 97 = Portugal Portuguese nld 97 = Dutch dan 97 = Danish fin 97 = Finnish swe 97 = Swedish eng CA = Canadian English Eng US = US English Default language is Queen's English
If the Ship from country or territory is Canada, the Language defaults to Canadian English.
If the ship from country or territory is US, the language defaults to US English.
If shipping from some other country or territory, the language defaults to Queens English.
type LabelRecoveryRequestUPSPremiumCareForm ¶
type LabelRecoveryRequestUPSPremiumCareForm struct {
// PageSize Size of UPS Premium Care Form. Valid values:
// 01 = A4 Size
// 02 = Letter Size
PageSize string `json:"PageSize"`
// PrintType Format of UPS Premium Care Form. Valid values:
// 01 = PNG
// 02 = PDF
PrintType string `json:"PrintType"`
}
LabelRecoveryRequestUPSPremiumCareForm UPS Premium Care Form container. Default is PDF when container is not provided.
Valid only for Canada to Canada movements. UPS Premium Care Form will be returned in both US English and Canadian French language.
type LabelRecoveryResponse ¶
type LabelRecoveryResponse struct {
// CODTurnInPage Container for COD Turnin Page.
CODTurnInPage *LabelRecoveryResponseCODTurnInPage `json:"CODTurnInPage,omitempty"`
// Form Container tag for the International Forms. Currently, represents Commercial Invoice for Electronic Returns Label and Electronic Import Control Label. Applicable for Electronic Return Label and Electronic Import Control Label shipments only. Returned for request with SubVersion greater than or equal to 1707.
Form *LabelRecoveryResponseForm `json:"Form,omitempty"`
// HighValueReport Container tag for the High Value Report for Electronic Returns Label and Electronic Import Control Label. Applicable for Electronic Return Label and Electronic Import Control Label shipments only. Returned for request with SubVersion greater than or equal to 1707.
HighValueReport *LabelRecoveryResponseHighValueReport `json:"HighValueReport,omitempty"`
LabelResults []LabelRecoveryResponseLabelResults `json:"LabelResults"`
// Response Response Container
Response LabelRecoveryResponseResponse `json:"Response"`
// ShipmentIdentificationNumber Tracking number of the leading package in the shipment
ShipmentIdentificationNumber *string `json:"ShipmentIdentificationNumber,omitempty"`
TrackingCandidate *[]LabelRecoveryResponseTrackingCandidate `json:"TrackingCandidate,omitempty"`
}
LabelRecoveryResponse Response for the Label recovery request Validates the date range and label being present. Also if the shipment is return or not
type LabelRecoveryResponseCODTurnInPage ¶
type LabelRecoveryResponseCODTurnInPage struct {
// Image Container for COD Turnin Page Image.
Image LRCODTurnInPageImage `json:"Image"`
}
LabelRecoveryResponseCODTurnInPage Container for COD Turnin Page.
type LabelRecoveryResponseForm ¶
type LabelRecoveryResponseForm struct {
// Image Container tag for the International Forms image.
Image LabelRecoveryFormImage `json:"Image"`
}
LabelRecoveryResponseForm Container tag for the International Forms. Currently, represents Commercial Invoice for Electronic Returns Label and Electronic Import Control Label. Applicable for Electronic Return Label and Electronic Import Control Label shipments only. Returned for request with SubVersion greater than or equal to 1707.
type LabelRecoveryResponseHighValueReport ¶
type LabelRecoveryResponseHighValueReport struct {
// Image Container tag for the High Value Report image.
Image HighValueReportImage `json:"Image"`
}
LabelRecoveryResponseHighValueReport Container tag for the High Value Report for Electronic Returns Label and Electronic Import Control Label. Applicable for Electronic Return Label and Electronic Import Control Label shipments only. Returned for request with SubVersion greater than or equal to 1707.
type LabelRecoveryResponseLabelResults ¶
type LabelRecoveryResponseLabelResults struct {
// Form Container tag for the International Forms. Currently, represents UPS Premium Care Form for Electronic Returns Label and Electronic Import Control Label. UPS Premium Care Form for Forward shipment if Subverion is 1903 or greater Applicable for Electronic Return Label and Electronic Import Control Label shipments only. Applies only for Canada domestic shipments. Returned for request with SubVersion greater than or equal to 1707. UPS Premium Care Form for Forward shipment if Subverion is 1903 or greater
Form *LabelResultsForm `json:"Form,omitempty"`
// LabelImage The elements needed to render a label on a printer or in a browser. Specifies the format in which GraphicImage is represented. If LabelImageFormat is GIF, LabelImage contains GraphicImage and HTMLImage. Otherwise, it contains only GraphicImage. If LabelImageFormat is PDF, LabelImage is only returned at the first package result. If entered in the request, the response mirrors, else the default values are returned. Returned only if TrackingNumber or Combination of Reference Number and Shipper Number present in request.
LabelImage *LabelResultsLabelImage `json:"LabelImage,omitempty"`
// MailInnovationsLabelImage Container to hold Mail Innovations shipments label. The elements needed to render a label on a printer or in a browser. Specifies the format in which GraphicImage is represented. If LabelImageFormat is GIF, LabelImage contains GraphicImage and HTMLImage. Otherwise, it contains only GraphicImage. Applicable for Single Mail Innovations Returns and Dual Mail Innovations Returns shipment. Returned only if MailInnovationsTrackingNumber is provided in request.
// If LabelImageFormat requested was PDF and TrackingNumber was present along with MailInnovationsTrackingNumber in the request, only LabelImage container is returned. MailInnovationsLabelImage will not be returned. In that case, the labels for Small Package Tracking Number and Mail Innovations Tracking Number will be stitched in single PDF file.
MailInnovationsLabelImage *LabelResultsMailInnovationsLabelImage `json:"MailInnovationsLabelImage,omitempty"`
// MailInnovationsTrackingNumber Mail Innovations Tracking Number. Applicable for Single Mail Innovations Returns and Dual Mail Innovations Returns shipment. Returned only if MailInnovationsTrackingNumber is provided in request.
MailInnovationsTrackingNumber *string `json:"MailInnovationsTrackingNumber,omitempty"`
// Receipt Container for the HTML receipt and the receipt link.
Receipt *LabelResultsReceipt `json:"Receipt,omitempty"`
// TrackingNumber Package Tracking number. Package 1Z number. Returned only if TrackingNumber or Combination of Reference Number and Shipper Number present in request.
TrackingNumber *string `json:"TrackingNumber,omitempty"`
}
LabelRecoveryResponseLabelResults Container that stores the label results. Information containing the results of the user's Label Recovery Request.
type LabelRecoveryResponseResponse ¶
type LabelRecoveryResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status container
ResponseStatus LRResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container
TransactionReference *LRResponseTransactionReference `json:"TransactionReference,omitempty"`
}
LabelRecoveryResponseResponse Response Container
type LabelRecoveryResponseTrackingCandidate ¶
type LabelRecoveryResponseTrackingCandidate struct {
// DestinationCountryCode Destination country or territory code candidate, like US = USA, CA = Canada Must be valid ups country or territory code. This is required, if MasterEUConsolidationIndicator is "1".
DestinationCountryCode *string `json:"DestinationCountryCode,omitempty"`
// DestinationPostalCode Destination postal code candidate
DestinationPostalCode *string `json:"DestinationPostalCode,omitempty"`
// PickupDateRange A range of time the package was picked up.
PickupDateRange *TrackingCandidatePickupDateRange `json:"PickupDateRange,omitempty"`
// TrackingNumber Packaging Tracking Number Only supported for the web small package shipment so only supported 18 digit
TrackingNumber string `json:"TrackingNumber"`
}
LabelRecoveryResponseTrackingCandidate Information containing the results of the users Label Recovery Request. Returned in the event the Shipper Number and Reference Number are supplied in the request.
type LabelResultsForm ¶
type LabelResultsForm struct {
// Image Container tag for the International Forms image.
Image LRFormImage `json:"Image"`
}
LabelResultsForm Container tag for the International Forms. Currently, represents UPS Premium Care Form for Electronic Returns Label and Electronic Import Control Label. UPS Premium Care Form for Forward shipment if Subverion is 1903 or greater Applicable for Electronic Return Label and Electronic Import Control Label shipments only. Applies only for Canada domestic shipments. Returned for request with SubVersion greater than or equal to 1707. UPS Premium Care Form for Forward shipment if Subverion is 1903 or greater
type LabelResultsLabelImage ¶
type LabelResultsLabelImage struct {
// GraphicImage Base 64 encoded graphic image.
GraphicImage string `json:"GraphicImage"`
// HTMLImage Base 64 encoded html browser image rendering software. This is only returned for GIF image formats.
HTMLImage *string `json:"HTMLImage,omitempty"`
// InternationalSignatureGraphicImage Base 64 encoded graphic image of the Warsaw text and signature box.
InternationalSignatureGraphicImage *string `json:"InternationalSignatureGraphicImage,omitempty"`
// LabelImageFormat The format of a label image byte stream.
LabelImageFormat LabelImageLabelImageFormat `json:"LabelImageFormat"`
// PDF417 PDF-417 is a two-dimensional barcode, which can store up to about 1,800 printable ASCII characters or 1,100 binary characters per symbol. The symbol is rectangular.
//
// The PDF417 image will be returned when the shipment is trans-border and the service option is one of the following: Standard Express, Saver Express Plus. The image is Base 64 encoded and only returned for GIF image format.
PDF417 *string `json:"PDF417,omitempty"`
// URL This is only returned if the label link is requested to be returned and only at the first package result Applicable for following types of shipments:
// Print/Electronic Return Label
// Print/Electronic Import Control Label
// Forward shipment except for Mail Innovations Forward
URL *string `json:"URL,omitempty"`
}
LabelResultsLabelImage The elements needed to render a label on a printer or in a browser. Specifies the format in which GraphicImage is represented. If LabelImageFormat is GIF, LabelImage contains GraphicImage and HTMLImage. Otherwise, it contains only GraphicImage. If LabelImageFormat is PDF, LabelImage is only returned at the first package result. If entered in the request, the response mirrors, else the default values are returned. Returned only if TrackingNumber or Combination of Reference Number and Shipper Number present in request.
type LabelResultsMailInnovationsLabelImage ¶
type LabelResultsMailInnovationsLabelImage struct {
// GraphicImage Base 64 encoded graphic image.
GraphicImage string `json:"GraphicImage"`
// HTMLImage Base 64 encoded html browser image rendering software. This is only returned for GIF image formats.
HTMLImage *string `json:"HTMLImage,omitempty"`
// InternationalSignatureGraphicImage Base 64 encoded graphic image of the Warsaw text and signature box. EPL2, ZPL and SPL labels. The image will be returned for non-US based shipments. One image will be given per shipment and it will be in the first PackageResults container.
InternationalSignatureGraphicImage *string `json:"InternationalSignatureGraphicImage,omitempty"`
// LabelImageFormat The format of a label image byte stream.
LabelImageFormat MailInnovationsLabelImageLabelImageFormat `json:"LabelImageFormat"`
// PDF417 PDF-417 is a two-dimensional barcode, which can store up to about 1,800 printable ASCII characters or 1,100 binary characters per symbol. The symbol is rectangular. The PDF417 image will be returned when the shipment is trans-border and the service option is one of the following: Standard, Express Saver or Express Plus. The image is Base 64 encoded and only returned for GIF image format
PDF417 *string `json:"PDF417,omitempty"`
// URL This is only returned if the label link is requested to be returned and only at the first package result Applicable for following types of shipments:
// Print/Electronic Return Label
URL *string `json:"URL,omitempty"`
}
LabelResultsMailInnovationsLabelImage Container to hold Mail Innovations shipments label. The elements needed to render a label on a printer or in a browser. Specifies the format in which GraphicImage is represented. If LabelImageFormat is GIF, LabelImage contains GraphicImage and HTMLImage. Otherwise, it contains only GraphicImage. Applicable for Single Mail Innovations Returns and Dual Mail Innovations Returns shipment. Returned only if MailInnovationsTrackingNumber is provided in request. If LabelImageFormat requested was PDF and TrackingNumber was present along with MailInnovationsTrackingNumber in the request, only LabelImage container is returned. MailInnovationsLabelImage will not be returned. In that case, the labels for Small Package Tracking Number and Mail Innovations Tracking Number will be stitched in single PDF file.
type LabelResultsReceipt ¶
type LabelResultsReceipt struct {
// HTMLImage Base 64 encoded html browser image.
HTMLImage *string `json:"HTMLImage,omitempty"`
// Image Container for the receipt in the format other than HTML.
Image *ReceiptImage `json:"Image,omitempty"`
// URL Receipt's url Applicable for following types of shipments:
// Print/Electronic Return Label
// Print/Electronic Import Control Label
URL *string `json:"URL,omitempty"`
}
LabelResultsReceipt Container for the HTML receipt and the receipt link.
type LabelSpecificationInstruction ¶
type LabelSpecificationInstruction struct {
// Code For Exchange Forward Shipment, by default Label will have Exchange Routing instruction Text as EXCHANGE-LIKE ITEM ONLY. If code value is: 01- EXCHANGE-LIKE ITEM ONLY, 02- EXCHANGE-DRIVER INSTRUCTIONS INSIDE.
Code string `json:"Code"`
// Description Description of the label Instruction code.
Description *string `json:"Description,omitempty"`
}
LabelSpecificationInstruction Routing Instruction Container.
type LabelSpecificationLabelImageFormat ¶
type LabelSpecificationLabelImageFormat struct {
// Code Label print method code determines the format in which Labels are to be generated. For EPL2 formatted Labels use EPL, for SPL formatted Labels use SPL, for ZPL formatted Labels use ZPL and for image formats use GIF. For shipments without return service the valid value is GIF, ZPL, EPL and SPL. For shipments with PRL return service, the valid values are EPL, ZPL, SPL and GIF. For UPS Premier Silver shipment only ZPL is supported.
Code string `json:"Code"`
// Description Description of the label image format code.
Description *string `json:"Description,omitempty"`
}
LabelSpecificationLabelImageFormat LabelImageFormat Container.
type LabelSpecificationLabelStockSize ¶
type LabelSpecificationLabelStockSize struct {
// Height Height of the label image. For IN, use whole inches. For EPL2, ZPL and SPL Labels. Only valid values are 6 or 8. Note: Label Image will only scale up to 4 X 6, even when requesting 4 X 8.
Height string `json:"Height"`
// Width Width of the label image. For IN, use whole inches. For EPL2, ZPL and SPL Labels. Valid value is 4. Note: Label Image will only scale up to 4 X 6, even when requesting 4 X 8.
Width string `json:"Width"`
}
LabelSpecificationLabelStockSize Container for the EPL2, ZPL or SPL label size. Valid for EPL2, ZPL and SPL Labels.
type MailInnovationsLabelImageLabelImageFormat ¶
type MailInnovationsLabelImageLabelImageFormat struct {
// Code Code type that the label image is to be generated in. Valid value returned is gif, pdf, zpl. Spl, epl2
Code string `json:"Code"`
}
MailInnovationsLabelImageLabelImageFormat The format of a label image byte stream.
type MasterPickup ¶
type MasterPickup struct {
// Address Contains the address details including street address, city, state or province code, postal code, and country code.
Address TradeDirectAddress `json:"Address"`
// AttentionName Master Pickup Contact Name.
AttentionName *string `json:"AttentionName,omitempty"`
// EMailAddress Master Pickup Email Address
EMailAddress string `json:"EMailAddress"`
// Name Master Pickup Company Name.
Name string `json:"Name"`
// Phone Contains the phone details including the phone number and extension.
Phone *TradeDirectPhone `json:"Phone,omitempty"`
}
MasterPickup Contains the address and contact details of the shipments.
type MasterSoldTo ¶
type MasterSoldTo struct {
// AccountNumber Master Sold To Account Number.
AccountNumber *string `json:"AccountNumber,omitempty"`
// Address Contains the address details including street address, city, state or province code, postal code, and country code.
Address TradeDirectAddress `json:"Address"`
// AttentionName Master Sold to Contact Name.
AttentionName *string `json:"AttentionName,omitempty"`
// EmailAddress Master Sold To Email Address.
EmailAddress string `json:"EmailAddress"`
// Name Master Sold To Company Name.
Name string `json:"Name"`
// Option The text associated with the code will be printed in the sold to section of the USMCA form. The values indicate the following: 01 – Unknown. Applies to USMCA form. Possible Values are 01 and 02.
Option *string `json:"Option,omitempty"`
// Phone Contains the phone details including the phone number and extension.
Phone *TradeDirectPhone `json:"Phone,omitempty"`
// TaxIdentificationNumber Master Sold To Tax Identification Number. This element has been deprecated, replacement can be found in the GlobalTaxInformation container.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}
MasterSoldTo Contains the address and contact details of the shipments.
type MasterTradeComplianceDetails ¶
type MasterTradeComplianceDetails struct {
// Comments Additional comments to be included on the invoice.
Comments *string `json:"Comments,omitempty"`
// DeclarationStatement The type of declaration statement. Can be invoice or USMCA.
//
// Valid values:
//
// - Invoice = Invoice declaration
// - USMCA = USMCA declaration
DeclarationStatement *MasterTradeComplianceDetailsDeclarationStatement `json:"DeclarationStatement,omitempty"`
// ReasonForExport The reason for export to go on the invoice.
ReasonForExport *string `json:"ReasonForExport,omitempty"`
// TermsOfShipment The terms of sale for the invoice.
//
// Valid values:
//
// - CFR = Cost and Freight
// - CIF = Cost Insurance and Freight
// - CIP = Carriage and Insurance Paid
// - CPT = Carriage Paid To
// - DAF = Delivered at Frontier
// - DAP = Delivered at Place
// - DAT = Delivered at Terminal
// - DDP = Delivery Duty Paid
// - DDU = Delivery Duty Unpaid
// - DEQ = Delivered Ex Quay
// - DES = Delivered Ex Ship
// - EXW = Ex Works
// - FAS = Free Alongside Ship
// - FCA = Free Carrier
// - FOB = Free On Board
TermsOfShipment *MasterTradeComplianceDetailsTermsOfShipment `json:"TermsOfShipment,omitempty"`
}
MasterTradeComplianceDetails Contains trade compliance details for the master shipment, such as invoice terms, export reasons, and declaration statements. It also includes additional comments or instructions for customs clearance.
type MasterTradeComplianceDetailsDeclarationStatement ¶
type MasterTradeComplianceDetailsDeclarationStatement string
MasterTradeComplianceDetailsDeclarationStatement The type of declaration statement. Can be invoice or USMCA.
Valid values:
- Invoice = Invoice declaration - USMCA = USMCA declaration
const ( Invoice MasterTradeComplianceDetailsDeclarationStatement = "Invoice" USMCA MasterTradeComplianceDetailsDeclarationStatement = "USMCA" )
Defines values for MasterTradeComplianceDetailsDeclarationStatement.
type MasterTradeComplianceDetailsTermsOfShipment ¶
type MasterTradeComplianceDetailsTermsOfShipment string
MasterTradeComplianceDetailsTermsOfShipment The terms of sale for the invoice.
Valid values:
- CFR = Cost and Freight - CIF = Cost Insurance and Freight - CIP = Carriage and Insurance Paid - CPT = Carriage Paid To - DAF = Delivered at Frontier - DAP = Delivered at Place - DAT = Delivered at Terminal - DDP = Delivery Duty Paid - DDU = Delivery Duty Unpaid - DEQ = Delivered Ex Quay - DES = Delivered Ex Ship - EXW = Ex Works - FAS = Free Alongside Ship - FCA = Free Carrier - FOB = Free On Board
const ( MasterTradeComplianceDetailsTermsOfShipmentCFR MasterTradeComplianceDetailsTermsOfShipment = "CFR" MasterTradeComplianceDetailsTermsOfShipmentCIF MasterTradeComplianceDetailsTermsOfShipment = "CIF" MasterTradeComplianceDetailsTermsOfShipmentCIP MasterTradeComplianceDetailsTermsOfShipment = "CIP" MasterTradeComplianceDetailsTermsOfShipmentCPT MasterTradeComplianceDetailsTermsOfShipment = "CPT" MasterTradeComplianceDetailsTermsOfShipmentDAF MasterTradeComplianceDetailsTermsOfShipment = "DAF" MasterTradeComplianceDetailsTermsOfShipmentDAP MasterTradeComplianceDetailsTermsOfShipment = "DAP" MasterTradeComplianceDetailsTermsOfShipmentDAT MasterTradeComplianceDetailsTermsOfShipment = "DAT" MasterTradeComplianceDetailsTermsOfShipmentDDP MasterTradeComplianceDetailsTermsOfShipment = "DDP" MasterTradeComplianceDetailsTermsOfShipmentDDU MasterTradeComplianceDetailsTermsOfShipment = "DDU" MasterTradeComplianceDetailsTermsOfShipmentDEQ MasterTradeComplianceDetailsTermsOfShipment = "DEQ" MasterTradeComplianceDetailsTermsOfShipmentDES MasterTradeComplianceDetailsTermsOfShipment = "DES" MasterTradeComplianceDetailsTermsOfShipmentEXW MasterTradeComplianceDetailsTermsOfShipment = "EXW" MasterTradeComplianceDetailsTermsOfShipmentFAS MasterTradeComplianceDetailsTermsOfShipment = "FAS" MasterTradeComplianceDetailsTermsOfShipmentFCA MasterTradeComplianceDetailsTermsOfShipment = "FCA" MasterTradeComplianceDetailsTermsOfShipmentFOB MasterTradeComplianceDetailsTermsOfShipment = "FOB" )
Defines values for MasterTradeComplianceDetailsTermsOfShipment.
type NegotiatedChargesItemizedCharges ¶
type NegotiatedChargesItemizedCharges struct {
// Code Identification code for itemized charge.
Code string `json:"Code"`
// CurrencyCode The IATA currency code associated with the Itemized Charge costs for the shipment.
CurrencyCode string `json:"CurrencyCode"`
// Description Description of Itemized Charge that had been charged.
Description *string `json:"Description,omitempty"`
// MonetaryValue Itemized Charges value amount.
MonetaryValue string `json:"MonetaryValue"`
// SubType The sub-type of ItemizedCharges type.
SubType *string `json:"SubType,omitempty"`
}
NegotiatedChargesItemizedCharges defines model for NegotiatedCharges_ItemizedCharges.
type NegotiatedChargesRateModifier ¶
type NegotiatedChargesRateModifier struct {
// Amount Amount .
// Example- "-1.00","0.25"
//
// It contains positive or negative values. Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
Amount string `json:"Amount"`
// ModifierDesc Rate Modifier Description .
// Example- "Origin Modifier" Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
ModifierDesc string `json:"ModifierDesc"`
// ModifierType Rate Modifier Type .
// Example- "ORM" Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
ModifierType string `json:"ModifierType"`
}
NegotiatedChargesRateModifier Container for returned Rate Modifier information. Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
type NegotiatedRateChargesItemizedCharges ¶
type NegotiatedRateChargesItemizedCharges struct {
// Code Identification code for itemized charge.
Code string `json:"Code"`
// CurrencyCode Itemized Charges currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// Description Description of Itemized Charge that had been charged.
Description *string `json:"Description,omitempty"`
// MonetaryValue Itemized Charges value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
// SubType The sub-type of ItemizedCharges type.
SubType *string `json:"SubType,omitempty"`
}
NegotiatedRateChargesItemizedCharges defines model for NegotiatedRateCharges_ItemizedCharges.
type NegotiatedRateChargesRateModifier ¶
type NegotiatedRateChargesRateModifier struct {
// Amount Amount .
// Example- "-1.00","0.25"
//
// It contains positive or negative values. Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
Amount string `json:"Amount"`
// ModifierDesc Rate Modifier Description .
// Example- "Origin Modifier" Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
ModifierDesc string `json:"ModifierDesc"`
// ModifierType Rate Modifier Type .
// Example- "ORM" Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
ModifierType string `json:"ModifierType"`
}
NegotiatedRateChargesRateModifier Container for returned Rate Modifier information. Applies if SubVersion is 2407 or greater and supports only for oAuth shipments.
type NegotiatedRateChargesTaxCharges ¶
type NegotiatedRateChargesTaxCharges struct {
// MonetaryValue Tax Monetary Value represent the Tax amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
// Type Tax Type code. The code represents the type of Tax applied to a shipment. Refer to Tax Type Values/Abbreviations in the Appendix for valid values.
Type string `json:"Type"`
}
NegotiatedRateChargesTaxCharges defines model for NegotiatedRateCharges_TaxCharges.
type NegotiatedRateChargesTotalCharge ¶
type NegotiatedRateChargesTotalCharge struct {
// CurrencyCode Total charges currency code.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Total charges monetary value. Valid values are from 0 to 9999999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
NegotiatedRateChargesTotalCharge Total charges container. Account Based Rates info. Total charges are only returned for ABR eligible shipper account/UserId combinations when the user includes the NegotiatedRatesIndicator in the request.
type NegotiatedRateChargesTotalChargesWithTaxes ¶
type NegotiatedRateChargesTotalChargesWithTaxes struct {
// CurrencyCode TotalChargesWithTaxes currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue TotalChargesWithTaxes monetary value amount. Valid values are from 0 to 9999999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
NegotiatedRateChargesTotalChargesWithTaxes TotalChargesWithTaxes container would be returned only if TaxInformationIndicator is present in request. TotalChargesWithTaxes contains total charges including total taxes applied to a shipment.
type NotificationEMail ¶
type NotificationEMail struct {
// EMailAddress Email address where the notification is sent. Up to five email addresses are allowed for each type of Quantum View TM shipment notification. Up to two email address for return notification.
EMailAddress []string `json:"EMailAddress"`
// FromEMailAddress The e-mail address specifies the Reply To E-mail address. The "From" field of the message header contains pkginfo@ups.com. Valid for Return Notification only.
FromEMailAddress *string `json:"FromEMailAddress,omitempty"`
// FromName The name the email will appear to be from. Defaults to the Shipper Name. The FromName must occur only once for each shipment with Quantum View Shipment Notifications.
FromName *string `json:"FromName,omitempty"`
// Memo User defined text that will be included in the eMail. The Memo must occur only once for each shipment with Quantum View Shipment Notifications.
Memo *string `json:"Memo,omitempty"`
// UndeliverableEMailAddress The address where an undeliverable eMail message is sent if the eMail with the notification is undeliverable. There can be only one UndeliverableEMailAddress for each shipment with Quantum View Shipment Notifications.
UndeliverableEMailAddress *string `json:"UndeliverableEMailAddress,omitempty"`
}
NotificationEMail Container for Email Information.
type NotificationLocale ¶
type NotificationLocale struct {
// Dialect Refer to Language/Dialect Combinations in the Appendix for valid pairs.
Dialect string `json:"Dialect"`
// Language Refer to Language/Dialect Combinations in the Appendix for valid pairs.
Language string `json:"Language"`
}
NotificationLocale This container is used for providing Language and dialect details for Alternate Delivery Location notifications and UAP Shipper notifications. Valid only for Alternate Delivery Location notification and UAP Shipper notification.
type NotificationTextMessage ¶
type NotificationTextMessage struct {
// PhoneNumber Phone number for receiving Text Alternate Delivery Location notification and UAP Shipper notification.
PhoneNumber string `json:"PhoneNumber"`
}
NotificationTextMessage TextMessage container is used for specifying phone number for receiving text Alternate Delivery Location notification and UAP Shipper notification. Valid only for Alternate Delivery Location notification and UAP Shipper notification. VoiceMessage phone number or TextMessage phone number or email address is required for ADL notification and UAP Shipper notification.
type NotificationVoiceMessage ¶
type NotificationVoiceMessage struct {
// PhoneNumber Phone number for receiving Voice Alternate Delivery Location notification and UAP Shipper notification.
PhoneNumber string `json:"PhoneNumber"`
}
NotificationVoiceMessage VoiceMessage container is used for specifying phone number for receiving voice Alternate Delivery Location notification and UAP Shipper notification. Valid only for Alternate Delivery Location notification and UAP Shipper notification. VoiceMessage phone number or TextMessage phone number or email address is required for ADL notification and UAP Shipper notification.
type PackageCommodity ¶
type PackageCommodity struct {
// FreightClass Freight Classification. Freight class partially determines the freight rate for the article. Required for Ground Freight Pricing Shipments only.
FreightClass string `json:"FreightClass"`
// NMFC Container to hold the NMFC codes.
NMFC *CommodityNMFC `json:"NMFC,omitempty"`
}
PackageCommodity Container to hold the Commodity information. It is required if the Ground Freight Pricing Shipment indicator is present in the request.
type PackageDimWeight ¶
type PackageDimWeight struct {
// UnitOfMeasurement UnitOfMeasurement Container.
UnitOfMeasurement *DimWeightUnitOfMeasurement `json:"UnitOfMeasurement,omitempty"`
// Weight Actual package weight. Weight accepted for letters/envelopes.
Weight *string `json:"Weight,omitempty"`
}
PackageDimWeight Dimensional weight of shipment. Please visit ups.com for rules on calculating. There is one implied decimal place (e.g. 115 = 11.5). If dimensions are provided, dimensional weight is ignored. For US/PR/CA shipments, dimensional weight is ignored
type PackageDimensions ¶
type PackageDimensions struct {
// Height Package height.
Height string `json:"Height"`
// Length Package length. Length must be the longest dimension of the container. Valid values are 0 to 108 IN and 0 to 270 CM.
Length string `json:"Length"`
// UnitOfMeasurement UnitOfMeasurement container for dimensions.
UnitOfMeasurement DimensionsUnitOfMeasurement `json:"UnitOfMeasurement"`
// Width Package width.
Width string `json:"Width"`
}
PackageDimensions Dimensions information container. Note: Currently dimensions are not applicable to Ground Freight Pricing. Length + 2*(Width + Height) must be less than or equal to 165 IN or 330 CM. Required for Heavy Goods service. Package Dimension will be ignored for Simple Rate
type PackageHazMatPackageInformation ¶
type PackageHazMatPackageInformation struct {
// AllPackedInOneIndicator Presence/Absence Indicator. Any value is ignored. Presence indicates if multiple, different hazmat/chemicals are contained within one box in a package When number of Hazmat containers in a package is more than one, either AllPackedInOneIndicator or OverPackedIndicator is needed
AllPackedInOneIndicator *string `json:"AllPackedInOneIndicator,omitempty"`
// OuterPackagingType This field is used for the Outer Hazmat packaging type. Ex. FIBERBOARD BOX, WOOD(EN) BOX, PLASTIC JERRICAN, METAL BOX, STEEL DRUM, OTHER, PLASTIC BOX, PLASTIC DRUM, STYROFOAM BOX, CYLINDERS, ENVIROTAINER, PLYWOOD BOX, ALUMINUM DRUM, ALUMINUM CYLINDERS, PLASTIC PAIL, PLYWOOD DRUM, FIBER DRUM, STEEL JERRICAN, ALUMINUM JERRICAN, STEEL BOX, CARTON, ALUMINUM BOX
OuterPackagingType *string `json:"OuterPackagingType,omitempty"`
// OverPackedIndicator Presence/Absence Indicator. Any value is ignored. Presence indicates that one or more hazmat/chemicals are in separate boxes in a package. When number of Hazmat containers in a package is more than one, either AllPackedInOneIndicator or OverPackedIndicator is needed
OverPackedIndicator *string `json:"OverPackedIndicator,omitempty"`
// QValue When a HazMat shipment specifies AllPackedInOneIndicator and the regulation set for that shipment is IATA, Ship API must require the shipment to specify a Q-Value with exactly one of the following values: 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8; 0.9; 1.0
QValue *string `json:"QValue,omitempty"`
}
PackageHazMatPackageInformation Required when number of hazmat containers in a package is greater than 1. It indicates whether all the hazmat materials are kept in a single box or multiple boxes. Required when number of hazmat container in a package is greater than 1.
type PackageLevelResultsStatus ¶
type PackageLevelResultsStatus struct {
// Code The Package Level void status code. A numeric value that describes the status code. 1 = Voided or Already Voided; 0 = Not Voided
Code string `json:"Code"`
// Description A text description of the status code.
Description string `json:"Description"`
}
PackageLevelResultsStatus Contains the status code tags.
type PackagePackageServiceOptions ¶
type PackagePackageServiceOptions struct {
// AccessPointCOD Access Point COD indicates Package COD is requested for a shipment. Valid only for "01 - Hold For Pickup At UPS Access Point" Shipment Indication type. Package Access Point COD is valid only for shipment without return service from US/PR to US/PR and CA to CA. Not valid with COD at package level.
AccessPointCOD *PackageServiceOptionsAccessPointCOD `json:"AccessPointCOD,omitempty"`
// COD Container for COD. Indicates COD is requested. Package level COD is available for shipment without return service from US/PR to US/PR, CA to CA, and CA to US. CA to US COD is not allowed for package Letter/ Envelope. COD is not valid for return service movements.
COD *PackageServiceOptionsCOD `json:"COD,omitempty"`
// ClinicalTrialsID Unique identifier for clinical trials
ClinicalTrialsID *string `json:"ClinicalTrialsID,omitempty"`
// DeclaredValue Container for Declared Value.
DeclaredValue *PackageServiceOptionsDeclaredValue `json:"DeclaredValue,omitempty"`
// DeliveryConfirmation Delivery Confirmation container.
// Refer to Delivery Confirmation Origin-
// Destination Pairs in the Appendix for a list of valid values. Valid only for forward shipment only.
DeliveryConfirmation *PackageServiceOptionsDeliveryConfirmation `json:"DeliveryConfirmation,omitempty"`
// DryIce Container for Dry Ice. Maximum 1 Dry Ice is allowed. Lane check will happen based on postal code/ city.
DryIce *PackageServiceOptionsDryIce `json:"DryIce,omitempty"`
HazMat *[]PackageServiceOptionsHazMat `json:"HazMat,omitempty"`
// HazMatTypeCode Field to be used when a shipment contains a HazMat. It will specify the existence of HazMat, and what type. Initially this will be used for UPS Ground saver and Mail Innovations 'USPS Limited Quantities HazMat' Shipments (but may be extended for other types of HazMat in the future).
// Valid values are 01.
// - USPS Limited Quantities HazMat - 01
HazMatTypeCode *string `json:"HazMatTypeCode,omitempty"`
// Healthcare This container is required when HealthcareIdentifier is present, grouping all healthcare fields for a package. Maximum 25 allowed.
Healthcare *PackageServiceOptionsHealthcare `json:"Healthcare,omitempty"`
// Notification Receiver Return Notification. Applicable for Shipment with returned service.
Notification *PackageServiceOptionsNotification `json:"Notification,omitempty"`
// PackageIdentifier Identifies the package containing Dangerous Goods. Required for Hazmat shipment if SubVersion is greater than or equal to 1701.
PackageIdentifier *string `json:"PackageIdentifier,omitempty"`
// ProactiveIndicator Presence/Absence Indicator. Any value is ignored. If present, the package is rated for UPS Proactive Response and proactive package tracking. Contractual accessorial for health care companies to allow package monitoring throughout the UPS system. Shippers account needs to have valid contract for UPS Proactive Reponse.
ProactiveIndicator *string `json:"ProactiveIndicator,omitempty"`
// RefrigerationIndicator Presence/Absence Indicator. Any value is ignored. If present, indicates that the package contains an item that needs refrigeration. Shippers account needs to have a valid contract for Refrigeration.
RefrigerationIndicator *string `json:"RefrigerationIndicator,omitempty"`
// ShipperReleaseIndicator The presence indicates that the package may be released by driver without a signature from the consignee. Empty Tag. Only available for US50/PR to US50/PR packages without return service.
ShipperReleaseIndicator *string `json:"ShipperReleaseIndicator,omitempty"`
// UPSPremiumCareIndicator An UPSPremiumCareIndicator indicates special handling is required for shipment having controlled substances. Empty Tag means indicator is present.
//
// The UPSPremiumCareIndicator cannot be requested for package with Delivery Confirmation - Adult Signature Required and Delivery Confirmation- Signature Required.
//
// UPSPremiumCareIndicator is valid for following Return services:
// - Returns Exchange (available with a contract)
// - Print Return Label
// - Print and Mail
// - Electronic Return Label
// - Return Service Three Attempt
//
// The UPSPremiumCareIndicator can be requested with following UPS services:
// - UPS Express® Early
// - UPS Express
// - UPS Express Saver
// - UPS Standard
// - Valid only for Canada to Canada movements.
UPSPremiumCareIndicator *string `json:"UPSPremiumCareIndicator,omitempty"`
}
PackagePackageServiceOptions Package Service Options container.
type PackagePackageWeight ¶
type PackagePackageWeight struct {
// UnitOfMeasurement Container to hold UnitOfMeasurement information for package weight.
UnitOfMeasurement PackageWeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Packages weight. Weight accepted for letters/envelopes. Only average package weight is required for Ground Freight Pricing Shipment.
Weight string `json:"Weight"`
}
PackagePackageWeight Container to hold package weight information. Package weight is a required for Ground Freight Pricing shipments and Heavy Goods service. Package Weight will be ignored for Simple Rate.
type PackagePackaging ¶
type PackagePackaging struct {
// Code Package types. Values are:
// 01 = UPS Letter
// 02 = Customer Supplied Package
// 03 = Tube
// 04 = PAK
// 21 = UPS Express Box
// 24 = UPS 25KG Box
// 25 = UPS 10KG Box
// 30 = Pallet
// 2a = Small Express Box
// 2b = Medium Express Box
// 2c = Large Express Box
// 56 = Flats
// 57 = Parcels
// 58 = BPM
// 59 = First Class
// 60 = Priority
// 61 = Machineables
// 62 = Irregulars
// 63 = Parcel Post
// 64 = BPM Parcel
// 65 = Media Mail
// 66 = BPM Flat
// 67 = Standard Flat.
// Note: Only packaging type code 02 is applicable to Ground Freight Pricing.
// Package type 24, or 25 is only allowed for shipment without return service. Packaging type must be valid for all the following: ShipTo country or territory, ShipFrom country or territory, a shipment going from ShipTo country or territory to ShipFrom country or territory, all Accessorials at both the shipment and package level, and the shipment service type. UPS will not accept raw wood pallets and please refer the UPS packaging guidelines for pallets on UPS.com.
Code string `json:"Code"`
// Description Description of packaging type. Examples are letter, customer supplied, express box.
Description *string `json:"Description,omitempty"`
}
PackagePackaging Packaging container. Container for Packaging Type.
type PackageReferenceNumber ¶
type PackageReferenceNumber struct {
// BarCodeIndicator If the indicator is present then the reference numbers value will be bar coded on the label.
//
// This is an empty tag, any value inside is ignored.
// Only one shipment-level or package-level reference number can be bar coded per shipment.
//
// In order to barcode a reference number, its value must be no longer than 14 alphanumeric characters or 24 numeric characters and cannot contain spaces.
BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`
// Code Reference number type code, for the entire shipment. The code specifies the Reference name.
//
// Refer to the Reference Number Code table. Valid if the origin/destination pair is US/US or PR/PR and character should be alpha-numeric.
Code *string `json:"Code,omitempty"`
// Value Customer supplied reference number. Valid if the origin/destination pair is US/US or PR/PR.
Value string `json:"Value"`
}
PackageReferenceNumber Package reference number information container. For Mail Innovation shipments, up to 3 reference numbers are supported. If 5 reference numbers are specified (CostCenter, PackageID, and 3 ReferenceNumbers) the 3 desigated by the ReferenceNumber container will not be visible on 4x6 label supported by the API. These additional reference numbers are only be visible on the 4x8 label..
For non-Mail Innovation shipments only the first 2 reference numbers will be visible on labels.
Required for Trade Direct shipments.
type PackageResultsAccessorial ¶
type PackageResultsAccessorial struct {
// Code Code for Accessorial Indicator.
Code string `json:"Code"`
// Description Description for Accessorial Indicator.
Description *string `json:"Description,omitempty"`
}
PackageResultsAccessorial defines model for PackageResults_Accessorial.
type PackageResultsBaseServiceCharge ¶
type PackageResultsBaseServiceCharge struct {
// CurrencyCode BaseServiceCharge currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Base Service Charge value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
PackageResultsBaseServiceCharge Base Service Charge container. Transportation charge = BaseServiceCharge + Fuel charge Returned only if Subversion >=1701.
type PackageResultsForm ¶
type PackageResultsForm struct {
// Code Code that indicates the type of form. Valid values:
// - 01 - All Requested International Forms.
Code *string `json:"Code,omitempty"`
// Description Description that indicates the type of form. Possible Values: All Requested International Forms.
Description *string `json:"Description,omitempty"`
// FormGroupId Unique Id for later retrieval of saved version of the completed international forms.
FormGroupId *string `json:"FormGroupId,omitempty"`
// FormGroupIdName Contains description text which identifies the group of International forms. This element is part of both request and response. This element does not appear on the forms.
FormGroupIdName *string `json:"FormGroupIdName,omitempty"`
// Image Container tag for the International forms image.
Image *FormImage `json:"Image,omitempty"`
}
PackageResultsForm Container tag for the International forms image. Currently this container would be returned for UPS Premium Care shipments. Form is returned for following shipments - Forward shipments, Shipments with PRL ReturnService, Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707. CN22 data for Worlwide economy services will be returned within the PDF417 barcode of the label.
type PackageResultsItemizedCharges ¶
type PackageResultsItemizedCharges struct {
// Code Identification code for itemized charge.
Code string `json:"Code"`
// CurrencyCode The IATA currency code associated with the Itemized Charge costs for the shipment.
CurrencyCode string `json:"CurrencyCode"`
// Description Description of Itemized Charge that had been charged.
Description *string `json:"Description,omitempty"`
// MonetaryValue Itemized Charges value amount.
MonetaryValue string `json:"MonetaryValue"`
// SubType The sub-type of ItemizedCharges type.
SubType *string `json:"SubType,omitempty"`
}
PackageResultsItemizedCharges defines model for PackageResults_ItemizedCharges.
type PackageResultsNegotiatedCharges ¶
type PackageResultsNegotiatedCharges struct {
// ItemizedCharges Negotiated Itemized Accessorial and SurCharges.
//
// Negotiated itemized charges are only returned for certain contract-only shipments as well as Worldwide Express Freight, Ground Freight Pricing, and Hazmat movements. Negotiated Itemized Accessorial and Sur Charges are returned only when the subversion element is present and greater than or equal to 1607.
//
// Package level itemized charges are only returned for US domestic movements
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
ItemizedCharges *[]NegotiatedChargesItemizedCharges `json:"ItemizedCharges,omitempty"`
RateModifier *[]NegotiatedChargesRateModifier `json:"RateModifier,omitempty"`
}
PackageResultsNegotiatedCharges Negotiated Rates Charge Container. These charges are returned when: 1) Subversion is greater than or equal to 1607 2) If negotiated rates were requested for GFP shipments and account number is eligible to receive negotiated rates.
type PackageResultsRateModifier ¶
type PackageResultsRateModifier struct {
// Amount Amount. Example: "-1.00","0.25". It contains positive or negative values. Applies only if SubVersion is 2205 or greater.
Amount string `json:"Amount"`
// ModifierDesc Rate Modifier Description. Example: "Origin Modifier". Applies only if SubVersion is 2205 or greater.
ModifierDesc string `json:"ModifierDesc"`
// ModifierType Rate Modifier Type. Example: "ORM". Applies only if SubVersion is 2205 or greater.
ModifierType string `json:"ModifierType"`
}
PackageResultsRateModifier Container for returned Rate Modifier information. Applies only if SubVersion is 2205 or greater.
type PackageResultsServiceOptionsCharges ¶
type PackageResultsServiceOptionsCharges struct {
// CurrencyCode Package accessorial charges currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Package accessorial charges value amount.
//
// Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
PackageResultsServiceOptionsCharges Shipment charges info. Shipment charges are only guaranteed to be returned for shipments whose origin country or territory is US or Puerto Rico.
type PackageResultsShippingLabel ¶
type PackageResultsShippingLabel struct {
// GraphicImage Base 64 encoded graphic image.
GraphicImage string `json:"GraphicImage"`
// GraphicImagePart Base 64 encoded graphic image. Applicable only for Mail Innovations CN22 Combination Forward Label with more than 3 commodities.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
GraphicImagePart *[]string `json:"GraphicImagePart,omitempty"`
// HTMLImage Base 64 encoded html browser image rendering software. This is only returned for gif and png image formats.
HTMLImage *string `json:"HTMLImage,omitempty"`
// ImageFormat The container image format.
ImageFormat ShippingLabelImageFormat `json:"ImageFormat"`
// InternationalSignatureGraphicImage Base 64 encoded graphic image of the Warsaw text and signature box. EPL2, ZPL and SPL labels. The image will be returned for non-US based shipments. One image will be given per shipment and it will be in the first PackageResults container.
InternationalSignatureGraphicImage *string `json:"InternationalSignatureGraphicImage,omitempty"`
// PDF417 PDF-417 is a two-dimensional barcode, which can store up to about 1,800 printable ASCII characters or 1,100 binary characters per symbol. The symbol is rectangular. The image is Base 64 encoded and returned if the LabelImageFormat code is GIF. Shipment with PRL return service only.
PDF417 *string `json:"PDF417,omitempty"`
}
PackageResultsShippingLabel The container for UPS shipping label. Returned for following shipments - Forward shipments, Shipments with PRL returns service, Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707. Shipping label wont be returned if BarCodeImageIndicator is present.
type PackageResultsShippingReceipt ¶
type PackageResultsShippingReceipt struct {
// GraphicImage Base 64 encoded receipt in HTML format.
//
// The receipt image is only returned for the first 5 packages.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container for a Image Format.
ImageFormat ShippingReceiptImageFormat `json:"ImageFormat"`
}
PackageResultsShippingReceipt Supported for following shipments - PRL shipments, Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707.
type PackageResultsSimpleRate ¶
type PackageResultsSimpleRate struct {
// Code Simple Rate Package Size Valid values: XS - Extra Small S - Small M - Medium L - Large XL - Extra Large
Code string `json:"Code"`
}
PackageResultsSimpleRate SimpleRate will be returned if Simple Rate present in request
type PackageServiceOptionsAccessPointCOD ¶
type PackageServiceOptionsAccessPointCOD struct {
// CurrencyCode Access Point COD Currency Code.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Access Point COD Monetary Value.
MonetaryValue string `json:"MonetaryValue"`
}
PackageServiceOptionsAccessPointCOD Access Point COD indicates Package COD is requested for a shipment. Valid only for "01 - Hold For Pickup At UPS Access Point" Shipment Indication type. Package Access Point COD is valid only for shipment without return service from US/PR to US/PR and CA to CA. Not valid with COD at package level.
type PackageServiceOptionsCOD ¶
type PackageServiceOptionsCOD struct {
// CODAmount COD Amount container.
CODAmount PackageServiceOptionsCODCODAmount `json:"CODAmount"`
// CODFundsCode For valid values refer to: Rating and Shipping COD Supported Countries or Territories in the Appendix.
CODFundsCode string `json:"CODFundsCode"`
}
PackageServiceOptionsCOD Container for COD. Indicates COD is requested. Package level COD is available for shipment without return service from US/PR to US/PR, CA to CA, and CA to US. CA to US COD is not allowed for package Letter/ Envelope. COD is not valid for return service movements.
type PackageServiceOptionsCODCODAmount ¶
type PackageServiceOptionsCODCODAmount struct {
// CurrencyCode COD amount currency code type.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue COD Amount. Valid values: 0.01 USD to 50000.00 USD
MonetaryValue string `json:"MonetaryValue"`
}
PackageServiceOptionsCODCODAmount COD Amount container.
type PackageServiceOptionsDeclaredValue ¶
type PackageServiceOptionsDeclaredValue struct {
// CurrencyCode Declared value amount currency type. Defaults to the non-Euro currency used in the shippers country or territory. Code must represent a currency that is a valid for Shipper country or territory.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Declared value amount.
MonetaryValue string `json:"MonetaryValue"`
// Type Container for Declared Value Type.
Type *DeclaredValueType `json:"Type,omitempty"`
}
PackageServiceOptionsDeclaredValue Container for Declared Value.
type PackageServiceOptionsDeliveryConfirmation ¶
type PackageServiceOptionsDeliveryConfirmation struct {
// DCISNumber Delivery Confirmation Control number associated with the delivery confirmation for the package. Valid for forward shipments only.
DCISNumber *string `json:"DCISNumber,omitempty"`
// DCISType Type of delivery confirmation. Valid values:
// - 1 - Unsupported
// - 2 - Delivery Confirmation Signature Required
// - 3 - Delivery Confirmation Adult Signature Required
DCISType string `json:"DCISType"`
}
PackageServiceOptionsDeliveryConfirmation Delivery Confirmation container. Refer to Delivery Confirmation Origin- Destination Pairs in the Appendix for a list of valid values. Valid only for forward shipment only.
type PackageServiceOptionsDryIce ¶
type PackageServiceOptionsDryIce struct {
// DryIceWeight Container for Dry Ice weight.
DryIceWeight DryIceDryIceWeight `json:"DryIceWeight"`
// MedicalUseIndicator Presence/Absence Indicator. Any value inside is ignored. Relevant only in CFR regulation set. If present it is used to designate the dry Ice is for any medical use and rates are adjusted for DryIce weight more than 2.5 Kgs or 5.7 Lbs.
MedicalUseIndicator *string `json:"MedicalUseIndicator,omitempty"`
// RegulationSet Regulation set for dryIce Shipment. Valid values: CFR = HazMat regulated by US Dept. of Transportation within the U.S. or ground shipments to Canada, IATA = Worldwide Air movement, ADR = For EU‑domestic, Standard Service shipments containing non‑hazmat dry ice, the regulation set must be ADR. The following values are valid:IATA, CFR, ADR.
RegulationSet string `json:"RegulationSet"`
}
PackageServiceOptionsDryIce Container for Dry Ice. Maximum 1 Dry Ice is allowed. Lane check will happen based on postal code/ city.
type PackageServiceOptionsHazMat ¶
type PackageServiceOptionsHazMat struct {
// AdditionalDescription Additional remarks or special provision information. Recommended if CommodityRegulatedLevelCode = LQ or FR and if the field applies to the material by regulation.
//
// Additional information that may be required by regulation about a hazardous material, such as, "Limited Quantity", DOT-SP numbers, EX numbers.
AdditionalDescription *string `json:"AdditionalDescription,omitempty"`
// ChemicalRecordIdentifier Identifies the Chemical Record. Required if SubVersion is greater than or equal to 1701.
ChemicalRecordIdentifier *string `json:"ChemicalRecordIdentifier,omitempty"`
// ClassDivisionNumber This is the hazard class associated to the specified commodity.
//
// Required if CommodityRegulatedLevelCode is 'EQ', 'LQ' or 'FR'
ClassDivisionNumber *string `json:"ClassDivisionNumber,omitempty"`
// CommodityRegulatedLevelCode Indicates the type of commodity - Fully Regulated (FR), Limited Quantity (LQ), Excepted Quantity (EQ) or Lightly Regulated (LR). Valid values are LR, FR, LQ and EQ.
// Required for subversion 1701 or greater. LR and EQ are validated if subversion is 1701 or greater. FR, LQ will be validated if subversion is 1807 or greater
CommodityRegulatedLevelCode *string `json:"CommodityRegulatedLevelCode,omitempty"`
// EmergencyContact The emergency information, contact name and/or contract number, required to be communicated when a call is placed to the EmergencyPhoneNumber. The information is required if there is a value in the EmergencyPhoneNumber field above and the shipment is with a US50 or PR origin and/or destination and the RegulationSet is IATA.
EmergencyContact *string `json:"EmergencyContact,omitempty"`
// EmergencyPhone 24 Hour Emergency Phone Number of the shipper. Valid values for this field are (0) through (9) with trailing blanks. For numbers within the U.S., the layout is 1, area code, 7-digit number. For all other countries or territories the layout is country or territory code, area code, number.
//
// The following are restricted in the phone number period ".", dash "-", plus sign "+" and conventional parentheses "(" and ")", "EXT" or "OPT"
EmergencyPhone *string `json:"EmergencyPhone,omitempty"`
// HazardLabelRequired Defines the type of label that is required on the package for the commodity.
//
// Not applicable if CommodityRegulatedLevelCode = LR or EQ.
HazardLabelRequired *string `json:"HazardLabelRequired,omitempty"`
// IDNumber This is the ID number (UN/NA/ID) for the specified commodity.
// Required if CommodityRegulatedLevelCode = LR, LQ or FR and if the field applies to the material by regulation.
// UN/NA/ID Identification Number assigned to the specified regulated good. (Include the UN/NA/ID as part of the entry).
IDNumber *string `json:"IDNumber,omitempty"`
// LocalProperShippingName Proper shipping name in local langauge.
LocalProperShippingName *string `json:"LocalProperShippingName,omitempty"`
// LocalTechnicalName Technical name in local language.
LocalTechnicalName *string `json:"LocalTechnicalName,omitempty"`
// PackagingGroupType This is the packing group category associated to the specified commodity. Recommended if CommodityRegulatedLevelCode = LQ or FR and if the field applies to the material by regulation. Must be shown in Roman Numerals.
// Valid values:
// I
// II
// III
// blank
PackagingGroupType *string `json:"PackagingGroupType,omitempty"`
// PackagingInstructionCode The packing instructions related to the chemical record. Required if CommodityRegulatedLevelCode = LQ or FR and if the field applies to the material by regulation.
PackagingInstructionCode *string `json:"PackagingInstructionCode,omitempty"`
// PackagingType The type of package used to contain the regulated good. (Ex: Fiberboard Box). Required if CommodityRegulatedLevelCode = LQ or FR. Ex. FIBERBOARD BOX, WOOD(EN) BOX, PLASTIC JERRICAN, METAL BOX, STEEL DRUM, OTHER, PLASTIC BOX, PLASTIC DRUM, STYROFOAM BOX, CYLINDERS, ENVIROTAINER, PLYWOOD BOX, ALUMINUM DRUM, ALUMINUM CYLINDERS, PLASTIC PAIL, PLYWOOD DRUM, FIBER DRUM, STEEL JERRICAN, ALUMINUM JERRICAN, STEEL BOX, CARTON, ALUMINUM BOX
PackagingType *string `json:"PackagingType,omitempty"`
// PackagingTypeQuantity The number of pieces of the specific commodity. Required if CommodityRegulatedLevelCode = LQ or FR. Valid values are 1 to 999.
PackagingTypeQuantity *string `json:"PackagingTypeQuantity,omitempty"`
// ProperShippingName The Proper Shipping Name assigned by ADR, CFR or IATA. Required if CommodityRegulatedLevelCode = LR, LQ or FR.
ProperShippingName string `json:"ProperShippingName"`
// Quantity Required if CommodityRegulatedLevelCode = EQ, LQ or FR. The numerical value of the mass capacity of the regulated good. Should be more than 0.0. Valid characters are 0-9 and "." (Decimal point). Limit to 1 digit after the decimal. The maximum length of the field is 5 including "." (Decimal point) and can hold up to 1 decimal place.
Quantity *string `json:"Quantity,omitempty"`
// RecordIdentifier1 Reserved for future use.
RecordIdentifier1 *string `json:"RecordIdentifier1,omitempty"`
// RecordIdentifier2 Reserved for future use.
RecordIdentifier2 *string `json:"RecordIdentifier2,omitempty"`
// RecordIdentifier3 Reserved for future use.
RecordIdentifier3 *string `json:"RecordIdentifier3,omitempty"`
// ReferenceNumber Optional reference number. It will be displayed only on label.
ReferenceNumber *string `json:"ReferenceNumber,omitempty"`
// RegulationSet The Regulatory set associated with every regulated shipment. It must be same across the shipment.
// Valid values:
// ADR = Europe to Europe Ground Movement
// CFR = HazMat regulated by US Dept. of Transportation within the U.S. or ground shipments to Canada
// IATA= Worldwide Air movement
// TDG= Canada to Canada ground movement or Canada to U.S. standard movement. Valid values are ADR, CFR, IATA and TDG.
// For multiple Chemical Records per package or multiple packages containing different RegulationSet, RegulationSet of first Chemical Record would be considered for validating and rating the entire shipment.
RegulationSet string `json:"RegulationSet"`
// ReportableQuantity Recommended if CommodityRegulatedLevelCode = LQ or FR and if the field applies to the material by regulation. If reportable quantity is met, 'RQ' should be entered.
ReportableQuantity *string `json:"ReportableQuantity,omitempty"`
// SubRiskClass Recommended if CommodityRegulatedLevelCode = LQ or FR and if the field applies to the material by regulation.
//
// Secondary hazardous characteristics of a package. (There can be more than one – separate each with a comma).
SubRiskClass *string `json:"SubRiskClass,omitempty"`
// TechnicalName The technical name (when required) for the specified commodity. Recommended if CommodityRegulatedLevelCode = LQ or FR and if the field applies to the material by regulation.
TechnicalName *string `json:"TechnicalName,omitempty"`
// TransportCategory Transport Category. Valid values are 0 to 4.
TransportCategory *string `json:"TransportCategory,omitempty"`
// TransportationMode Not applicable for ADR regulation set. Required for any other regulation set. Declares that a package was prepared according to ground passenger aircraft or cargo aircraft only.
// Valid values:
// Highway=Highway
// Ground=Ground
// PAX=Passenger Aircraft
// Passenger Aircraft=Passenger Aircraft
// CAO=Cargo Aircraft Only
// Cargo Aircraft Only=Cargo Aircraft Only Valid entries include: Highway, Ground, PAX, Passenger Aircraft, CAO and Cargo Aircraft Only.
TransportationMode string `json:"TransportationMode"`
// TunnelRestrictionCode Defines what is restricted to pass through a tunnel.
TunnelRestrictionCode *string `json:"TunnelRestrictionCode,omitempty"`
// UOM Required if CommodityRegulatedLevelCode = LQ, EQ or FR. The unit of measure used for the mass capacity of the regulated good.
//
// For Example: ml, L, g, mg, kg, cylinder, pound, pint, quart, gallon, ounce etc.
UOM *string `json:"UOM,omitempty"`
// ADRItemNumber The type of regulated good for an ADR package where ADR is for Europe to Europe ground movement.
ADRItemNumber *string `json:"aDRItemNumber,omitempty"`
// ADRPackingGroupLetter Required if the field applies to the material by regulation. Field input is Arabic numerals, output is Roman numerals. Will be shown in Roman Numerals. Valid values:
// - "1" = "I",
// - "2" = "II",
// - "3" = "III",
// - and blank.
ADRPackingGroupLetter *string `json:"aDRPackingGroupLetter,omitempty"`
}
PackageServiceOptionsHazMat Container to hold HazMat Chemical Records.
type PackageServiceOptionsHealthcare ¶
type PackageServiceOptionsHealthcare struct {
// ProgramIdentifier An indicator to identify the healthcare program. Default value is 000.
//
// Valid values:
// - 000 = No Program
// - 001 = Home Health / Direct to Patient
// - 002 = Tissues, Organs, and Lab Specimens
// - 003 = Investigative Drug Substance and Drug Product
// - 004 = Specialty Drug Product and API
// - 006 = Implantable Medical devices
// - 007 = Medical Diagnostics Equipment
// - 008 = Non-Sterile Pharmaceutical Drug Product and Substance
// - 009 = Medical Inst. & Supplies
// - 010 = Animal Health Non-Drug
// - 011 = Consumer Health Perishable
// - 012 = Consumer Health Non Perishable
// - 013 = Non-Complex
// - 099 = UNCLASSIFIED
ProgramIdentifier *string `json:"ProgramIdentifier,omitempty"`
// SubAttribute Description of Program.
SubAttribute *string `json:"SubAttribute,omitempty"`
// Text Field for future use.
Text *string `json:"Text,omitempty"`
// UniqueIdentifier Unique Patient Identifier/Provider Identifier.
UniqueIdentifier *string `json:"UniqueIdentifier,omitempty"`
}
PackageServiceOptionsHealthcare This container is required when HealthcareIdentifier is present, grouping all healthcare fields for a package. Maximum 25 allowed.
type PackageServiceOptionsNotification ¶
type PackageServiceOptionsNotification struct {
// EMail Container for the e-mail message.
EMail PackageServiceOptionsNotificationEMail `json:"EMail"`
// NotificationCode Notification Code. Valid values:
// 3 - Receiver Return Notification
// 6 - QV Email Notification
// 7 - QV Exception Notification
// 8 - QV Delivery Notification
// For Mail Innovations forward shipments, QV Email Notifications are allowed for First Class, Priority Mail, and Expedited Mail Innovation services.
NotificationCode string `json:"NotificationCode"`
}
PackageServiceOptionsNotification Receiver Return Notification. Applicable for Shipment with returned service.
type PackageServiceOptionsNotificationEMail ¶
type PackageServiceOptionsNotificationEMail struct {
// EMailAddress The destination email address of the receiver returns notification email.
EMailAddress []string `json:"EMailAddress"`
// FromEMailAddress The email address listed in the Reply To field of the message header, includes name and e-mail address of sender. The "From" field of the message header contains pkginfo@ups.com. Only allowed at the first package.
FromEMailAddress *string `json:"FromEMailAddress,omitempty"`
// FromName The name the receiver return notification will appear to be from. Defaults to the Shipper Name. Only allowed at the first package.
FromName *string `json:"FromName,omitempty"`
// Memo User defined text that will be included in the email. Only allowed at the first package.
Memo *string `json:"Memo,omitempty"`
// Subject The eMails subject. Defaults to the UPS Receiver Return Notification plus the shipment ID. Only allowed at the first package.
Subject *string `json:"Subject,omitempty"`
// SubjectCode Specifies a reference code and reference number to display in the subject of the Receiver Return Notification.
//
// When the subject code is provided, the subject will contain the following: UPS Receiver Return Notification.
//
// The reference code (the reference code will be mapped to the corresponding ANSI value) Plus the reference number.
//
// The valid subject codes are:
// - 01 - Shipment Reference Number 1,
// - 02 - Shipment Reference Number 2,
// - 03 - package Reference Number 1,
// - 04 - package Reference Number 2,
// - 05 - package Reference Number 3,
// - 06 - package Reference Number 4,
// - 07 - package Reference Number 5,
// - 08 - Subject Text (Return Notification only).
//
// If the subject code tag is not provided and the subject text is provided, the subject of the notification will be the subject text.
//
// If the subject text is provided, and subject code tag exists, then the subject code value must be 08.
//
// If the subject code is 08, the subject text must exist. If a subject code is provided that refers to a nonexistent reference number, the subject will default to the tracking number. Only allowed at the first package.
SubjectCode *string `json:"SubjectCode,omitempty"`
// UndeliverableEMailAddress The e-mail address where an undeliverable email message is sent if the Receiver Return Notification email is undeliverable. Defaults to FromEMailAddress. Only allowed at the first package.
UndeliverableEMailAddress *string `json:"UndeliverableEMailAddress,omitempty"`
}
PackageServiceOptionsNotificationEMail Container for the e-mail message.
type PackageSimpleRate ¶
type PackageSimpleRate struct {
// Code SimpleRate code. Valid Values
// - XS = Extra Small
// - S = Small
// - M = Medium
// - L = Large
// - XL = Extra Large
Code string `json:"Code"`
// Description Simple Rate description of the code above. Currently ignored if provided in the Request. Length is not validated.
Description *string `json:"Description,omitempty"`
}
PackageSimpleRate SimpleRate Container
type PackageUPSPremier ¶
type PackageUPSPremier struct {
// Category UPS Premier Category. Valid values are 01,02,03 UPS Premier Silver -01
// UPS Premier Gold - 02
// UPS Premier Platinum - 03
Category string `json:"Category"`
HandlingInstructions []UPSPremierHandlingInstructions `json:"HandlingInstructions"`
// SensorID SensorID is RFID for UPS Premier Silver. SensorID is MeshID for UPS Premier Gold or UPS Premier Platinum Package.
SensorID *string `json:"SensorID,omitempty"`
}
PackageUPSPremier UPS Premier Container.
type PackageWeightUnitOfMeasurement ¶
type PackageWeightUnitOfMeasurement struct {
// Code Package weight unit of measurement code.
//
// Valid values:
// - LBS = Pounds
// - KGS = Kilograms
// - OZS = Ounces
//
// Unit of Measurement "OZS" is the only valid UOM for some of the Mail Innovations Forward and Worldwide Economy DDU Shipments.
//
// Please refer to Appendix for more details regarding the valid combination of Mail Innovation Forward Shipment services, Package Type and Unit of Measurement.
Code string `json:"Code"`
// Description Description of the unit of measurement for package weight.
Description *string `json:"Description,omitempty"`
}
PackageWeightUnitOfMeasurement Container to hold UnitOfMeasurement information for package weight.
type PackingListInfoPackageAssociated ¶
type PackingListInfoPackageAssociated struct {
// PackageNumber Package number the product should be allocated to ont he packing list. Required for packaging list and Air Freight Packing list.
PackageNumber string `json:"PackageNumber"`
// ProductAmount Amount of Product associated with a package. Required for packaging list and Air Freight Packing list.
ProductAmount string `json:"ProductAmount"`
// ProductNote Product Note.
ProductNote *string `json:"ProductNote,omitempty"`
}
PackingListInfoPackageAssociated Data Container holding package/product related information that will break up the product into each package on the packing list. Total product amount must equal the product unit value above. Required for packaging list and Air Freight Packing list. Packaging list max allowed : 20 Air Freight Packaging list max allowed: 200
type PaymentInformationShipmentCharge ¶
type PaymentInformationShipmentCharge struct {
// BillReceiver Container for the BillReceiver billing option. This element or its sibling element, BillShipper, BillThirdParty or Consignee Billed, must be present but no more than one can be present. For a return shipment, Bill Receiver is invalid for Transportation charges.
BillReceiver *ShipmentChargeBillReceiver `json:"BillReceiver,omitempty"`
// BillShipper Container for the BillShipper billing option. The three payment methods that are available for the Bill Shipper billing option are alternate payment method, account number or credit card. This element or its sibling element, BillReceiver, BillThirdParty or ConsigneeBilledIndicator, must be present but no more than one can be present.
BillShipper *ShipmentChargeBillShipper `json:"BillShipper,omitempty"`
// BillThirdParty Container for the third party billing option. This element or its sibling element, BillShipper, BillReceiver or Consignee Billed, must be present but no more than one can be present.
BillThirdParty *ShipmentChargeBillThirdParty `json:"BillThirdParty,omitempty"`
// ConsigneeBilledIndicator Consignee Billing payment option indicator. The presence indicates consignee billing option is selected. The absence indicates one of the other payment options is selected. This is an empty tag, any value inside is ignored. This element or its sibling element, BillShipper, BillReceiver or BillThirdParty, must be present but no more than one can be present. This billing option is valid for a shipment charge type of Transportation only. Only applies to US/PR and PR/US shipment origins and destination.
//
// This payment method allows you to bill the charges for a specified shipment to a consignee who has agreed to pay the charges. All shipping charges are billed to the consignees UPS account number including the following accessorials: Additional Handling, Delivery Area Surcharges, Delivery Change Requests, Early AM Premium, Early AM Out of Territory, Fuel Surcharge, Hazardous Material Surcharges, Large Package Surcharge, Over Max Limits, and Saturday Delivery.
//
// Declared Value, Delivery Confirmation, On Call Pickup, Remote Area Surcharge, Saturday Pickup of Delivery fees are not passed to the consignee. These charges are billed to the shippers UPS account number.
ConsigneeBilledIndicator *string `json:"ConsigneeBilledIndicator,omitempty"`
// Type Valid values:
// 01 = Transportation
// 02 = Duties and Taxes 03 = Broker of Choice A shipment charge type of 01 = Transportation is required.
//
// A shipment charge type of 02 = Duties and Taxes is not required; however, this charge type is invalid for Qualified Domestic Shipments.
//
// A Qualified Domestic Shipment is any shipment in which one of the following applies:
//
// 1) The origin and destination country or territory is the same.
//
// 2) US to PR shipment.
//
// 3) PR to US shipment.
//
// 4) The origin and destination country or territory are both European Union countries or territories and the GoodsNotInFreeCirculation indicator is not present.
//
// 5) The origin and destination IATA code is the same. 03 = Broker of Choice
Type string `json:"Type"`
}
PaymentInformationShipmentCharge Shipment charge container. If Duty and Tax charges are applicable to a shipment and a payer is not specified, the default payer of Duty and Tax charges is Bill to Receiver. There will be no default payer of Duty and Tax charges for DDU and DDP service.
type PreAlertNotificationEMailMessage ¶
type PreAlertNotificationEMailMessage struct {
// EMailAddress EMailAddress where PreAlertNotification is sent.
EMailAddress string `json:"EMailAddress"`
// UndeliverableEMailAddress This is used for notification when EMailAddress for PreAlertNotification is undeliverable.
UndeliverableEMailAddress *string `json:"UndeliverableEMailAddress,omitempty"`
}
PreAlertNotificationEMailMessage This container is used for Populating EMailMessage details for PreAlertNotification.
type PreAlertNotificationLocale ¶
type PreAlertNotificationLocale struct {
// Dialect Refer to Language/Dialect Combinations in the Appendix for valid pairs.
Dialect string `json:"Dialect"`
// Language Refer to Language/Dialect Combinations in the Appendix for valid pairs.
Language string `json:"Language"`
}
PreAlertNotificationLocale This container is used for providing Language and dialect details for PreAlertNotification.
type PreAlertNotificationTextMessage ¶
type PreAlertNotificationTextMessage struct {
// PhoneNumber Phone number for receiving Voice PreAlertNotification. Valid values are 0 – 9.
//
// If the country or territory of the message recipient is US, PR, CA, and VI, the layout is:
//
// 1, area code, 7 digit phone number or
//
// 1, area code, 7 digit phone number, 4 digit extension number.
//
// For other countries or territories, the layout is country or territory code, area code, 7 digit number.
PhoneNumber string `json:"PhoneNumber"`
}
PreAlertNotificationTextMessage TextMessage container is used for specifying phone number for receiving text preAlertNotification.
type PreAlertNotificationVoiceMessage ¶
type PreAlertNotificationVoiceMessage struct {
// PhoneNumber Phone number for receiving Voice PreAlertNotification. Valid values are 0 – 9.
//
// If the country or territory of the message recipient is US, PR, CA, and VI, the layout is:
//
// 1, area code, 7 digit phone number or
//
// 1, area code, 7 digit phone number, 4 digit extension number.
//
// For other countries or territories, the layout is country or territory code, area code, 7 digit number.
PhoneNumber string `json:"PhoneNumber"`
}
PreAlertNotificationVoiceMessage VoiceMessage container is used for specifying phone number for receiving voice PreAlertNotification.
type ProducerAddress ¶
type ProducerAddress struct {
// AddressLine Address line of the Producer.
AddressLine []string `json:"AddressLine"`
// City City of the Producer. Applies to USMCA. Conditionally required for: USMCA, when Producer option is not specified.
City string `json:"City"`
// CountryCode Country or Territory code of the Producer. Applies to USMCA.
CountryCode string `json:"CountryCode"`
// PostalCode Postal code of the Producer. Applies to USMCA. Required for certain countries or territories. The length of the postal code depends on the country or territory code.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode State of the Producer. Applies to USMCA. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
// Town Town of the Producer.
Town *string `json:"Town,omitempty"`
}
ProducerAddress Address information of the Producer. Applies to USMCA. Only applicable if producer option is empty or not present. Conditionally required for: USMCA, when Producer option is not specified.
type ProducerPhone ¶
type ProducerPhone struct {
// Extension The locations phone extension of the Producer. Applies to USMCA.
Extension *string `json:"Extension,omitempty"`
// Number The locations phone number of the Producer. Applies to USMCA.
Number string `json:"Number"`
}
ProducerPhone Phone number information of Producer. Applies to USMCA.
type ProductDDSReferenceNumber ¶
type ProductDDSReferenceNumber struct {
// Number holds a list of DDS Reference Numbers
Number *string `json:"Number,omitempty"`
}
ProductDDSReferenceNumber defines model for Product_DDSReferenceNumber.
type ProductEEIInformation ¶
type ProductEEIInformation struct {
// DDTCInformation Department of State/ Directorate of Defense Trade Control Information. This element is a container for additional information that is applicable to SDL products. It will only be evaluated if the provided license code is an SDL code. Applies to EEI Form only.
DDTCInformation *EEIInformationDDTCInformation `json:"DDTCInformation,omitempty"`
// ExportInformation Required for EEI form id it is a SDL product. Valid values: LC, LV, SS,MS, GS, DP, HR, UG, IC, SC, DD, HH, SR, TE,TL, IS, CR, GP, RJ, TP, IP, IR, DB, CH, RS, OS Applies to EEI form only. Required if EEIFilingOption code 3 specified for EEI form.
ExportInformation *string `json:"ExportInformation,omitempty"`
// License Licence information for SDL commodity. Applies to EEI form only.
License *EEIInformationLicense `json:"License,omitempty"`
}
ProductEEIInformation Required for EEI form. Applies to EEI form only.
type ProductExcludeFromForm ¶
type ProductExcludeFromForm struct {
// FormType Indicates the name of the International form requested to NOT have product information. Possible Values are 04 – USMCA. Please note that if this is used and you DO NOT have the corresponding form type requested this will be IGNORED.
FormType []string `json:"FormType"`
}
ProductExcludeFromForm Container tag for determining whether or not to exclude product information from a particular form. If this container is not present we assume that the DEFAULT is selected which is "none" and all products will appear on all forms.
type ProductNetCostDateRange ¶
type ProductNetCostDateRange struct {
// BeginDate If the RVC is calculated over a period of time, it should be identified by the begin date (yyyyMMdd) of that period. (Reference: Articles 402.1, 402.5). Applies to USMCA only. Format is yyyyMMdd.
BeginDate string `json:"BeginDate"`
// EndDate If the RVC is calculated over a period of time, it should be identified by the End date (yyyyMMdd) of that period. (Reference: Articles 402.1, 402.5). Applies to USMCA only. Format is yyyyMMdd.
EndDate string `json:"EndDate"`
}
ProductNetCostDateRange Date Range for regional value content (RVC). Applies to USMCA CO only.
type ProductPackingListInfo ¶
type ProductPackingListInfo struct {
PackageAssociated []PackingListInfoPackageAssociated `json:"PackageAssociated"`
}
ProductPackingListInfo Data Container holding package related information. Required for packaging list, Air Freight Packing list and multi-piece Economy shipments.
type ProductProductWeight ¶
type ProductProductWeight struct {
// UnitOfMeasurement Container tag for the Unit of Measurement of weight. Applies to CO and EEI forms only.
UnitOfMeasurement ProductWeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Weight of Product. Applies to CO and EEI forms only. Valid characters are 0-9 and '.' (Decimal point). Limit to 1 digit after the decimal. The maximum length of the field is 5 including '.' and can hold up to 1 decimal place.
Weight string `json:"Weight"`
}
ProductProductWeight The shipping weight, including containers, for each commodity with a separate Harmonized Tariff Code / Schedule B Number. This weight does not include carrier equipment. Applies to CO and EEI forms only. Required for CO and EEI forms.
type ProductScheduleB ¶
type ProductScheduleB struct {
// Number A unique 10-digit commodity classification code for the item being exported. (To classify a commodity access the following Web page: http://www.census.gov/foreign-trade/schedules/b/#search). Applies to EEI forms only. Has to be 10 characters.
Number string `json:"Number"`
// Quantity The count of how many Schedule B units of the current good are in the shipment (EEI only). For example, if the Schedule B unit of measure is dozens and eight dozen, is being shipped, indicate 8 in this field. Applies to EEI forms only. Conditionally required for EEI forms if ScheduleB UnitOfMeasurement is not X. Should be Numeric. Valid characters are 0 -9.
Quantity *[]string `json:"Quantity,omitempty"`
UnitOfMeasurement []ScheduleBUnitOfMeasurement `json:"UnitOfMeasurement"`
}
ProductScheduleB Container tag for the schedule B information of a commodity. Applies to EEI forms only. Required for EEI form
type ProductUnit ¶
type ProductUnit struct {
// Number Total quantity of each commodity to be shipped, measured in the units specified in the Unit of Measure field. Required for Invoice forms and optional for Partial Invoice. Must be numeric. Valid characters are 0-9.
Number string `json:"Number"`
// UnitOfMeasurement Container tag for the Unit of measurement for the commodity. Required for Invoice forms and optional for Partial Invoice.
UnitOfMeasurement UnitUnitOfMeasurement `json:"UnitOfMeasurement"`
// Value Monetary amount used to specify the worth or price of the commodity. Amount should be greater than zero. Applies to Invoice and Partial Invoice form. Required for Invoice forms and optional for Partial Invoice. Amount should be greater than zero. Valid characters are 0-9 and. (Decimal point). Limit to 6 digits after the decimal. The maximum length of the field is 19 including '.' and can hold up to 6 decimal places.(#####.######, ######.#####, #######.####, ########.###, #########.##,##########.#,############). The value of this product and the other products should be such that the invoice line total which is the sum of ( number*values) of all products should not exceed 9999999999999999.99
Value string `json:"Value"`
}
ProductUnit Container tag for the Unit information of each product. (also called as commodity) Required for Invoice forms and optional for Partial Invoice.
type ProductWeightUnitOfMeasurement ¶
type ProductWeightUnitOfMeasurement struct {
// Code Code for unit of Measurement of weight. Applies to CO and EEI forms only. Valid values:
// - KGS
// - LBS
Code string `json:"Code"`
// Description Description of the Unit of Measure.
Description *string `json:"Description,omitempty"`
}
ProductWeightUnitOfMeasurement Container tag for the Unit of Measurement of weight. Applies to CO and EEI forms only.
type ReceiptImage ¶
type ReceiptImage struct {
// GraphicImage Base 64 encoded graphic image
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container for the format of the receipt.
ImageFormat ReceiptImageImageFormat `json:"ImageFormat"`
}
ReceiptImage Container for the receipt in the format other than HTML.
type ReceiptImageImageFormat ¶
type ReceiptImageImageFormat struct {
// Code Code representing the format in which a receipt is returned. Valid values:
// - HTML = HTML format
// - PDF = pdf
Code string `json:"Code"`
// Description Description of the form image format code.
Description *string `json:"Description,omitempty"`
}
ReceiptImageImageFormat Container for the format of the receipt.
type ReceiptSpecificationImageFormat ¶
type ReceiptSpecificationImageFormat struct {
// Code Print code that determines the receipt format. Valid Codes are: EPL, SPL, ZPL and HTML.
Code string `json:"Code"`
// Description Description of the receipt format code.
Description *string `json:"Description,omitempty"`
}
ReceiptSpecificationImageFormat ImageFormat Container.
type ReferenceValuesReferenceNumber ¶
type ReferenceValuesReferenceNumber struct {
// Value Required if TrackingNumber or Mail Innovations Tracking Number is not populated. Customer supplied reference number. Supports up to 2 customer supplied combinations of Reference code- value combinations.
Value string `json:"Value"`
}
ReferenceValuesReferenceNumber Container for reference number
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestTransactionReference ¶
type RequestTransactionReference struct {
// CustomerContext The CustomerContext Information which will be echoed during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
RequestTransactionReference TransactionReference identifies transactions between client and server.
type ResponseAlert ¶
type ResponseAlert struct {
// Code Warning code returned by the system.
Code string `json:"Code"`
// Description Warning messages returned by the system.
Description string `json:"Description"`
}
ResponseAlert Alert Container. There can be zero to many alert containers with code and description.
type ResponseResponseStatus ¶
type ResponseResponseStatus struct {
// Code Identifies the success or failure of the transaction. 1 = Successful
Code string `json:"Code"`
// Description Describes Response Status Code. Returns text of Success.
Description string `json:"Description"`
}
ResponseResponseStatus Response status container.
type ResponseTransactionReference ¶
type ResponseTransactionReference struct {
// CustomerContext The CustomerContext Information which will be echoed during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
ResponseTransactionReference Transaction Reference Container.
type SHIPRequestWrapper ¶
type SHIPRequestWrapper struct {
// ShipmentRequest Shipment Request.
ShipmentRequest ShipmentRequest `json:"ShipmentRequest"`
}
SHIPRequestWrapper defines model for SHIPRequestWrapper.
type SHIPResponseWrapper ¶
type SHIPResponseWrapper struct {
// ShipmentResponse Shipment Response.
ShipmentResponse ShipmentResponse `json:"ShipmentResponse"`
}
SHIPResponseWrapper N/A
type ScheduleBUnitOfMeasurement ¶
type ScheduleBUnitOfMeasurement struct {
// Code The unit of measure indicated on the Export License. Enter an X if there is no unit of measure in the Schedule B Unit field. Applies to EEI forms only. Required for the EEI form.
//
// Refer to ScheduleB Unit of Measure Codes in the Appendix for valid values.
Code string `json:"Code"`
// Description Description of the Unit of Measure.
Description *string `json:"Description,omitempty"`
}
ScheduleBUnitOfMeasurement The unit of measure indicated on the Export License. Applies to EEI forms only.
type ShipFromAddress ¶
type ShipFromAddress struct {
// AddressLine The Ship from street address including name and number (when applicable). 35 characters are accepted, but for return Shipment only 30 characters will be printed on the label.
AddressLine []string `json:"AddressLine"`
// City The Ship from city.
//
// 30 characters are accepted, but for return Shipment only 15 characters will be printed on the label. Required if ShipFrom is supplied
City string `json:"City"`
// CountryCode Origin locations country or territory code. Required if ShipFrom tag is supplied. For Return Shipment the country or territory code must meet the following conditions:
//
// - At least two of the following country or territory codes are the same: ShipTo, ShipFrom, and Shipper.
// - None of the following country or territory codes are the same and are a member of the EU: ShipTo, ShipFrom, and Shipper.
// - If any of the two following country or territory codes: ShipTo/ShipFrom/ Shipper are members in EU otherwise check if the shipper has Third country or territory Contract.
CountryCode string `json:"CountryCode"`
// PostalCode The ship from locations postal code.
// 9 characters are accepted. Required if ShipFrom is supplied and the ShipFrom country or territory is the US and Puerto Rico.
//
// For US and Puerto Rico, it must be valid 5 or 9 digit postal code. The character "-" may be used to separate the first five digits and the last four digits.
//
// If the ShipFrom country or territory is CA, then the postal code must be 6 alphanumeric characters whose format is A#A#A# where A is an uppercase letter and # is a digit.
//
// For all other countries or territories the postal code is optional and must be no more than 9 alphanumeric characters long.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode Origin location's state or province code. Required if ShipFrom is supplied, and ShipFrom country or territory is US.
//
// Required for Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
ShipFromAddress Ship from Address Container. The package will be originating from or being shipped from this address. The shipment will be rated from this origin address to the destination ship to address.
type ShipFromPhone ¶
type ShipFromPhone struct {
// Extension The Ship from phone extension.
Extension *string `json:"Extension,omitempty"`
// Number The Ship from phone Number.
Number string `json:"Number"`
}
ShipFromPhone Container for Phone Number. If ShipFrom country or territory is US, PR, CA, and VI, the layout is: area code, 7 digit phone number or area code, 7 digit phone number, 4 digit extension number.
For other countries or territories, the layout is: country or territory code, area code, 7 digit number.
If ShipFrom tag is in the XML and International forms is requested.
type ShipFromTaxIDType ¶
type ShipFromTaxIDType struct {
// Code Company's tax Identification type. Valid values: EIN, DNS, and FGN.
// Applies to EEI form only.
Code string `json:"Code"`
// Description Description of TaxID submitted. Applies to EEI form only.
Description *string `json:"Description,omitempty"`
}
ShipFromTaxIDType Tax Identification Container. Applies to EEI form only.
type ShipFromVendorInfo ¶
type ShipFromVendorInfo struct {
// ConsigneeType Consignee Type. 01 = Business 02 = Consumer NA = Not Applicable
ConsigneeType *string `json:"ConsigneeType,omitempty"`
// VendorCollectIDNumber Shipper's VAT Tax collection registration number to be entered by Shipper at time of shipment creation. Presence of this number as part of the shipment information implies the shipper has collected/paid the required VAT tax (outside of UPS/UPS systems). Vendor Colect ID Number will be printed on commercial invoice if present.
//
// Sample Values: 'IMDEU1234567' (IOSS #), 'VOEC1234567' (VOEC #), 'GB1234567' (HMRC #)
//
// Required if the shipment is subject to Vendor Collect ID collection
VendorCollectIDNumber string `json:"VendorCollectIDNumber"`
// VendorCollectIDTypeCode Code that identifies the type of Vendor Collect ID Number. Valid Values
// - 0000 = Unknown/Other
// - 0356 = IOSS Registration Number
// - 0357 = VOEC Registration Number
// - 0358 = Deprecated
// - 0359 = PVA Registration Number
// - 1051 = Singapore GST Registration Number
// - 1052 = ARN Registration Number
// - 1053 = IRD Registration Number
// - 1054 = Malaysia Low Value Goods Sales Tax Registration Number
//
// Vendor Collect ID Number type code will be printed on commercial invoice if present.
VendorCollectIDTypeCode string `json:"VendorCollectIDTypeCode"`
}
ShipFromVendorInfo Vendor Information Container
type ShipToAddress ¶
type ShipToAddress struct {
// AddressLine Address Line of the consignee. All three Address Lines will be printed on the label.
AddressLine []string `json:"AddressLine"`
// City Consignee's city. 30 characters are accepted, but only 15 characters will be printed on the label.
City string `json:"City"`
// CountryCode Consignee's country or territory code. Must be a valid UPS Billing country or territory code.
// For Return Shipment the country or territory code must meet the following conditions:
// - At least two of the following country or territory codes are the same: ShipTo, ShipFrom, and Shipper.
// - None of the following country or territory codes are the same and are a member of the EU: ShipTo, ShipFrom, and Shipper.
// - If any of the two following country or territory codes: ShipTo/ ShipFrom/ Shipper are members in EU otherwise check if the shipper has Third country or territory Contract.
CountryCode string `json:"CountryCode"`
// POBoxIndicator This field is a flag to indicate if the receiver address has PO box indicator. True if POBoxIndicator tag exists; false otherwise.
POBoxIndicator *string `json:"POBoxIndicator,omitempty"`
// PostalCode Consignee's postal code. If the ShipTo country or territory is US or Puerto Rico, 5 or 9 digits are required.
//
// If the ShipTo country or territory is CA, then the postal code is required and must be 6 alphanumeric characters whose format is A#A#A# where A is an uppercase letter and # is a digit.
//
// Otherwise optional. For all other countries or territories the postal code is optional and must be no more than 9 alphanumeric characters long.
PostalCode *string `json:"PostalCode,omitempty"`
// ResidentialAddressIndicator This field is a flag to indicate if the receiver is a residential location.
// True if ResidentialAddressIndicator tag exists. This is an empty tag, any value inside is ignored.
ResidentialAddressIndicator *string `json:"ResidentialAddressIndicator,omitempty"`
// StateProvinceCode Consignee’s state or province code. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
ShipToAddress Address Container.
type ShipToPhone ¶
type ShipToPhone struct {
// Extension Consignee's phone extension.
Extension *string `json:"Extension,omitempty"`
// Number Consignee's phone Number. Required for: UPS Next Day Air® Early service, and when Ship To country or territory is different than the ShipFrom country or territory.
//
// If ShipTo country or territory is US, PR, CA, and VI, the layout is:
// area code, 7 digit PhoneNumber or
// area code, 7 digit PhoneNumber, 4 digit extension number; number.
//
// For other countries or territories, the layout is: country or territory code, area code, 7 digit number.
Number string `json:"Number"`
}
ShipToPhone Container for Phone Number
type ShipmentAlternateDeliveryAddress ¶
type ShipmentAlternateDeliveryAddress struct {
// Address Address Container.
Address AlternateDeliveryAddressAddress `json:"Address"`
// AttentionName Attention Name.
AttentionName string `json:"AttentionName"`
// Name Retail Location Name.
Name string `json:"Name"`
// UPSAccessPointID UPS Access Point ID.
UPSAccessPointID *string `json:"UPSAccessPointID,omitempty"`
}
ShipmentAlternateDeliveryAddress AlternateDeliveryAddress Container. Alternate Delivery Address (UPS Access Point Address) required if ShipmentIndicationType is 01 or 02.
type ShipmentChargeBillReceiver ¶
type ShipmentChargeBillReceiver struct {
// AccountNumber The UPS account number. The account must be a valid UPS account number that is active.
//
// For US, PR and CA accounts, the account must be a daily pickup account, an occasional account, a customer B.I.N account, or a dropper shipper account.
//
// All other accounts must be either a daily pickup account, an occasional account, a drop shipper account, or a non-shipping account.
AccountNumber string `json:"AccountNumber"`
// Address Container for additional information for the bill receiver's UPS accounts address.
Address *BillReceiverAddress `json:"Address,omitempty"`
}
ShipmentChargeBillReceiver Container for the BillReceiver billing option. This element or its sibling element, BillShipper, BillThirdParty or Consignee Billed, must be present but no more than one can be present. For a return shipment, Bill Receiver is invalid for Transportation charges.
type ShipmentChargeBillShipper ¶
type ShipmentChargeBillShipper struct {
// AccountNumber UPS account number. Must be the same UPS account number as the one provided in Shipper/ShipperNumber.
//
// Either this element or one of the sibling elements CreditCard or AlternatePaymentMethod must be provided, but all of them may not be provided.
AccountNumber *string `json:"AccountNumber,omitempty"`
// AlternatePaymentMethod Alternate Payment Method.
//
// Valid value: 01= PayPal
//
// Only valid for forward shipments. It is not valid for Return or Import Control shipments.
//
// This element or one of the sibling elements CreditCard or AccountNumber must be provided, but all of them may not be provided. PayPal 01: Is only valid for forward shipments. It is not valid for Return or Import Control shipments.
//
// This element or one of the sibling elements CreditCard or AccountNumber must be provided, but all of them may not be provided.
AlternatePaymentMethod *string `json:"AlternatePaymentMethod,omitempty"`
// CreditCard Credit card information container. Required if neither of the following is present:
//
// /ShipmentRequest/Shipment/PaymentInformation/ShipmentCharge/BillShipper/AccountNumber
// or
// /ShipmentRequest/Shipment/PaymentInformation/ShipmentCharge/BillShipper/AlternatePaymentMethod.
//
// Credit card payment is valid for shipments without return service only.
CreditCard *BillShipperCreditCard `json:"CreditCard,omitempty"`
}
ShipmentChargeBillShipper Container for the BillShipper billing option. The three payment methods that are available for the Bill Shipper billing option are alternate payment method, account number or credit card. This element or its sibling element, BillReceiver, BillThirdParty or ConsigneeBilledIndicator, must be present but no more than one can be present.
type ShipmentChargeBillThirdParty ¶
type ShipmentChargeBillThirdParty struct {
// AccountNumber The UPS account number of the third party shipper. The account must be a valid UPS account number that is active.
//
// For US, PR and CA accounts, the account must be either a daily pickup account, an occasional account, or a customer B.I.N account, or a drop shipper account.
//
// All other accounts must be either a daily pickup account, an occasional account, a drop shipper account, or a non-shipping account.
AccountNumber *string `json:"AccountNumber,omitempty"`
// Address Container for additional information for the third party UPS accounts address.
Address BillThirdPartyAddress `json:"Address"`
// CertifiedElectronicMail Posta Elettronica Certificata (PEC) which is the recipient code for the customers certified electronic mail value.
CertifiedElectronicMail *string `json:"CertifiedElectronicMail,omitempty"`
// InterchangeSystemCode Sistema Di Interscambio(SDI) which is the recipient code for the customer's interchange value or Interchange System Code
InterchangeSystemCode *string `json:"InterchangeSystemCode,omitempty"`
}
ShipmentChargeBillThirdParty Container for the third party billing option. This element or its sibling element, BillShipper, BillReceiver or Consignee Billed, must be present but no more than one can be present.
type ShipmentChargesBaseServiceCharge ¶
type ShipmentChargesBaseServiceCharge struct {
// CurrencyCode BaseServiceCharge currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Base Service Charge value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentChargesBaseServiceCharge Base Service Charge container. Transportation charge = BaseServiceCharge + Fuel charge Returned only if Subversion >=1701.
type ShipmentChargesItemizedCharges ¶
type ShipmentChargesItemizedCharges struct {
// Code Identification code for itemized charge.
Code string `json:"Code"`
// CurrencyCode Itemized Charges currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// Description Description of Itemized Charge that had been charged.
Description *string `json:"Description,omitempty"`
// MonetaryValue Itemized Charges value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
// SubType The sub-type of ItemizedCharges type.
SubType *string `json:"SubType,omitempty"`
}
ShipmentChargesItemizedCharges defines model for ShipmentCharges_ItemizedCharges.
type ShipmentChargesServiceOptionsCharges ¶
type ShipmentChargesServiceOptionsCharges struct {
// CurrencyCode Accessorial charges currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Accessorial charges value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentChargesServiceOptionsCharges Service Option Charges container.
type ShipmentChargesTaxCharges ¶
type ShipmentChargesTaxCharges struct {
// MonetaryValue Tax Monetary Value represent the Tax amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
// Type Tax Type code. The code represents the type of Tax applied to a shipment. Refer to Tax Type Values/Abbreviations in the Appendix for valid values.
Type string `json:"Type"`
}
ShipmentChargesTaxCharges defines model for ShipmentCharges_TaxCharges.
type ShipmentChargesTotalCharges ¶
type ShipmentChargesTotalCharges struct {
// CurrencyCode Total charges currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Total charges value amount. Valid values are from 0 to 99999999999999.99.
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentChargesTotalCharges Total charges container.
type ShipmentChargesTotalChargesWithTaxes ¶
type ShipmentChargesTotalChargesWithTaxes struct {
// CurrencyCode TotalChargesWithTaxes currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue TotalChargesWithTaxes monetary value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentChargesTotalChargesWithTaxes TotalChargesWithTaxes container would be returned only if TaxInformationIndicator is present in request and when Negotiated Rates are not applicable. TotalChargesWithTaxes contains total charges including total taxes applied to a shipment.
type ShipmentChargesTransportationCharges ¶
type ShipmentChargesTransportationCharges struct {
// CurrencyCode Transportation charges currency code type. The currency code used in the Shipment request is returned.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Transportation and surcharges value amount. Valid values are from 0 to 99999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentChargesTransportationCharges Transportation Charges container.
type ShipmentDGSignatoryInfo ¶
type ShipmentDGSignatoryInfo struct {
// Date Date of signing the declaration form. Valid format is YYYYMMDD.
Date *string `json:"Date,omitempty"`
// Name Name of the person signing the declaration.
//
// Note: The name of person or department he/she is employed with, are both acceptable.
Name *string `json:"Name,omitempty"`
// Place The city of the Signatory.
Place *string `json:"Place,omitempty"`
// ShipperDeclaration Valid values:
// 01 = Shipment level
// 02 = Package level
// Valid only for the Shipper Declaration paper. If missing or invalid DGPaperImage will be returned at package level.
ShipperDeclaration *string `json:"ShipperDeclaration,omitempty"`
// Title Title of the person signing the declaration.
// Note: The title of the person or department he/she is employed with, are both acceptable.
Title *string `json:"Title,omitempty"`
// UploadOnlyIndicator Dangerous Goods Paper Upload Only Indicator. DG Paper will not be returned in response if UploadOnlyIndicator present.
UploadOnlyIndicator *string `json:"UploadOnlyIndicator,omitempty"`
}
ShipmentDGSignatoryInfo DGSignatoryInfo Container DGPaperImage will be returned if DGSignatoryInfo container present
type ShipmentFRSPaymentInformation ¶
type ShipmentFRSPaymentInformation struct {
// AccountNumber The UPS account number. If the Ground Freight Pricing indicator and FreightShipmentInformation/DensityEligibleIndicator is present in the request, this account number must be validated to check if it is Ground Freight Pricing Density Based Rating enabled.
AccountNumber string `json:"AccountNumber"`
// Address Container to hold the information for the FreightCollect and PrepaidThirdParty Address. Note: The Address is required only when the billing option is Freight collect or ThirdParty.
Address *FRSPaymentInformationAddress `json:"Address,omitempty"`
// Type Container to hold the Ground Freight Pricing payment type information. It is required if the request has Ground Freight Pricing shipment indicator.
Type FRSPaymentInformationType `json:"Type"`
}
ShipmentFRSPaymentInformation Container to hold the Payment information for the Ground Freight Pricing Shipments. Required for Ground Freight Pricing Shipments only.
type ShipmentFreightShipmentInformation ¶
type ShipmentFreightShipmentInformation struct {
// DensityEligibleIndicator The presence of the tag indicates that the rate request is density based.
// For Density Based Rating (DBR), the customer must have DBR Contract Service.
DensityEligibleIndicator *string `json:"DensityEligibleIndicator,omitempty"`
// FreightDensityInfo Freight Density Info container. Required if DensityEligibleIndicator is present.
FreightDensityInfo *FreightShipmentInformationFreightDensityInfo `json:"FreightDensityInfo,omitempty"`
}
ShipmentFreightShipmentInformation Container to hold Freight Shipment information.
type ShipmentGlobalTaxInformation ¶
type ShipmentGlobalTaxInformation struct {
AgentTaxIdentificationNumber *[]GlobalTaxInformationAgentTaxIdentificationNumber `json:"AgentTaxIdentificationNumber,omitempty"`
// ConsigneeTypeValue Consignee Type. 01 = Business 02 = Consumer NA = Not Applicable
ConsigneeTypeValue *string `json:"ConsigneeTypeValue,omitempty"`
// DestinationCountryShipmentValue The value for destination_Country_ShipmentValue which satisfies Tax-ID Threshold Code is ‘01’=Yes, ‘02’=No,‘NA’= ‘Not
DestinationCountryShipmentValue *string `json:"DestinationCountryShipmentValue,omitempty"`
// OriginCountryShipmentValue The value for origin_country_shipment_value which satisfies Tax-ID Threshold Code is ‘01’=Yes, ‘02’=No, ‘NA’= ‘Not Applicable’
OriginCountryShipmentValue *string `json:"OriginCountryShipmentValue,omitempty"`
// ShipperTypeValue The value for idNumber_Consumer_TypeCode which satisfies Tax-ID Threshold Code is ‘01’=Business, ‘02’=Consumer/Individual, ‘NA’= ‘Not Applicable’
ShipperTypeValue *string `json:"ShipperTypeValue,omitempty"`
}
ShipmentGlobalTaxInformation Container used to define the properties required for GlobalTaxID.
type ShipmentInvoiceLineTotal ¶
type ShipmentInvoiceLineTotal struct {
// CurrencyCode Invoice Line Total currency type.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Invoice Line Total amount for the entire shipment. Valid values are from 1 to 99999999
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentInvoiceLineTotal Container to hold InvoiceLineTotal Information. Required for forward shipments whose origin is the US and destination is Puerto Rico or Canada. Not available for any other shipments. FOR OTHER DESTINATIONS the InvoiceLineTotal in the International Forms Container must be used.
type ShipmentOpJSONRequestBody ¶
type ShipmentOpJSONRequestBody = SHIPRequestWrapper
ShipmentOpJSONRequestBody defines body for ShipmentOp for application/json ContentType.
type ShipmentOpParams ¶
type ShipmentOpParams struct {
// Additionaladdressvalidation Valid Values:
// city = validation will include city.Length 15
Additionaladdressvalidation *string `form:"additionaladdressvalidation,omitempty" json:"additionaladdressvalidation,omitempty"`
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
ShipmentOpParams defines parameters for ShipmentOp.
type ShipmentOpResponse ¶
type ShipmentOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SHIPResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseShipmentOpResponse ¶
func ParseShipmentOpResponse(rsp *http.Response) (*ShipmentOpResponse, error)
ParseShipmentOpResponse parses an HTTP response from a ShipmentOpWithResponse call
func (ShipmentOpResponse) Status ¶
func (r ShipmentOpResponse) Status() string
Status returns HTTPResponse.Status
func (ShipmentOpResponse) StatusCode ¶
func (r ShipmentOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShipmentPackage ¶
type ShipmentPackage struct {
// AdditionalHandlingIndicator Additional Handling Required. The presence indicates additional handling is required, the absence indicates no additional handling is required. Additional Handling indicator indicates it's a non-corrugated package.
AdditionalHandlingIndicator *string `json:"AdditionalHandlingIndicator,omitempty"`
// Commodity Container to hold the Commodity information. It is required if the Ground Freight Pricing Shipment indicator is present in the request.
Commodity *PackageCommodity `json:"Commodity,omitempty"`
// Description Merchandise description of package. Required for shipment with return service.
Description *string `json:"Description,omitempty"`
// DimWeight Dimensional weight of shipment. Please visit ups.com for rules on calculating. There is one implied decimal place (e.g. 115 = 11.5). If dimensions are provided, dimensional weight is ignored. For US/PR/CA shipments, dimensional weight is ignored
DimWeight *PackageDimWeight `json:"DimWeight,omitempty"`
// Dimensions Dimensions information container. Note: Currently dimensions are not applicable to Ground Freight Pricing. Length + 2*(Width + Height) must be less than or equal to 165 IN or 330 CM. Required for Heavy Goods service. Package Dimension will be ignored for Simple Rate
Dimensions *PackageDimensions `json:"Dimensions,omitempty"`
// HazMatPackageInformation Required when number of hazmat containers in a package is greater than 1. It indicates whether all the hazmat materials are kept in a single box or multiple boxes. Required when number of hazmat container in a package is greater than 1.
HazMatPackageInformation *PackageHazMatPackageInformation `json:"HazMatPackageInformation,omitempty"`
// LargePackageIndicator Presence of the indicator mentions that the package is Large Package.
//
// This is an empty tag, any value inside is ignored.
LargePackageIndicator *string `json:"LargePackageIndicator,omitempty"`
// MinimumBillableWeightIndicator Presence/Absence Indicator. Any value is ignored. If present, indicates that the package is qualified for minimum billable weight. Applicable for UPS Worldwide Economy DDU service.
MinimumBillableWeightIndicator *string `json:"MinimumBillableWeightIndicator,omitempty"`
// NumOfPieces Number of Pieces. Applicable for Air Freight only
NumOfPieces *string `json:"NumOfPieces,omitempty"`
// OversizeIndicator Presence/Absence Indicator. Any value is ignored. If present, indicates that the package is over size. Applicable for UPS Worldwide Economy DDU service.
OversizeIndicator *string `json:"OversizeIndicator,omitempty"`
// PackageServiceOptions Package Service Options container.
PackageServiceOptions *PackagePackageServiceOptions `json:"PackageServiceOptions,omitempty"`
// PackageWeight Container to hold package weight information. Package weight is a required for Ground Freight Pricing shipments and Heavy Goods service. Package Weight will be ignored for Simple Rate.
PackageWeight *PackagePackageWeight `json:"PackageWeight,omitempty"`
// Packaging Packaging container. Container for Packaging Type.
Packaging PackagePackaging `json:"Packaging"`
// PalletDescription Description of articles & special marks. Applicable for Air Freight only
PalletDescription *string `json:"PalletDescription,omitempty"`
ReferenceNumber *[]PackageReferenceNumber `json:"ReferenceNumber,omitempty"`
// SimpleRate SimpleRate Container
SimpleRate *PackageSimpleRate `json:"SimpleRate,omitempty"`
// UPSPremier UPS Premier Container.
UPSPremier *PackageUPSPremier `json:"UPSPremier,omitempty"`
// UnitPrice Unit price of the commodity. Applicable for Air Freight only Limit to 2 digit after the decimal. The maximum length of the field is 12 including '.' and can hold up to 2 decimal place. (e.g. 999999999.99)
UnitPrice *string `json:"UnitPrice,omitempty"`
}
ShipmentPackage Package Information container. For Return Shipments up to 20 packages are allowed. US/PR origin return movements are limited to only one package. For Mail Innovations and Simple Rate shipments only one package is allowed.
type ShipmentPaymentInformation ¶
type ShipmentPaymentInformation struct {
ShipmentCharge []PaymentInformationShipmentCharge `json:"ShipmentCharge"`
// SplitDutyVATIndicator Split Duty VAT Indicator. The presence indicates the payer specified for Transportation Charges will pay transportation charges and any duties that apply to the shipment. The payer specified for Duties and Taxes will pay the VAT (Value-Added Tax) only. This is an empty tag, any value inside is ignored. The payment method for Transportation charges must be UPS account. The UPS account must be a daily pickup account or an occasional account.
SplitDutyVATIndicator *string `json:"SplitDutyVATIndicator,omitempty"`
}
ShipmentPaymentInformation Payment information container for detailed shipment charges. The two shipment charges that are available for specification are Transportation charges and Duties and Taxes. It is required for non-Ground Freight Pricing shipments only.
type ShipmentPromotionalDiscountInformation ¶
type ShipmentPromotionalDiscountInformation struct {
// PromoAliasCode Promotion Alias code Required if PromotionalDiscountInformation container is present.
PromoAliasCode string `json:"PromoAliasCode"`
// PromoCode Promotion Code. A discount that is applied to the user. Required if PromotionalDiscountInformation container is present.
PromoCode string `json:"PromoCode"`
}
ShipmentPromotionalDiscountInformation PromotionalDiscountInformation container. This container contains discount information that the customer wants to request each time while placing a shipment.
type ShipmentReferenceNumber ¶
type ShipmentReferenceNumber struct {
// BarCodeIndicator If the indicator is present then the reference number's value will be bar coded on the label. This is an empty tag, any value inside is ignored. Only one shipment-level or package-level reference number can be bar coded per shipment. In order to barcode a reference number, its value must be no longer than 14 alphanumeric characters or 24 numeric characters and cannot contain spaces.
BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`
// Code Shipment Reference number type code. The code specifies the Reference name. Refer to the Reference Number Code table. Valid if the origin/destination pair is not US/US or PR/PR and character should be alpha-numeric.
Code *string `json:"Code,omitempty"`
// Value Customer supplied reference number. Valid if the origin/destination pair is not US/US or PR/PR
Value string `json:"Value"`
}
ShipmentReferenceNumber Reference Number information container. Required for Trade Direct shipments.
type ShipmentRequest ¶
type ShipmentRequest struct {
// LabelSpecification Container used to define the properties required by the user to print and/or display the UPS shipping label. Required for shipment without return service or shipments with PRL return service. Required for Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707.
LabelSpecification *ShipmentRequestLabelSpecification `json:"LabelSpecification,omitempty"`
// ReceiptSpecification Container used to allow the user to choose to print a thermal receipt.
ReceiptSpecification *ShipmentRequestReceiptSpecification `json:"ReceiptSpecification,omitempty"`
// Request Request Container
Request ShipmentRequestRequest `json:"Request"`
// Shipment Shipment Container
Shipment ShipmentRequestShipment `json:"Shipment"`
}
ShipmentRequest Shipment Request.
type ShipmentRequestLabelSpecification ¶
type ShipmentRequestLabelSpecification struct {
// CharacterSet Language character set expected on label.
// Valid values:
// dan = Danish (Latin-1)
// nld = Dutch (Latin-1)
// fin = Finnish (Latin-1)
// fra = French (Latin-1)
// deu = German (Latin-1)
// itl = Italian (Latin-1)
// nor = Norwegian (Latin-1)
// pol = Polish (Latin-2)
// por = Poruguese (Latin-1)
// spa = Spanish (Latin-1)
// swe = Swedish (Latin-1)
// ces = Czech (Latin-2)
// hun = Hungarian (Latin-2)
// slk = Slovak (Latin-2)
// rus = Russian (Cyrillic)
// tur = Turkish (Latin-5)
// ron = Romanian (Latin-2)
// bul = Bulgarian (Latin-2)
// est = Estonian (Latin-2)
// ell = Greek (Latin-2)
// lav = Latvian (Latin-2)
// lit = Lithuanian (Latin-2)
// eng = English (Latin-1) Default is English (Latin-1).
CharacterSet *string `json:"CharacterSet,omitempty"`
// HTTPUserAgent Browser HTTPUserAgent String. This is the preferred way of identifying GIF image type to be generated. Required if /ShipmentRequest/LabelSpecificationLabelSpecification/LabelImageFormat/Code = Gif. Default to Mozilla/4.5 if this field is missing or has invalid value.
HTTPUserAgent *string `json:"HTTPUserAgent,omitempty"`
Instruction *[]LabelSpecificationInstruction `json:"Instruction,omitempty"`
// LabelImageFormat LabelImageFormat Container.
LabelImageFormat LabelSpecificationLabelImageFormat `json:"LabelImageFormat"`
// LabelStockSize Container for the EPL2, ZPL or SPL label size. Valid for EPL2, ZPL and SPL Labels.
LabelStockSize LabelSpecificationLabelStockSize `json:"LabelStockSize"`
}
ShipmentRequestLabelSpecification Container used to define the properties required by the user to print and/or display the UPS shipping label. Required for shipment without return service or shipments with PRL return service. Required for Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707.
type ShipmentRequestReceiptSpecification ¶
type ShipmentRequestReceiptSpecification struct {
// ImageFormat ImageFormat Container.
ImageFormat ReceiptSpecificationImageFormat `json:"ImageFormat"`
}
ShipmentRequestReceiptSpecification Container used to allow the user to choose to print a thermal receipt.
type ShipmentRequestRequest ¶
type ShipmentRequestRequest struct {
// RequestOption Optional Processing.
//
// Note: Full address validation is not performed. Therefore, it is the responsibility of the Shipping Tool User to ensure the address entered is correct to avoid an address correction fee. Valid values:
// nonvalidate = No street level address validation would be performed, but Postal Code/State combination validation would still be performed.
//
// validate = No street level address validation would be performed, but City/State/Postal Code/ combination validation would still be performed.
RequestOption string `json:"RequestOption"`
// SubVersion When UPS introduces new elements in the response that are not associated with new request elements, Subversion is used. This ensures backward compatibility.
//
// To get such elements you need to have the right Subversion. The value of the subversion is explained in the Response element Description.
//
// Example: Itemized Charges are returned only when the Subversion element is present and greater than or equal to 1601.
//
// Format: YYMM = Year and month of the release.
//
// Example: 1607 = 2016 July Supported values: 1601, 1607, 1701, 1707, 1801, 1807, 2108, 2205
SubVersion *string `json:"SubVersion,omitempty"`
// TransactionReference TransactionReference identifies transactions between client and server.
TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}
ShipmentRequestRequest Request Container
type ShipmentRequestShipment ¶
type ShipmentRequestShipment struct {
// AlternateDeliveryAddress AlternateDeliveryAddress Container. Alternate Delivery Address (UPS Access Point Address) required if ShipmentIndicationType is 01 or 02.
AlternateDeliveryAddress *ShipmentAlternateDeliveryAddress `json:"AlternateDeliveryAddress,omitempty"`
// ConsigneeType Shipment Value for ConsigneeType. 01 = Business 02 = Consumer/Individual NA = Not Applicable.
// Required for EU Inbound Shipments.
ConsigneeType *string `json:"ConsigneeType,omitempty"`
// CostCenter Customer assigned identifier for report and billing summarization displays to the right of the Cost Center title. Required for Mail Innovations Return shipments. It is shown on the bottom of the shipping label as reference 2.
//
// Cost Center length is alphanumeric with a max length of 30 for Mail Innovations forward shipments.
//
// Cost Center length is numeric with a max length of 4 for Mail Innovations Return shipments.
CostCenter *string `json:"CostCenter,omitempty"`
// CostCenterBarcodeIndicator Presence/Absence indicator. Presence of this indicator means that the customer is requesting for the CostCenter field to be barcoded at the bottom of the label.
CostCenterBarcodeIndicator *string `json:"CostCenterBarcodeIndicator,omitempty"`
// DGSignatoryInfo DGSignatoryInfo Container DGPaperImage will be returned if DGSignatoryInfo container present
DGSignatoryInfo *ShipmentDGSignatoryInfo `json:"DGSignatoryInfo,omitempty"`
// Description The Description of Goods for the shipment. Applies to international and domestic shipments.
//
// Provide a detailed description of items being shipped for documents and non-documents.
//
// Examples: "annual reports" and "9 mm steel screws". Required if all of the listed conditions are true:
// ShipFrom and ShipTo countries or territories are not the same; The packaging type is not UPS Letter; The ShipFrom and or ShipTo countries or territories are not in the European Union or the ShipFrom and ShipTo countries or territories are both in the European Union and the shipments service type is not UPS Standard.
//
// The Description of Goods field is required for all UAE shipments, including Import, Export, and Domestic shipments. This requirement applies to both Document and Non‑Document shipments.
Description *string `json:"Description,omitempty"`
// DocumentsOnlyIndicator Indicates a shipment contains written, typed, or printed communication of no commercial value.
//
// If DocumentsOnly is not specified then it implies that the shipment contains non documents or documents of commercial value.
//
// Default is a shipment contains non- documents or documents of commercial value. This is an empty tag, any value inside is ignored.
//
// Valid only for shipments with different origin and destination countries or territories. The origin country or territory is not US, and the destination country or territory is not CA, PR or MX.
DocumentsOnlyIndicator *string `json:"DocumentsOnlyIndicator,omitempty"`
// FRSPaymentInformation Container to hold the Payment information for the Ground Freight Pricing Shipments. Required for Ground Freight Pricing Shipments only.
FRSPaymentInformation *ShipmentFRSPaymentInformation `json:"FRSPaymentInformation,omitempty"`
// FreightShipmentInformation Container to hold Freight Shipment information.
FreightShipmentInformation *ShipmentFreightShipmentInformation `json:"FreightShipmentInformation,omitempty"`
// GlobalTaxInformation Container used to define the properties required for GlobalTaxID.
GlobalTaxInformation *ShipmentGlobalTaxInformation `json:"GlobalTaxInformation,omitempty"`
// GoodsNotInFreeCirculationIndicator Goods Not In Free Circulation indicator. This is an empty tag, any value inside is ignored. This indicator is invalid for a package type of UPS Letter and DocumentsOnly.
GoodsNotInFreeCirculationIndicator *string `json:"GoodsNotInFreeCirculationIndicator,omitempty"`
// HealthcareIdentifier It is required to Identify the shipment as a Home Healthcare shipment. When present, triggers healthcare eligibility check and enables package-level healthcare processing. Valid value is 001.
HealthcareIdentifier *string `json:"HealthcareIdentifier,omitempty"`
// InvoiceLineTotal Container to hold InvoiceLineTotal Information. Required for forward shipments whose origin is the US and destination is Puerto Rico or Canada. Not available for any other shipments. FOR OTHER DESTINATIONS the InvoiceLineTotal in the International Forms Container must be used.
InvoiceLineTotal *ShipmentInvoiceLineTotal `json:"InvoiceLineTotal,omitempty"`
// IrregularIndicator Mail classification defined by the USPS. Valid values:
// 1 = Balloon
// 2 = Oversize
// 3 = Not Applicable
IrregularIndicator *string `json:"IrregularIndicator,omitempty"`
// Locale Represents 5 character ISO Locale that allows the user to request Reference Number Code on Label, Label instructions and Receipt instructions (if applicable) in desired language.
// Locale is specified by the combination of language code and country or territory code - 2 character language code and 2 character country or territory code seperated by an underscore ('_') character. If Locale element is requested along with LabelLinksIndicator, the URL to retrieve Label and Receipts (if applicable) will be returned in the requested Locale. Please note only LabelURL and ReceiptURL (if applicable) will be returned. LocalLanguageLabelURL and LocalLanguageReceiptURL will not be returned if Locale element is present in request.
// Queen's English (en_GB) is the default
Locale *string `json:"Locale,omitempty"`
// MIDualReturnShipmentIndicator MIDualReturnShipmentIndicator is an indicator to identify a Package Shipment is part of UPS Mail Innovations Dual Label Shipment.
//
// Its presence means Package Shipment is part of UPS Mail Innovations Dual Label shipment. If the indicator is present in Package Shipment request, shipment would be considered as part of a Dual Mail Innovations Returns.
//
// This indicator is not valid with UPS Mail Innovations Returns Service code.
MIDualReturnShipmentIndicator *string `json:"MIDualReturnShipmentIndicator,omitempty"`
// MIDualReturnShipmentKey MIDualReturnShipmentKey is unique key required to process Mail Innovations Dual Return Shipment.
//
// The unique identifier (key) would be returned in response of first phase of Mail Innovations Dual Return Shipments.
//
// This unique identifier (key) would be part of request for second phase of Mail Innovations Dual Return Shipments.
//
// Format:
// For Package return shipments, the package tracking number is concatenated with the system time (YYYY-MM-DDHH.MM.SS.NNN), followed by service code.
//
// For MI Return shipments, the Mail Manifest ID (MMI) is concatenated with the system time. The unique identifier (key) is required to link the package and the Mail Innovations portion of Dual Return shipment.
//
// If unique identifier (key) is empty in the request for UPS Mail Innovations Return Service, the request will be treated as the first phase of the Mail Innovations Dual Returns Request.
//
// If the MIDualReturnShipmentIndicator is present with empty or null MIDualReturnShipmentKey in UPS Package Return Shipment, the request will be treated as the first phase of Dual MI Return Label Shipment.
//
// This field would be ignored if MIDualReturnShipmentIndicator is not present in UPS Package Return Shipment request.
MIDualReturnShipmentKey *string `json:"MIDualReturnShipmentKey,omitempty"`
// MILabelCN22Indicator Indicates single label with both MI label and CN22 form. International CN22 form is required.
MILabelCN22Indicator *string `json:"MILabelCN22Indicator,omitempty"`
// MasterCartonID Master Carton ID. If Economy Service (17 or 72) : Economy Shipment will be associated with given Master Carton ID. If Non-Economy Service: Master Carton Shipment will be created for given Master Carton ID.
MasterCartonID *string `json:"MasterCartonID,omitempty"`
// MasterCartonIndicator Master Carton Indicator. Presence of the indicator means Master Carton ID will be created and returned to client.
// This is an empty tag, any value inside is ignored. MasterCartonIndicator is only valid with Econmoy Shipment (Service Code 17 or 72). Will be ignored if master carton id present.
MasterCartonIndicator *string `json:"MasterCartonIndicator,omitempty"`
// MovementReferenceNumber Movement Reference Number (MRN) information. Must contain alphanumeric characters only. Must be a length of 18 characters. The 3rd and 4th Characters must be the Shipper country or territory ISO Code.
MovementReferenceNumber *string `json:"MovementReferenceNumber,omitempty"`
// NumOfPiecesInShipment Total number of pieces in all pallets in a UPS Worldwide Express Freight Shipment. It is required for UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday Shipment. Valid values are 1 to 99999.
NumOfPiecesInShipment *string `json:"NumOfPiecesInShipment,omitempty"`
Package []ShipmentPackage `json:"Package"`
// PackageID Customer-assigned unique piece identifier that returns visibility events. Required only for Mail Innovations forward shipments. Alpha numeric values only. It is shown on the bottom of the shipping label as reference 1.
PackageID *string `json:"PackageID,omitempty"`
// PackageIDBarcodeIndicator Presence/Absence indicator. Presence of this indicator means that the customer is requesting for the PackageID field to be barcoded at the bottom of the label.
PackageIDBarcodeIndicator *string `json:"PackageIDBarcodeIndicator,omitempty"`
// PaymentInformation Payment information container for detailed shipment charges. The two shipment charges that are available for specification are Transportation charges and Duties and Taxes. It is required for non-Ground Freight Pricing shipments only.
PaymentInformation *ShipmentPaymentInformation `json:"PaymentInformation,omitempty"`
// PromotionalDiscountInformation PromotionalDiscountInformation container. This container contains discount information that the customer wants to request each time while placing a shipment.
PromotionalDiscountInformation *ShipmentPromotionalDiscountInformation `json:"PromotionalDiscountInformation,omitempty"`
// QuoteID This field is used to pass the Quote ID generated from the Global Checkout API. This is mandatory to validate your Global Checkout Guaranteed Landed Cost.
QuoteID *string `json:"QuoteID,omitempty"`
// RatingMethodRequestedIndicator Presence/Absence Indicator. Any value inside is ignored. RatingMethodRequestedIndicator is an indicator.
// If present, Billable Weight Calculation method information and Rating Method information would be returned in response.
RatingMethodRequestedIndicator *string `json:"RatingMethodRequestedIndicator,omitempty"`
ReferenceNumber *[]ShipmentReferenceNumber `json:"ReferenceNumber,omitempty"`
// ReturnService Type of Return service. When this container exists, the shipment is a return shipment.
ReturnService *ShipmentReturnService `json:"ReturnService,omitempty"`
// Service UPS service type.
Service ShipmentService `json:"Service"`
// ShipFrom Ship From Container. Required for return shipment.
//
// Required if pickup location is different from the shipper's address.
//
// Required for Trade Direct shipment.
ShipFrom *ShipmentShipFrom `json:"ShipFrom,omitempty"`
// ShipTo Ship To Container.
ShipTo ShipmentShipTo `json:"ShipTo"`
// ShipmentDate User can send up to 7 days in the future with current date as day zero. Format: YYYYMMDD
ShipmentDate *string `json:"ShipmentDate,omitempty"`
ShipmentIndicationType *[]ShipmentShipmentIndicationType `json:"ShipmentIndicationType,omitempty"`
// ShipmentRatingOptions ShipmentRatingOptions container.
ShipmentRatingOptions *ShipmentShipmentRatingOptions `json:"ShipmentRatingOptions,omitempty"`
// ShipmentRiskEnteringEU Code that identifies the risk of the Shipment entering the European Union (EU).
// Values: 01 = AT RISK of Entering the EU
// 02 = NOT AT RISK of Entering the EU
// 03 = RISK UNKNOWN of Entering the EU
ShipmentRiskEnteringEU *string `json:"ShipmentRiskEnteringEU,omitempty"`
// ShipmentServiceOptions Container for Shipment Service Options.
ShipmentServiceOptions *ShipmentShipmentServiceOptions `json:"ShipmentServiceOptions,omitempty"`
// ShipmentValueThresholdCode Shipment Value Threshold Code. 01 = Shipment value is below or equals to threshold value
// 02 = Shipment value is above threshold value. NA = Not Applicable
ShipmentValueThresholdCode *string `json:"ShipmentValueThresholdCode,omitempty"`
// Shipper Container for the Shipper's information.
Shipper ShipmentShipper `json:"Shipper"`
// ShipperType Shipment Value for ShipperType. 01 = Business 02 = Consumer/Individual NA = Not Applicable.
// Required for EU Inbound Shipments.
ShipperType *string `json:"ShipperType,omitempty"`
// SubClassification A component encoded on the barcode of the Mail Innovations label. Valid values:
// IR = Irregular
// MA = Machineable
// SubClass is only required if the customer's contract have them subclass the package not UPS.
SubClassification *string `json:"SubClassification,omitempty"`
// TaxInformationIndicator Presence/Absence Indicator. Any value inside is ignored. TaxInformationIndicator is an indicator. If present, any taxes that may be applicable to a shipment would be returned in response. If this indicator is requested with NegotiatedRatesIndicator, Tax related information, if applicable, would be returned only for Negotiated Rates and not for Published Rates. The Tax related information includes any type of Taxes, corresponding Monetary Values, Total Charges with Taxes and disclaimers (if applicable) would be returned in response.
TaxInformationIndicator *string `json:"TaxInformationIndicator,omitempty"`
// TradeDirect A UPS product that enables customers to ship directly from a manufacturer to end consumers in a different country.
TradeDirect *ShipmentTradeDirect `json:"TradeDirect,omitempty"`
// USPSEndorsement USPS Endorsement.
// Valid values:
// 1 = Return Service Requested
// 2 = Forwarding Service Requested
// 3 = Address Service Requested
// 4 = Change Service Requested and
// 5 = No Service Selected.
// Note: For International Mail Innovations shipments use No Service Selected. International Mail Innovations shipments are applicable for Priority Mail Innovations and Mail Innovations Economy Mail Innovations services only. Required for Mail Innovations forward shipments.
USPSEndorsement *string `json:"USPSEndorsement,omitempty"`
// WorldEase WorldEase is a contract service offering in the UPS shipping that decreases brokerage fees by consolidating
// loose packages into one shipment for customs clearance.
WorldEase *ShipmentWorldEase `json:"WorldEase,omitempty"`
}
ShipmentRequestShipment Shipment Container
type ShipmentResponse ¶
type ShipmentResponse struct {
// Response Response container for Shipment response.
Response ShipmentResponseResponse `json:"Response"`
// ShipmentResults Shipment Results container.
ShipmentResults ShipmentResponseShipmentResults `json:"ShipmentResults"`
}
ShipmentResponse Shipment Response.
type ShipmentResponseResponse ¶
type ShipmentResponseResponse struct {
// Alert Alert Container. There can be zero to many alert containers with code and description.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response status container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
ShipmentResponseResponse Response container for Shipment response.
type ShipmentResponseShipmentResults ¶
type ShipmentResponseShipmentResults struct {
// BarCodeImage Bar Code Image will be returned as Base 64 encoded graphic image. Bar Code Image will be returned if BarCodeImageIndicator or BarCodeAndLabelIndicator is present.
BarCodeImage *string `json:"BarCodeImage,omitempty"`
// BillOfLading Base64-encoded image data.
BillOfLading *string `json:"BillOfLading,omitempty"`
// BillableWeightCalculationMethod BillableWeightCalculationMethod is to indicate whether the billable weight calculation method utilized was - the package level or shipment level. This information will be returned only if RatingMethodRequestedIndicator is present in the request. Valid values:
// 01 = Shipment Billable Weight
// 02 = Package Billable Weight
BillableWeightCalculationMethod *string `json:"BillableWeightCalculationMethod,omitempty"`
// BillingWeight Billing Weight container.
BillingWeight ShipmentResultsBillingWeight `json:"BillingWeight"`
// CODTurnInPage The container of the COD Turn In Page.
CODTurnInPage *ShipmentResultsCODTurnInPage `json:"CODTurnInPage,omitempty"`
// ControlLogReceipt Container for the High Value reports when forward shipments have declared value between $999 and $50,000 USD. \nTwo copies of high value report needs to be pointed out.
//
// **NOTE:** For versions >= v2409, this element will always be returned as an array. For requests using versions < v2409, this element will be returned as an array if there is more than one object and a single object if there is only 1.
ControlLogReceipt *[]ShipmentResultsControlLogReceipt `json:"ControlLogReceipt,omitempty"`
// DGPaperImage Dangerous Good Paper Image in pdf format. One multipage PDF document will be returned that will contain all required Dangrous Goods shipping paper copies for all Dangerous Goods packages. Only returned when DGSignatoryInfo is present.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
DGPaperImage *[]string `json:"DGPaperImage,omitempty"`
// Disclaimer Disclaimer would be used to provide more information to shipper regarding the processed shipment. This would be used to notify shipper about possible taxes and duties that might have been added or might apply to the shipment. This field would be returned only if TaxInformationIndicator is present in a request.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
Disclaimer *[]ShipmentResultsDisclaimer `json:"Disclaimer,omitempty"`
// FRSShipmentData Ground Freight Pricing Shipment data container. Ground Freight Pricing shipment data is only guaranteed to be returned for Ground Freight Pricing shipments only.
FRSShipmentData *ShipmentResultsFRSShipmentData `json:"FRSShipmentData,omitempty"`
// Form Container tag for the International forms image. Form is returned for following shipments -
// Forward shipments,
// Shipments with PRL ReturnService,
// Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707.
Form *ShipmentResultsForm `json:"Form,omitempty"`
// GCCN Global Consolidation Carton Number
GCCN *string `json:"GCCN,omitempty"`
// HighValueReport Container for the High Value Report generated for ImportControl or Return shipments with high package declared value.
HighValueReport *ShipmentResultsHighValueReport `json:"HighValueReport,omitempty"`
// LabelURL URL will point to a page wherein label, receipt and other documents, if applicable, such as HighValueReport, CustomsInvoice and ImportControl instructions can be requested. LabelURL is returned only if the LabelLinksIndicator is requested for following shipments:
// Print/Electronic ImportControl shipment
// Print/Electronic Return shipment.
// Forward shipment except for Mail Innovations Forward.
LabelURL *string `json:"LabelURL,omitempty"`
// LocalLanguageLabelURL URL will point to a page wherein label, receipt and other documents, if applicable, such as HighValueReport, CustomsInvoice and ImportControl instructions can be requested. LocalLanguageLabelURL is returned only if the LabelLinksIndicator is requested for following shipments:
// Print/Electronic ImportControl shipment
// Print/Electronic Return shipment.
// Forward shipment except for Mail Innovations Forward. Not returned if LabelLinksIndicator is requested with Locale element.
LocalLanguageLabelURL *string `json:"LocalLanguageLabelURL,omitempty"`
// LocalLanguageReceiptURL URL will point to a page wherein label, receipt and other documents, if applicable, such as HighValueReport, CustomsInvoice and ImportControl instructions can be requested. LocalLanguageReceiptURL is returned only if the LabelLinksIndicator is requested for following shipments:
// Print/Electronic ImportControl shipment
// Print/Electronic Return shipment. Not returned if LabelLinksIndicator is requested with Locale element.
LocalLanguageReceiptURL *string `json:"LocalLanguageReceiptURL,omitempty"`
// MIDualReturnShipmentKey MIDualReturnShipmentKey is unique key required to process Mail Innovations Dual Return Shipment.
//
// The unique identifier (key) would be returned in response of first phase of Mail Innovations Dual Return Shipments.
//
// This unique identifier (key) would be part of request for second phase of Mail Innovations Dual Return Shipments and would be played back in response for second phase of Mail Innovations Dual Return Shipment. If the shipment is a Package return shipment, the package tracking number will be concatenated with the system time (in the format YYYY-MM-DDHH.MM.SS.NNN) and followed by service code.
//
// If the shipment is an MI Returns shipment, the Mail Manifest ID (MMI) will be concatenated with the system time.
MIDualReturnShipmentKey *string `json:"MIDualReturnShipmentKey,omitempty"`
// MasterCartonID Master Carton ID. MasterCartonID will be return if MasterCartonIndicator is present in request.
MasterCartonID *string `json:"MasterCartonID,omitempty"`
// Message A message indicating the status or result of the operation.
Message *string `json:"Message,omitempty"`
// NegotiatedRateCharges Negotiated Rates Charge Container. For tiered rates and promotional discounts, if a particular shipment based on zone, origin, destination or even shipment size doesn't qualify for the existing discount then no negotiated rates container will be returned. Published rates will be the applicable rate.
NegotiatedRateCharges *ShipmentResultsNegotiatedRateCharges `json:"NegotiatedRateCharges,omitempty"`
// PackageResults Returned Package Information.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
PackageResults *[]ShipmentResultsPackageResults `json:"PackageResults,omitempty"`
PalletLabel *ShipmentResultsPalletLabel `json:"PalletLabel,omitempty"`
// RatingMethod RatingMethod is to indicate whether the Shipment was rated as shipment level or package level. This information will be returned only if RatingMethodRequestedIndicator is present in the request. Valid values:
// 01 = Shipment level
// 02 = Package level
RatingMethod *string `json:"RatingMethod,omitempty"`
// ReceiptURL URL will point to a page wherein label, receipt and other documents, if applicable, such as HighValueReport, CustomsInvoice and ImportControl instructions can be requested. ReceiptURL is returned only if the LabelLinksIndicator is requested for following shipments:
// Print/Electronic ImportControl shipment
// Print/Electronic Return shipment.
ReceiptURL *string `json:"ReceiptURL,omitempty"`
// RoarRatedIndicator Informational only
RoarRatedIndicator *string `json:"RoarRatedIndicator,omitempty"`
// ShipmentCharges Shipment charges Container. Shipment charges info.
ShipmentCharges *ShipmentResultsShipmentCharges `json:"ShipmentCharges,omitempty"`
// ShipmentIdentificationNumber Returned UPS shipment ID number.1Z Number of the first package in the shipment.
ShipmentIdentificationNumber *string `json:"ShipmentIdentificationNumber,omitempty"`
// SubProNumber The sub PRO number associated with the LTL shipment.
SubProNumber *string `json:"SubProNumber,omitempty"`
// USI The unique shipment identifier (USI) is used to create Master, LTL and Child shipments. Used for Freight shipments.
USI *string `json:"USI,omitempty"`
}
ShipmentResponseShipmentResults Shipment Results container.
type ShipmentResultsBillingWeight ¶
type ShipmentResultsBillingWeight struct {
// UnitOfMeasurement Billing weight unit of measurement code. The unit of measurement used in Shipment request is returned.
UnitOfMeasurement BillingWeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Billing weight. Higher of the actual shipment weight versus the shipment dimensional weight. When using a negotiated divisor different from the published UPS divisor (139 for inches and 5,000 for cm), the weight returned is based on the published divisor. Rates, however, are based on the negotiated divisor.
Weight string `json:"Weight"`
}
ShipmentResultsBillingWeight Billing Weight container.
type ShipmentResultsCODTurnInPage ¶
type ShipmentResultsCODTurnInPage struct {
// Image The container of the image for COD Turn In Page.
Image CODTurnInPageImage `json:"Image"`
}
ShipmentResultsCODTurnInPage The container of the COD Turn In Page.
type ShipmentResultsControlLogReceipt ¶
type ShipmentResultsControlLogReceipt struct {
// GraphicImage Base 64 encoded html, EPL2, ZPL or SPL image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container for the High Value report format required if parent exist.
ImageFormat ControlLogReceiptImageFormat `json:"ImageFormat"`
}
ShipmentResultsControlLogReceipt defines model for ShipmentResults_ControlLogReceipt.
type ShipmentResultsDisclaimer ¶
type ShipmentResultsDisclaimer struct {
// Code Code representing type of Disclaimer. Refer to Disclaimer Codes and Messages in the Appendix for various disclaimers that would be possible for a given shipment.
Code string `json:"Code"`
// Description Disclaimer description. This field would be returned only if TaxInformationIndicator is present in a request.
//
// Refer to Disclaimer Codes and Messages in the Appendix for various disclaimers that would be possible for a given shipment.
Description *string `json:"Description,omitempty"`
}
ShipmentResultsDisclaimer defines model for ShipmentResults_Disclaimer.
type ShipmentResultsFRSShipmentData ¶
type ShipmentResultsFRSShipmentData struct {
// FreightDensityRate FreightDensityRate container for Density based rating.
FreightDensityRate *FRSShipmentDataFreightDensityRate `json:"FreightDensityRate,omitempty"`
// HandlingUnits Handling Unit for Density based rating container.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
HandlingUnits *[]FRSShipmentDataHandlingUnits `json:"HandlingUnits,omitempty"`
// TransportationCharges Transportation charges container. Ground Freight Pricing transportation charges. These are only returned for Ground Freight Pricing enabled shipper account number when the user includes the FRSShipmentIndicator in the request.
TransportationCharges FRSShipmentDataTransportationCharges `json:"TransportationCharges"`
}
ShipmentResultsFRSShipmentData Ground Freight Pricing Shipment data container. Ground Freight Pricing shipment data is only guaranteed to be returned for Ground Freight Pricing shipments only.
type ShipmentResultsForm ¶
type ShipmentResultsForm struct {
// Code Code that indicates the type of form.
//
// Valid values: 01 - All Requested International Forms.
Code *string `json:"Code,omitempty"`
// Description Description that indicates the type of form. Possible Values. All Requested International Forms.
Description *string `json:"Description,omitempty"`
// FormGroupId Unique Id for later retrieval of saved version of the completed international forms. Always returned when code = 01. 01 represents international forms.
FormGroupId *string `json:"FormGroupId,omitempty"`
// FormGroupIdName Contains description text which identifies the group of International forms. This element is part of both request and response. This element does not appear on the forms.
FormGroupIdName *string `json:"FormGroupIdName,omitempty"`
// Image Container tag for the International forms image.
Image *ShipmentResultsFormImage `json:"Image,omitempty"`
}
ShipmentResultsForm Container tag for the International forms image. Form is returned for following shipments - Forward shipments, Shipments with PRL ReturnService, Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707.
type ShipmentResultsFormImage ¶
type ShipmentResultsFormImage struct {
// GraphicImage Base 64 encoded International forms image.
GraphicImage string `json:"GraphicImage"`
// ImageFormat Container tag for the International forms image format information.
ImageFormat ShipmentResultsImageImageFormat `json:"ImageFormat"`
}
ShipmentResultsFormImage Container tag for the International forms image.
type ShipmentResultsHighValueReport ¶
type ShipmentResultsHighValueReport struct {
// Image Container tag for the High Value Report image.
Image HighValueReportImage `json:"Image"`
}
ShipmentResultsHighValueReport Container for the High Value Report generated for ImportControl or Return shipments with high package declared value.
type ShipmentResultsImageImageFormat ¶
type ShipmentResultsImageImageFormat struct {
// Code Code representing the format in which the forms are generated. Valid values:
// - PDF = pdf
Code string `json:"Code"`
// Description Description of the form image format code.
Description *string `json:"Description,omitempty"`
}
ShipmentResultsImageImageFormat Container tag for the International forms image format information.
type ShipmentResultsNegotiatedRateCharges ¶
type ShipmentResultsNegotiatedRateCharges struct {
// ItemizedCharges Itemized Charges are returned only when the Subversion element is present and greater than or equal to 1601.
//
// Negotiated itemized charges are only returned for certain contract-only shipments as well as Worldwide Express Freight, Ground Freight Pricing, and Hazmat movements.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
ItemizedCharges *[]NegotiatedRateChargesItemizedCharges `json:"ItemizedCharges,omitempty"`
RateModifier *[]NegotiatedRateChargesRateModifier `json:"RateModifier,omitempty"`
// TaxCharges TaxCharges container are returned only when TaxInformationIndicator is present in request. TaxCharges container contains Tax information for a given shipment.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
TaxCharges *[]NegotiatedRateChargesTaxCharges `json:"TaxCharges,omitempty"`
// TotalCharge Total charges container. Account Based Rates info. Total charges are only returned for ABR eligible shipper account/UserId combinations when the user includes the NegotiatedRatesIndicator in the request.
TotalCharge *NegotiatedRateChargesTotalCharge `json:"TotalCharge,omitempty"`
// TotalChargesWithTaxes TotalChargesWithTaxes container would be returned only if TaxInformationIndicator is present in request. TotalChargesWithTaxes contains total charges including total taxes applied to a shipment.
TotalChargesWithTaxes *NegotiatedRateChargesTotalChargesWithTaxes `json:"TotalChargesWithTaxes,omitempty"`
}
ShipmentResultsNegotiatedRateCharges Negotiated Rates Charge Container. For tiered rates and promotional discounts, if a particular shipment based on zone, origin, destination or even shipment size doesn't qualify for the existing discount then no negotiated rates container will be returned. Published rates will be the applicable rate.
type ShipmentResultsPackageResults ¶
type ShipmentResultsPackageResults struct {
// Accessorial The container for Accessorial indicators. This information would be returned only for UPS Worldwide Express Freight and UPS Worldwide Express Freight Mid-day service request with Dry Ice or Oversize Pallet and SubVersion greater than or equal to 1707. This is valid only for UPS Worldwide Express Freight and UPS Worldwide Express Freight Mid-day service.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
Accessorial *[]PackageResultsAccessorial `json:"Accessorial,omitempty"`
// BaseServiceCharge Base Service Charge container.
// Transportation charge = BaseServiceCharge + Fuel charge Returned only if Subversion >=1701.
BaseServiceCharge *PackageResultsBaseServiceCharge `json:"BaseServiceCharge,omitempty"`
// CN22Number USPS defined CN22 ID number format varies based on destination country or territory.
// Not applicable as of Jan 2015.
// Mail Innovations shipments US to VI, PR, and GU are not considered international.
CN22Number *string `json:"CN22Number,omitempty"`
// Form Container tag for the International forms image. Currently this container would be returned for UPS Premium Care shipments. Form is returned for following shipments -
// Forward shipments,
// Shipments with PRL ReturnService,
// Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707. CN22 data for Worlwide economy services will be returned within the PDF417 barcode of the label.
Form *PackageResultsForm `json:"Form,omitempty"`
// ItemizedCharges Itemized Charges are returned only when the subversion element is present and greater than or equal to 1607. Package level itemized charges are only returned for US domestic movements.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
ItemizedCharges *[]PackageResultsItemizedCharges `json:"ItemizedCharges,omitempty"`
// NegotiatedCharges Negotiated Rates Charge Container. These charges are returned when:
// 1) Subversion is greater than or equal to 1607
// 2) If negotiated rates were requested for GFP shipments and account number is eligible to receive negotiated rates.
NegotiatedCharges *PackageResultsNegotiatedCharges `json:"NegotiatedCharges,omitempty"`
// RateModifier Returned Package Information.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
RateModifier *[]PackageResultsRateModifier `json:"RateModifier,omitempty"`
// ServiceOptionsCharges Shipment charges info. Shipment charges are only guaranteed to be returned for shipments whose origin country or territory is US or Puerto Rico.
ServiceOptionsCharges *PackageResultsServiceOptionsCharges `json:"ServiceOptionsCharges,omitempty"`
// ShippingLabel The container for UPS shipping label. Returned for following shipments -
// Forward shipments,
// Shipments with PRL returns service,
// Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707. Shipping label wont be returned if BarCodeImageIndicator is present.
ShippingLabel *PackageResultsShippingLabel `json:"ShippingLabel,omitempty"`
// ShippingReceipt Supported for following shipments -
// PRL shipments,
// Electronic Return Label or Electronic Import Control Label shipments with SubVersion greater than or equal to 1707.
ShippingReceipt *PackageResultsShippingReceipt `json:"ShippingReceipt,omitempty"`
// SimpleRate SimpleRate will be returned if Simple Rate present in request
SimpleRate *PackageResultsSimpleRate `json:"SimpleRate,omitempty"`
// TrackingNumber Package 1Z number.
// For Mail Innovations shipments, please use the USPSPICNumber when tracking packages (a non-1Z number Mail Manifest Id is returned).
TrackingNumber string `json:"TrackingNumber"`
// USPSPICNumber USPSPICNumber is USPS Package Identification; it should be used for tracking Mail Innovations shipments.
USPSPICNumber *string `json:"USPSPICNumber,omitempty"`
}
ShipmentResultsPackageResults defines model for ShipmentResults_PackageResults.
type ShipmentResultsPalletLabel ¶
type ShipmentResultsPalletLabel struct {
// PalletLabel Base64-encoded graphic image of Pallet.
PalletLabel *string `json:"PalletLabel,omitempty"`
}
ShipmentResultsPalletLabel defines model for ShipmentResults_PalletLabel.
type ShipmentResultsShipmentCharges ¶
type ShipmentResultsShipmentCharges struct {
// BaseServiceCharge Base Service Charge container.
// Transportation charge = BaseServiceCharge + Fuel charge Returned only if Subversion >=1701.
BaseServiceCharge *ShipmentChargesBaseServiceCharge `json:"BaseServiceCharge,omitempty"`
// ItemizedCharges Itemized Charges are returned only when the Subversion element is present and greater than or equal to 1601.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
ItemizedCharges *[]ShipmentChargesItemizedCharges `json:"ItemizedCharges,omitempty"`
// RateChart Rate Type with which Shipment is rated. Possible RateChart values for different regions will be:
// US 48 origin:
// - 1 – Daily Rates
// - 3 – Standard List Rates
// - 4 – Retail Rates.
//
// Alaska/Hawaii origin:
// - 1 – Daily Rates
// - 3 – Standard List Rates
// - 4 – Retail Rates.
//
// All Other origins:
// - 1 – Rates
// - 5 - Regional Rates
// - 6 - General List Rates.
//
// 3 and 4 do not apply.
RateChart *string `json:"RateChart,omitempty"`
// ServiceOptionsCharges Service Option Charges container.
ServiceOptionsCharges ShipmentChargesServiceOptionsCharges `json:"ServiceOptionsCharges"`
// TaxCharges TaxCharges container are returned only when TaxInformationIndicator is present in request and when Negotiated Rates are not applicable. TaxCharges container contains Tax information for a given shipment.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
TaxCharges *[]ShipmentChargesTaxCharges `json:"TaxCharges,omitempty"`
// TotalCharges Total charges container.
TotalCharges ShipmentChargesTotalCharges `json:"TotalCharges"`
// TotalChargesWithTaxes TotalChargesWithTaxes container would be returned only if TaxInformationIndicator is present in request and when Negotiated Rates are not applicable. TotalChargesWithTaxes contains total charges including total taxes applied to a shipment.
TotalChargesWithTaxes *ShipmentChargesTotalChargesWithTaxes `json:"TotalChargesWithTaxes,omitempty"`
// TransportationCharges Transportation Charges container.
TransportationCharges ShipmentChargesTransportationCharges `json:"TransportationCharges"`
}
ShipmentResultsShipmentCharges Shipment charges Container. Shipment charges info.
type ShipmentReturnService ¶
type ShipmentReturnService struct {
// Code Return Service types:
// - 2 = UPS Print and Mail (PNM)
// - 3 = UPS Return Service 1-Attempt (RS1)
// - 5 = UPS Return Service 3-Attempt (RS3)
// - 8 = UPS Electronic Return Label (ERL)
// - 9 = UPS Print Return Label (PRL)
// - 10 = UPS Exchange Print Return Label
// - 11 = UPS Pack & Collect Service 1-Attempt Box 1
// - 12 = UPS Pack & Collect Service 1-Attempt Box 2
// - 13 = UPS Pack & Collect Service 1-Attempt Box 3
// - 14 = UPS Pack & Collect Service 1-Attempt Box 4
// - 15 = UPS Pack & Collect Service 1-Attempt Box 5
// - 16 = UPS Pack & Collect Service 3-Attempt Box 1
// - 17 = UPS Pack & Collect Service 3-Attempt Box 2
// - 18 = UPS Pack & Collect Service 3-Attempt Box 3
// - 19 = UPS Pack & Collect Service 3-Attempt Box 4
// - 20 = UPS Pack & Collect Service 3-Attempt Box 5
Code string `json:"Code"`
// Description Return Service description.
Description *string `json:"Description,omitempty"`
}
ShipmentReturnService Type of Return service. When this container exists, the shipment is a return shipment.
type ShipmentService ¶
type ShipmentService struct {
// Code Valid values:
// - 01 = Next Day Air
// - 02 = 2nd Day Air
// - 03 = Ground
// - 07 = Express
// - 08 = Expedited
// - 11 = UPS Standard
// - 12 = 3 Day Select
// - 13 = Next Day Air Saver
// - 14 = UPS Next Day Air® Early
// - 17 = UPS Worldwide Economy DDU
// - 54 = Express Plus
// - 59 = 2nd Day Air A.M.
// - 65 = UPS Saver
// - M2 = First Class Mail
// - M3 = Priority Mail
// - M4 = Expedited MaiI Innovations
// - M5 = Priority Mail Innovations
// - M6 = Economy Mail Innovations
// - M7 = MaiI Innovations (MI) Returns
// - 70 = UPS Access Point™ Economy
// - 71 = UPS Worldwide Express Freight Midday
// - 72 = UPS Worldwide Economy DDP
// - 74 = UPS Express®12:00
// - 75 = UPS Heavy Goods
// - 82 = UPS Today Standard
// - 83 = UPS Today Dedicated Courier
// - 84 = UPS Today Intercity
// - 85 = UPS Today Express
// - 86 = UPS Today Express Saver
// - 96 = UPS Worldwide Express Freight.
// - C6 = Roadie XD AM (Morning delivery)
// - C7 = Roadie XD PM (Afternoon delivery)
// - C8 = Roadie XD (Anytime delivery)
// - T0 = Master
// - T1 = LTL
//
// Note: Only service code 03 is used for Ground Freight Pricing shipments The following Services are not available to return shipment: 13, 59, 82, 83, 84, 85, 86, C6, C7, C8
Code string `json:"Code"`
// Description Description of the service code. Examples are Next Day Air, Worldwide Express, and Ground.
Description *string `json:"Description,omitempty"`
}
ShipmentService UPS service type.
type ShipmentServiceOptionsAccessPointCOD ¶
type ShipmentServiceOptionsAccessPointCOD struct {
// CurrencyCode Access Point COD Currency Code.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Access Point COD Monetary Value.
MonetaryValue string `json:"MonetaryValue"`
}
ShipmentServiceOptionsAccessPointCOD Access Point COD indicates COD is requested for a shipment. Valid only for "01 - Hold For Pickup At UPS Access Point" Shipment Indication type. Shipment Access Point COD is valid only for countries or territories within E.U. Not valid with (Shipment) COD. Not available to shipment with return service.
type ShipmentServiceOptionsCOD ¶
type ShipmentServiceOptionsCOD struct {
// CODAmount COD Amount container.
CODAmount CODCODAmount `json:"CODAmount"`
// CODFundsCode For valid values refer to: Rating and Shipping COD Supported Countries or Territories in the Appendix.
CODFundsCode string `json:"CODFundsCode"`
}
ShipmentServiceOptionsCOD COD container Indicates COD is requested. Shipment COD is only available for EU origin countries or territories and for shippers account type Daily Pickup and Drop Shipping. Not available to shipment with return service.
type ShipmentServiceOptionsDeliveryConfirmation ¶
type ShipmentServiceOptionsDeliveryConfirmation struct {
// DCISNumber DCIS Number.
DCISNumber *string `json:"DCISNumber,omitempty"`
// DCISType Type of delivery confirmation. Valid values:
// 1 - Delivery Confirmation Signature Required
// 2 - Delivery Confirmation Adult Signature Required. Valid for forward shipments only.
DCISType string `json:"DCISType"`
}
ShipmentServiceOptionsDeliveryConfirmation Delivery Confirmation container. Valid for forward shipments only.
Refer to Delivery Confirmation Origin-Destination Pairs in the Appendix for a list of valid values.
type ShipmentServiceOptionsInternationalForms ¶
type ShipmentServiceOptionsInternationalForms struct {
// AdditionalDocumentIndicator Presence of the indicator means user will supply additional document, such as EEI, USMCA or CO. This indicator should be set when the shipper intends to utilize UPS paperless invoice functionality AND the shipper has SELF-PREPARED other International Forms (EEI, CO, USMCA) to accompany the shipment.
// It is evaluated only when:
// 1. Account is paperless enabled.
// 2. Movement requires an invoice.
// 3. Destination country or territory accepts paperless invoice.
// 4. Invoice data is supplied by the client and the data passes validation.
AdditionalDocumentIndicator *string `json:"AdditionalDocumentIndicator,omitempty"`
// BlanketPeriod This field should be entered if the USMCA Certificate covers multiple shipments of identical goods as described in the Description of Goods field that are imported into a USMCA country or territory for a specified period of up to one year (the blanket period). The importation of a good for which preferential treatment is claimed based on this certificate must occur between these dates. Applies to USMCA form only. Required for USMCA. This is not valid for a paperless shipment.
BlanketPeriod *InternationalFormsBlanketPeriod `json:"BlanketPeriod,omitempty"`
// CN22Form Container for the CN22 form. Required if the customer wants to use the UPS generated CN22.
CN22Form *InternationalFormsCN22Form `json:"CN22Form,omitempty"`
// CarrierID The four-character Standard Carrier Alpha Code (SCAC) for vessel, rail, and truck shipments. For air shipment, enter the two or three character International Air Transport Association (IATA) code. Applies to EEI forms only. No Validations.
CarrierID *string `json:"CarrierID,omitempty"`
// Comments Any extra information about the current shipment. Applies to Invoice and Partial Invoice forms only.
Comments *string `json:"Comments,omitempty"`
// Contacts Holds the contact information of various parties. Applicable for EEI and USMCA only. Required for USMCA and EEI. Ultimate consignee contact information is required for EEI. Producer contact information is required for USMCA
Contacts *InternationalFormsContacts `json:"Contacts,omitempty"`
// ContainerizedIndicator If present indicates that the goods are containerized. This applies to vessel shipments only. Applies to EEI forms only.
ContainerizedIndicator *string `json:"ContainerizedIndicator,omitempty"`
// CurrencyCode Currency code for all the monetary values of the Invoice form. Applies to Invoice and Partial Invoice forms only.
CurrencyCode *string `json:"CurrencyCode,omitempty"`
// DeclarationStatement This is the legal explanation, used by Customs, for the delivering of this shipment. It must be identical to the set of declarations actually used by Customs. Examples of declarations that might be entered in this field are: I hereby certify that the goods covered by this shipment qualify as originating goods for purposes of preferential tariff treatment under the USMCA. I hereby certify that the information on this invoice is true and correct and the contents and value of this shipment is as stated above. EEA statement: The exporter of the products covered by this document declares that except where otherwise clearly indicated these products are of EEA preferential origin. Applies to Invoice and Partial Invoice forms only. On the invoice for return shipment, the verbiage is as follows (user input is ignored): The exporter of the products covered by this document declares that except where otherwise clearly indicated these products are of EEA preferential origin
DeclarationStatement *string `json:"DeclarationStatement,omitempty"`
// Discount Container tag that holds the discount. Applies to Invoice and Partial Invoice forms only.
Discount *InternationalFormsDiscount `json:"Discount,omitempty"`
// EEIFilingOption EEI Filing option. Applicable for EEI form and is required.
EEIFilingOption *InternationalFormsEEIFilingOption `json:"EEIFilingOption,omitempty"`
// EntryNumber The Import Entry Number when the export transaction is used as proof of export for import transactions (examples: In Bond, Temporary Import Bond or Drawbacks). Applies to EEI forms only. Conditionally Required for EEI forms when In bond code value is other than 70 (Not In Bond)
EntryNumber *string `json:"EntryNumber,omitempty"`
// ExportDate The date the goods will be exiting the country or territory. Applies to CO and EEI forms only. Required for CO and EEI forms. Format is yyyyMMdd.
ExportDate *string `json:"ExportDate,omitempty"`
// ExportingCarrier The name of the carrier that is exporting the shipment. The vessels flag number should also be entered, if the carrier is a vessel.
//
// If value is empty, it will be set to default value as 'UPS' for EEI forms. Applies to CO and EEI forms only. Required for CO forms.
ExportingCarrier *string `json:"ExportingCarrier,omitempty"`
// FormGroupIdName Contains description text which identifies the group of International forms. This element does not appear on the forms.
FormGroupIdName *string `json:"FormGroupIdName,omitempty"`
// FormType Indicates the name of the International Form requested.
//
// Valid values:
// - 01 - Invoice
// - 03 - CO
// - 04 - USMCA
// - 05 - Partial Invoice
// - 06 - Packinglist
// - 07 - Customer Generated Forms
// - 08 – Air Freight Packing List
// - 09 - CN22 Form
// - 10 – UPS Premium Care Form
// - 11 - EEI
//
// For shipment with return service, 05 or 10 are the only valid values.
//
// Note: 01 and 05 are mutually exclusive and 05 are only valid for return shipments only.
FormType []string `json:"FormType"`
// FreightCharges Container tag that holds the Freight Charges. Applies to Invoice and Partial Invoice forms only.
FreightCharges *InternationalFormsFreightCharges `json:"FreightCharges,omitempty"`
// HazardousMaterialsIndicator This is an empty tag. Presence of the indicator for EEI form means shipment contains hazardous material.
HazardousMaterialsIndicator *string `json:"HazardousMaterialsIndicator,omitempty"`
// InBondCode The two-character In Bond Code. Applies to EEI forms only. Required for EEI forms. Valid values for EEI are: 70: Not in bond; 67: IE from a FTZ; 68: T&E from a FTZ.
InBondCode *string `json:"InBondCode,omitempty"`
// InsuranceCharges Container tag that holds the Insurance Charges. Applies to Invoice and Partial Invoice forms only.
InsuranceCharges *InternationalFormsInsuranceCharges `json:"InsuranceCharges,omitempty"`
// InvoiceDate Date when the Invoice is created. Ideally this is the same as the ship date. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and optional for Partial Invoice. Required for Invoice form for forward shipments. For shipment with return service, the user input will be ignored, and the field will be blank on the invoice. Format is yyyyMMdd.
InvoiceDate *string `json:"InvoiceDate,omitempty"`
// InvoiceNumber Commercial Invoice number assigned by the exporter. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and optional for Partial Invoice.
InvoiceNumber *string `json:"InvoiceNumber,omitempty"`
// LoadingPier Pier where goods are loaded. For vessel shipments only. Applies to EEI forms only. No validation is performed.
LoadingPier *string `json:"LoadingPier,omitempty"`
// ModeOfTransport Mode of transport by which the goods are exported. Valid values: Air, AirContainerized, Auto, FixedTransportInstallations, Mail, PassengerHandcarried, Pedestrian, Rail, Rail, Containerized, RoadOther, SeaBarge, SeaContainerized, SeaNoncontainerized, Truck, TruckContainerized. Applies to EEI forms only. Required for EEI. Only allowed values can be entered. Only 10 Characters can appear on the form. Anything greater than 10 characters will be truncated on the form.
ModeOfTransport *string `json:"ModeOfTransport,omitempty"`
// OtherCharges Container tag that holds the information of amount that covers additional charges not already listed on the invoice. Applies to Invoice and Partial Invoice forms only.
OtherCharges *InternationalFormsOtherCharges `json:"OtherCharges,omitempty"`
// OverridePaperlessIndicator The application will automatically provide a copy of the invoice or USMCA with each response regardless of whether the user has enabled Paperless account. The user now has the option to print or ignore the copy provided.
OverridePaperlessIndicator *string `json:"OverridePaperlessIndicator,omitempty"`
// PartiesToTransaction Information about parties to transaction. Use Related, if the parties to the transaction are related. A related party is an export from a U.S. businessperson or business to a foreign business or from a U.S. business to a foreign person or business where the person has at least 10 percent of the voting shares of the business during the fiscal year. If unincorporated, then an equivalent interest in the business. Applies to EEI forms only.
//
// Valid values:
// - R - Related
// - N - Non-related.
//
// Parties to transaction is required if EEIFilingOption Code is 3 and if valid UPSFiled POA Code present in request.
//
// Default will be set to N - Non-related if invalid code present with length of one.
PartiesToTransaction *string `json:"PartiesToTransaction,omitempty"`
// PointOfOrigin Contains one of the following: The two-digit U.S. Postal Service abbreviation for the state from which the goods were shipped to the port of export. The state that is the source for the good with the highest value. The state of consolidation. The Foreign Trade Zone number of the zone from where the exports are leaving. If the goods were shipped from Puerto Rico, enter PR. Applies to EEI forms only. Required for EEI.
PointOfOrigin *string `json:"PointOfOrigin,omitempty"`
// PointOfOriginType Valid values are : S (for state postal code abbreviation) , F : FTZ Identifier Applies EEI forms only. Required for EEI form.
PointOfOriginType *string `json:"PointOfOriginType,omitempty"`
// PortOfExport Should be one of the following-Overland: The U.S. Customs port where the carrier crosses the U.S. border, Vessel and Air: The U.S. Customs port where the goods are loaded on the carrier to be exported from the U.S., Postal: The U.S. Postal Office from where the goods are mailed. Applies to EEI forms only. No validation is performed.
PortOfExport *string `json:"PortOfExport,omitempty"`
// PortOfUnloading The country or territory and the port where the goods will be unloaded from the exporting carrier. For vessel and air shipments only. Applies to EEI forms only. No validation is performed.
PortOfUnloading *string `json:"PortOfUnloading,omitempty"`
Product []InternationalFormsProduct `json:"Product"`
// PurchaseOrderNumber The customer's order reference number. Applies to Invoice and Partial Invoice forms only.
PurchaseOrderNumber *string `json:"PurchaseOrderNumber,omitempty"`
// ReasonForExport A reason to export the current international shipment.
// Valid values: SALE, GIFT, SAMPLE, RETURN, REPAIR, INTERCOMPANYDATA, Any other reason. Applies to Invoice and Partial Invoice forms only. Required for Invoice forms and Optional for Partial Invoice. Required for EU Inbound shipments.
ReasonForExport *string `json:"ReasonForExport,omitempty"`
// RoutedExportTransactionIndicator If Present, indicates that it is a routed export transaction. A routed export transaction is one, where the foreign principal party in interest authorizes a U.S. forwarding (or other) agent to export the merchandise outside the U.S. Applies to EEI forms only.
RoutedExportTransactionIndicator *string `json:"RoutedExportTransactionIndicator,omitempty"`
// ShipperMemo Text for the shipper to add additional information. Forward shipment only.
ShipperMemo *string `json:"ShipperMemo,omitempty"`
// TermsOfShipment Indicates the rights to the seller from the buyer. Also, it refers to Terms of Sale. Applies to Invoice and Partial Invoice forms only.
//
// Valid values:
// CFR: Cost and Freight
// CIF: Cost Insurance and Freight
// CIP: Carriage and Insurance Paid
// CPT: Carriage Paid To
// DAF: Delivered at Frontier
// DDP: Delivery Duty Paid
// DAP: Delivery at Place
// DEQ: Delivered Ex Quay
// DES: Delivered Ex Ship
// EXW: Ex Works
// FAS: Free Alongside Ship
// FCA: Free Carrier
// FOB: Free On Board
TermsOfShipment *string `json:"TermsOfShipment,omitempty"`
// UPSPremiumCareForm UPS Premium Care Form is required if UPS Premium Care Indicator is present on a package. Valid only for Canada to Canada movements.
UPSPremiumCareForm *InternationalFormsUPSPremiumCareForm `json:"UPSPremiumCareForm,omitempty"`
// UserCreatedForm Data container for DocumentID(s). Required if Form Type is 07.
UserCreatedForm *InternationalFormsUserCreatedForm `json:"UserCreatedForm,omitempty"`
}
ShipmentServiceOptionsInternationalForms International Forms information. This is applicable to Trade Direct SMALLPACKAGE International Child movements and not applicable to Trade Direct Master or Trade Direct LTL Child movements.
type ShipmentServiceOptionsLabelDelivery ¶
type ShipmentServiceOptionsLabelDelivery struct {
// EMail Container for the email message.
EMail *LabelDeliveryEMail `json:"EMail,omitempty"`
// LabelLinksIndicator Indicates the Label and Receipt URLs are to be returned in the XML response.
LabelLinksIndicator *string `json:"LabelLinksIndicator,omitempty"`
}
ShipmentServiceOptionsLabelDelivery Container for the Label Delivery accessorial. Note - LabelDelivery is not applicable for GFP and Mail Innovations Forward shipment. Required for shipments with either Electronic Return Label Return Service or ImportControl Electronic LabelMethod type. Optional for shipments with Print Return Label Return Service or ImportControl Print LabelMethod type or Forward movement. If this container is present for shipments with either Electronic Return Label Return Service or ImportControl Electronic LabelMethod type, either of the LabelLinksIndicator or EMail container should be provided. For shipments with Print Return Label Return Service or ImportControl Print LabelMethod type or Forward movement, only LabelLinksIndicator is valid option for LabelDelivery container.
type ShipmentServiceOptionsLabelMethod ¶
type ShipmentServiceOptionsLabelMethod struct {
// Code Valid LabelMethod types are:
// 01 = ImportControl Print and Mail
// 02 = ImportControl One-Attempt
// 03 = ImportControl Three-Attempt
// 04 = ImportControl Electronic Label
// 05 = ImportControl Print Label
Code string `json:"Code"`
// Description LabelMethod description.
Description *string `json:"Description,omitempty"`
}
ShipmentServiceOptionsLabelMethod Type of ImportControl Label. This container is applicable only for ImportControl shipments. This container is applicable only for ImportControl shipments.
type ShipmentServiceOptionsNotification ¶
type ShipmentServiceOptionsNotification struct {
// EMail Container for Email Information.
EMail NotificationEMail `json:"EMail"`
// Locale This container is used for providing Language and dialect details for Alternate Delivery Location notifications and UAP Shipper notifications. Valid only for Alternate Delivery Location notification and UAP Shipper notification.
Locale *NotificationLocale `json:"Locale,omitempty"`
// NotificationCode The type of notification requested.
//
// Note:
// - QVN Exception notification and return notification are not applicable to GFP.
// - QV In-transit and Return Notifications are only valid for ImportControl and Return shipment.
// - QV In-transit Notification is allowed for return shipments only.
// - QV Ship Notification is allowed for forward moving shipments only.
//
// Valid values:
// - 5 - QV In-transit Notification
// - 6 - QV Ship Notification
// - 7 - QV Exception Notification
// - 8 - QV Delivery Notification
// - 2 - Return Notification or Label Creation Notification
// - 012 - Alternate Delivery Location Notification
// - 013 - UAP Shipper Notification.
NotificationCode string `json:"NotificationCode"`
// TextMessage TextMessage container is used for specifying phone number for receiving text Alternate Delivery Location notification and UAP Shipper notification. Valid only for Alternate Delivery Location notification and UAP Shipper notification. VoiceMessage phone number or TextMessage phone number or email address is required for ADL notification and UAP Shipper notification.
TextMessage *NotificationTextMessage `json:"TextMessage,omitempty"`
// VoiceMessage VoiceMessage container is used for specifying phone number for receiving voice Alternate Delivery Location notification and UAP Shipper notification. Valid only for Alternate Delivery Location notification and UAP Shipper notification. VoiceMessage phone number or TextMessage phone number or email address is required for ADL notification and UAP Shipper notification.
VoiceMessage *NotificationVoiceMessage `json:"VoiceMessage,omitempty"`
}
ShipmentServiceOptionsNotification Container for the Quantum View Notification (QVN) is valid for all shipments including Return service, Import Control and Returns Flexible Access. Valid return service types are: ERL, PRL, PNM, RS1, or RS3. The shipment level notification is valid for forward and return international shipments as well as for domestic shipments (for US and PR).
type ShipmentServiceOptionsPreAlertNotification ¶
type ShipmentServiceOptionsPreAlertNotification struct {
// EMailMessage This container is used for Populating EMailMessage details for PreAlertNotification.
EMailMessage *PreAlertNotificationEMailMessage `json:"EMailMessage,omitempty"`
// Locale This container is used for providing Language and dialect details for PreAlertNotification.
Locale PreAlertNotificationLocale `json:"Locale"`
// TextMessage TextMessage container is used for specifying phone number for receiving text preAlertNotification.
TextMessage *PreAlertNotificationTextMessage `json:"TextMessage,omitempty"`
// VoiceMessage VoiceMessage container is used for specifying phone number for receiving voice PreAlertNotification.
VoiceMessage *PreAlertNotificationVoiceMessage `json:"VoiceMessage,omitempty"`
}
ShipmentServiceOptionsPreAlertNotification This container is used for providing Pre-Alert Notifications to the consignee for UPS Exchange movements and Pack & Collect shipments.
type ShipmentServiceOptionsRestrictedArticles ¶
type ShipmentServiceOptionsRestrictedArticles struct {
// AlcoholicBeveragesIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Alcoholic Beverages Shippers account needs to have a valid contract for Alcohol.
AlcoholicBeveragesIndicator *string `json:"AlcoholicBeveragesIndicator,omitempty"`
// DiagnosticSpecimensIndicator This field is a flag to indicate if the package has Biological substances. True if present; false otherwise. Shippers account needs to have a valid contract for Biological Substances. Lane check will happen based on postal code/ city.
DiagnosticSpecimensIndicator *string `json:"DiagnosticSpecimensIndicator,omitempty"`
// ECigarettesIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Ecigarettes Shippers account needs to have a valid contract for Ecigarettes.
ECigarettesIndicator *string `json:"ECigarettesIndicator,omitempty"`
// PerishablesIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Perishable items. Shippers account needs to have a valid contract for Perishables.
PerishablesIndicator *string `json:"PerishablesIndicator,omitempty"`
// PlantsIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Plants Shippers account needs to have a valid contract for Plants.
PlantsIndicator *string `json:"PlantsIndicator,omitempty"`
// SeedsIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Seeds. Shippers account needs to have a valid contract for Seeds.
SeedsIndicator *string `json:"SeedsIndicator,omitempty"`
// SpecialExceptionsIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Special Exception items. Shippers account needs to have a valid contract for Special Exceptions.
SpecialExceptionsIndicator *string `json:"SpecialExceptionsIndicator,omitempty"`
// TobaccoIndicator Presence/Absence Indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the package contains Tobacco Shippers account needs to have a valid contract for Tobacco.
TobaccoIndicator *string `json:"TobaccoIndicator,omitempty"`
}
ShipmentServiceOptionsRestrictedArticles Restricted Articles container.
type ShipmentServiceOptionsVerifiedDelivery ¶
type ShipmentServiceOptionsVerifiedDelivery struct {
// RecipientEmail Specifies the recipient's email address for delivery notifications. This field is required.
RecipientEmail string `json:"RecipientEmail"`
// RecipientPhone Recipient phone number for notifications. Valid characters are digits (0-9) only. This field is optional.
RecipientPhone *string `json:"RecipientPhone,omitempty"`
// SecurePINType Specifies the type of Secure PIN. Valid value is 2, which represents VDS (Shipper Generated PIN). This field is required.
SecurePINType string `json:"SecurePINType"`
// TokenValue This field is required and must contain a 32-character hexadecimal string, using only the characters 0-9 and A-F (case-insensitive).
TokenValue string `json:"TokenValue"`
}
ShipmentServiceOptionsVerifiedDelivery Protected Delivery container required for Secure Pin Delivery. Protected Delivery will offer shippers extra security to ensure their packages are delivered to the intended recipient.
type ShipmentShipFrom ¶
type ShipmentShipFrom struct {
// Address Ship from Address Container. The package will be originating from or being shipped from this address. The shipment will be rated from this origin address to the destination ship to address.
Address ShipFromAddress `json:"Address"`
// AttentionName The ship from Attention name.
// 35 characters are accepted, but for return Shipment only 30 characters will be printed on the label. Required if ShipFrom tag is in the XML and Invoice or CO International forms is requested. If not present, will default to the Shipper Attention Name.
AttentionName *string `json:"AttentionName,omitempty"`
// CompanyDisplayableName Not applicable for ShipFrom.
CompanyDisplayableName *string `json:"CompanyDisplayableName,omitempty"`
// FaxNumber The Ship from fax number. If Ship from country or territory is US 10 digits allowed, otherwise 1-15 digits allowed.
FaxNumber *string `json:"FaxNumber,omitempty"`
// Name The ship from location's name or company name.
// 35 characters are accepted, but for return Shipment only 30 characters will be printed on the label. Required if ShipFrom tag is in the XML.
Name string `json:"Name"`
// Phone Container for Phone Number. If ShipFrom country or territory is US, PR, CA, and VI, the layout is:
// area code, 7 digit phone number or
// area code, 7 digit phone number, 4 digit extension number.
//
// For other countries or territories, the layout is:
// country or territory code, area code, 7 digit number.
//
// If ShipFrom tag is in the XML and International forms is requested.
Phone *ShipFromPhone `json:"Phone,omitempty"`
// TaxIDType Tax Identification Container. Applies to EEI form only.
TaxIDType *ShipFromTaxIDType `json:"TaxIDType,omitempty"`
// TaxIdentificationNumber Company's Tax Identification Number at the pick up location. Conditionally required if EEI form (International forms) is requested.
// Applies to EEI Form only. This element has been deprecated, replacement can be found in the GlobalTaxInformation container.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
// VendorInfo Vendor Information Container
VendorInfo *ShipFromVendorInfo `json:"VendorInfo,omitempty"`
}
ShipmentShipFrom Ship From Container. Required for return shipment.
Required if pickup location is different from the shipper's address.
Required for Trade Direct shipment.
type ShipmentShipTo ¶
type ShipmentShipTo struct {
// Address Address Container.
Address ShipToAddress `json:"Address"`
// AttentionName Contact name at the consignee's location. Required for: UPS Next Day Air® Early service, and when ShipTo country or territory is different than ShipFrom country or territory.
//
// Required if Invoice International form is requested.
AttentionName *string `json:"AttentionName,omitempty"`
// CompanyDisplayableName Not applicable for ShipTo
CompanyDisplayableName *string `json:"CompanyDisplayableName,omitempty"`
// EMailAddress Consignee's email address.
EMailAddress *string `json:"EMailAddress,omitempty"`
// FaxNumber Consignee's fax number. If ShipTo country or territory is US 10 digits allowed, otherwise 1-15 digits allowed.
FaxNumber *string `json:"FaxNumber,omitempty"`
// LocationID Location ID is a unique identifier referring to a specific shipping/receiving location. Location ID must be alphanumeric characters. All letters must be capitalized.
LocationID *string `json:"LocationID,omitempty"`
// Name Consignee's company name. All other accounts must be either a daily pickup account or an occasional account.
Name string `json:"Name"`
// Phone Container for Phone Number
Phone *ShipToPhone `json:"Phone,omitempty"`
// TaxIdentificationNumber Consignee's tax identification number. This element has been deprecated, replacement can be found in the GlobalTaxInformation container.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}
ShipmentShipTo Ship To Container.
type ShipmentShipmentIndicationType ¶
type ShipmentShipmentIndicationType struct {
// Code Valid values:
// - '01' - Hold for Pickup at UPS Access Point aka Direct to Retail (D2R)
// - '02' - UPS Access Point™ Delivery aka Retail to Retail (R2R) If '01' code is present indicates shipment will be send to Retail location where it is held to consignee to claim.
Code string `json:"Code"`
// Description Description for the code.
Description *string `json:"Description,omitempty"`
}
ShipmentShipmentIndicationType Container for Shipment Indication Type. Required to indicate whether shipment is "Hold For Pickup At UPS Access Point" for use by approved shippers to identify a UPS Access Point location as an alternate delivery option during shipment preparation or "UPS Access Point™ Delivery", ship parcels directly to a UPS Access Point location for collection by the receiver.
type ShipmentShipmentRatingOptions ¶
type ShipmentShipmentRatingOptions struct {
// FRSShipmentIndicator Ground Freight Pricing Rates option indicator. If the Ground Freight Pricing Shipment indicator is enabled and Shipper number is authorized then Ground Freight Pricing rates should be returned in the response. The Shipper account number must be qualified to receive Ground Freight Pricing Density Based Shipment rates. Only the Shipper account number taken from /ShipmentRequest/Shipment/FRSPaymentInformation/AccountNumber is used when checking qualification for Ground Freight Pricing Density Based rates.
FRSShipmentIndicator *string `json:"FRSShipmentIndicator,omitempty"`
// NegotiatedRatesIndicator Negotiated Rates option indicator. If the indicator is present and the Shipper is authorized then Negotiated Rates should be returned in the response. Negotiated Rates are of two types Account Based Rates (ABR) and Web Discount Rates. Negotiated Rates are only returned for qualified Shipper Account Numbers.
//
// Eligibility is determined using the combination of UserId and the Shipper's Shipper Account Number. If the user is qualified, both Published rates and Negotiated rates are returned to the user. If the UserId and Shipper Account
//
// Number are not qualified for Negotiated rates, a warning message is returned that indicates ineligibility and only the Published rates are returned in the response. As per discount eligibility of user, negotiated rates in the response may contain ABR or Web discount rates.
NegotiatedRatesIndicator *string `json:"NegotiatedRatesIndicator,omitempty"`
// RateChartIndicator RateChartIndicator, if present in request, response will contain RateChart element.
RateChartIndicator *string `json:"RateChartIndicator,omitempty"`
// TPFCNegotiatedRatesIndicator This indicator applies for a third party (3P) / Freight collect (FC) shipment only.
//
// For 3P/FC shipment if the shipper wishes to request for the negotiated rates of the third party then this indicator should be included in the request.
//
// If authorized the 3P/FC negotiated rates will be applied to the shipment and rates will be returned in response.
TPFCNegotiatedRatesIndicator *string `json:"TPFCNegotiatedRatesIndicator,omitempty"`
// UserLevelDiscountIndicator If this indicator is present user level discount will be applied to rates if applicable Conditions checked:
// This indicator should be present
// Shipper number should not be present
// User should be eligible for user level discount
UserLevelDiscountIndicator *string `json:"UserLevelDiscountIndicator,omitempty"`
}
ShipmentShipmentRatingOptions ShipmentRatingOptions container.
type ShipmentShipmentServiceOptions ¶
type ShipmentShipmentServiceOptions struct {
// AccessPointCOD Access Point COD indicates COD is requested for a shipment. Valid only for "01 - Hold For Pickup At UPS Access Point" Shipment Indication type. Shipment Access Point COD is valid only for countries or territories within E.U.
// Not valid with (Shipment) COD.
// Not available to shipment with return service.
AccessPointCOD *ShipmentServiceOptionsAccessPointCOD `json:"AccessPointCOD,omitempty"`
// COD COD container Indicates COD is requested. Shipment COD is only available for EU origin countries or territories and for shippers account type Daily Pickup and Drop Shipping. Not available to shipment with return service.
COD *ShipmentServiceOptionsCOD `json:"COD,omitempty"`
// CommercialInvoiceRemovalIndicator CommercialInvoiceRemovalIndicator allows a shipper to dictate UPS to remove the Commercial Invoice from the user's shipment before the shipment is delivered to the ultimate consignee.
CommercialInvoiceRemovalIndicator *string `json:"CommercialInvoiceRemovalIndicator,omitempty"`
// DeliverToAddresseeOnlyIndicator Presence/Absence Indicator. Any value inside is ignored. DeliverToAddresseeOnlyIndicator is shipper specified restriction that requires the addressee to be the one who takes final delivery of the "Hold For PickUp at UPS Access Point" package. Presence of indicator means shipper restriction will apply to the shipment. Only valid for Shipment Indication type "01 - Hold For PickUp at UPS Access Point".
DeliverToAddresseeOnlyIndicator *string `json:"DeliverToAddresseeOnlyIndicator,omitempty"`
// DeliveryConfirmation Delivery Confirmation container. Valid for forward shipments only.
//
// Refer to Delivery Confirmation Origin-Destination Pairs in the Appendix for a list of valid values.
DeliveryConfirmation *ShipmentServiceOptionsDeliveryConfirmation `json:"DeliveryConfirmation,omitempty"`
// DirectDeliveryOnlyIndicator Presence/Absence Indicator. Any value inside is ignored. Direct Delivery Only (DDO) accessorial in a request would ensure that delivery is made only to the ship to address on the shipping label. This accessorial is not valid with Shipment Indication Type "01 - Hold For Pickup At UPS Access Point" and "02 - UPS Access Point™ Delivery".
DirectDeliveryOnlyIndicator *string `json:"DirectDeliveryOnlyIndicator,omitempty"`
// DropoffAtUPSFacilityIndicator Drop off At UPS Facility indicator. The empty tag means indicator is present. This accessorial is only valid for UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday Shipment.
DropoffAtUPSFacilityIndicator *string `json:"DropoffAtUPSFacilityIndicator,omitempty"`
// EPRAReleaseCode Package Release code allows the consignee or claimant to pick-up a package at a UPS Access Point™. The shipper must provide the Package Release Code to the consignee so that they can provide the code to the UPS Access Point personnel as another item for authentication before the package is released to them. Package Release Code is only valid with ShipmentIndicationType 01 - Hold for Pickup at UPS Access Point™. The release code must be between length 4 and 6 and only contain numbers.
EPRAReleaseCode *string `json:"EPRAReleaseCode,omitempty"`
// ExchangeForwardIndicator Exchange forward indicator presence at shipment level is required to create exchange forward Shipments. In the label routing Instruction text will be defaulted to "EXCHANGE-LIKE ITEM ONLY".
ExchangeForwardIndicator *string `json:"ExchangeForwardIndicator,omitempty"`
// HoldForPickupIndicator Hold For Pickup indicator. The empty tag means indicator is present. This accessorial is only valid for UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday Shipment.
HoldForPickupIndicator *string `json:"HoldForPickupIndicator,omitempty"`
// ImportControlIndicator Indicates that the Shipment is an ImportControl shipment.
ImportControlIndicator *string `json:"ImportControlIndicator,omitempty"`
// InsideDelivery Inside delivery accessory. Valid values:
// 01 - White Glove,
// 02 - Room of Choice,
// 03 - Installation,
// 04 - Over Threshold Fee.
// Default is Room of Choice. Shippers account needs to have a valid contract for Heavy Goods Service.
InsideDelivery *string `json:"InsideDelivery,omitempty"`
// InternationalForms International Forms information. This is applicable to Trade Direct SMALLPACKAGE International Child movements and not applicable to Trade Direct Master or Trade Direct LTL Child movements.
InternationalForms *ShipmentServiceOptionsInternationalForms `json:"InternationalForms,omitempty"`
// ItemDisposal Presence/Absence indicator. True if present; false otherwise. Any value is ignored. If present, indicates that the customer would like items disposed. Shippers account needs to have a valid contract for Heavy Goods Service.
ItemDisposal *string `json:"ItemDisposal,omitempty"`
// LabelDelivery Container for the Label Delivery accessorial. Note - LabelDelivery is not applicable for GFP and Mail Innovations Forward shipment. Required for shipments with either Electronic Return Label Return Service or ImportControl Electronic LabelMethod type. Optional for shipments with Print Return Label Return Service or ImportControl Print LabelMethod type or Forward movement. If this container is present for shipments with either Electronic Return Label Return Service or ImportControl Electronic LabelMethod type, either of the LabelLinksIndicator or EMail container should be provided. For shipments with Print Return Label Return Service or ImportControl Print LabelMethod type or Forward movement, only LabelLinksIndicator is valid option for LabelDelivery container.
LabelDelivery *ShipmentServiceOptionsLabelDelivery `json:"LabelDelivery,omitempty"`
// LabelMethod Type of ImportControl Label. This container is applicable only for ImportControl shipments. This container is applicable only for ImportControl shipments.
LabelMethod *ShipmentServiceOptionsLabelMethod `json:"LabelMethod,omitempty"`
// LiftGateForDeliveryIndicator Lift Gate For Delivery indicator. The empty tag means indicator is present. Lift Gate for Delivery is not allowed with Hold For Pickup for a UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday shipment.
//
// When both Hold for Pickup and Drop Off At UPS Facility are selected, neither of the Lift Gate accessorial (Pick Up or Delivery) are allowed for a UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday shipment.
//
// This accessorial is only valid for UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday Shipment.
LiftGateForDeliveryIndicator *string `json:"LiftGateForDeliveryIndicator,omitempty"`
// LiftGateForPickUpIndicator Lift Gate For Pick Up indicator. The empty tag means indicator is present. Lift Gate for Pickup is not allowed with Drop Off At UPS Facility for a UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday shipment.
//
// When both Hold for Pickup and Drop Off At Facility are selected, neither of the Lift Gate accessorial (Pick Up or Delivery) are allowed for a UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday shipment.
//
// This accessorial is only valid for UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday Shipment.
LiftGateForPickUpIndicator *string `json:"LiftGateForPickUpIndicator,omitempty"`
Notification *[]ShipmentServiceOptionsNotification `json:"Notification,omitempty"`
PreAlertNotification *[]ShipmentServiceOptionsPreAlertNotification `json:"PreAlertNotification,omitempty"`
// RestrictedArticles Restricted Articles container.
RestrictedArticles *ShipmentServiceOptionsRestrictedArticles `json:"RestrictedArticles,omitempty"`
// ReturnOfDocumentIndicator The flag indicates the ReturnOfDocument accessorial has been requested. Valid for Poland to Poland forward shipment only.
ReturnOfDocumentIndicator *string `json:"ReturnOfDocumentIndicator,omitempty"`
// SDLShipmentIndicator The presence of the tag SDLShipmentIndicator indicates Shipment is SDL. SDLShipmentIndicator presence means EEI form/ EEI Filing option required.
SDLShipmentIndicator *string `json:"SDLShipmentIndicator,omitempty"`
// SaturdayDeliveryIndicator Saturday delivery indicator. The presence indicates Saturday delivery is requested and the absence indicates Saturday delivery is not requested. This is an empty tag, any value inside is ignored.
SaturdayDeliveryIndicator *string `json:"SaturdayDeliveryIndicator,omitempty"`
// SaturdayPickupIndicator Saturday pickup indicator. The presence indicates Saturday pickup is requested and the absence indicates Saturday pickup is not requested. This is an empty tag, any value inside is ignored.
SaturdayPickupIndicator *string `json:"SaturdayPickupIndicator,omitempty"`
// UPScarbonneutralIndicator UPS carbon offsets indicator presence at shipment level is required to create carbon offsets Shipments.
UPScarbonneutralIndicator *string `json:"UPScarbonneutralIndicator,omitempty"`
// VerifiedDelivery Protected Delivery container required for Secure Pin Delivery. Protected Delivery will offer shippers extra security to ensure their packages are delivered to the intended recipient.
VerifiedDelivery *ShipmentServiceOptionsVerifiedDelivery `json:"VerifiedDelivery,omitempty"`
}
ShipmentShipmentServiceOptions Container for Shipment Service Options.
type ShipmentShipper ¶
type ShipmentShipper struct {
// Address Address tag Container. The package should be returned to this address if the package is undeliverable.
//
// This address appears on the upper left hand corner of the label.
//
// Note: If the ShipFrom container is not present then this address will be used as the ShipFrom address. If this address is used as the ShipFrom the shipment will be rated from this origin address.
Address ShipperAddress `json:"Address"`
// AttentionName Shippers Attention Name.
//
// For forward Shipment 35 characters are accepted, but only 30 characters will be printed on the label. Required if destination is international. Required if Invoice and CO International forms are requested and the ShipFrom address is not present.
AttentionName *string `json:"AttentionName,omitempty"`
// CompanyDisplayableName Shipper's CompanyDisplayableName.
//
// The CompanyDisplayableName will be displayed in tracking results and notification messages in place of the name associated with the shipper account.
// The original shipper account name will be displayed for all Return Services and Import Control Shipments. This is available for Shipper accounts enabled by UPS and applies to Forward Shipments.
CompanyDisplayableName *string `json:"CompanyDisplayableName,omitempty"`
// EMailAddress Shipper's email address.
EMailAddress *string `json:"EMailAddress,omitempty"`
// FaxNumber Shipper's Fax Number.
FaxNumber *string `json:"FaxNumber,omitempty"`
// Name Shippers company name.
//
// For forward Shipment 35 characters are accepted, but only 30 characters will be printed on the label.
Name string `json:"Name"`
// Phone Container tag for Phone Number.
Phone *ShipperPhone `json:"Phone,omitempty"`
// ShipperNumber Shipper's six digit alphanumeric account number.
//
// Must be associated with the UserId specified in the AccessRequest XML.
//
// The account must be a valid UPS account number that is active.
//
// For US, PR and CA accounts, the account must be either a daily pickup account, an occasional account, or a customer B.I.N account.
//
// Drop Shipper accounts are valid for return service shipments only if the account is Trade Direct (TD) enabled.
//
// All other accounts must be either a daily pickup account or an occasional account.
ShipperNumber string `json:"ShipperNumber"`
// TaxIdentificationNumber Shipper's Tax Identification Number. Conditionally required if EEI form (International forms) is requested and ship From is not mentioned. This element has been deprecated, replacement can be found in the GlobalTaxInformation container.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}
ShipmentShipper Container for the Shipper's information.
type ShipmentTradeDirect ¶
type ShipmentTradeDirect struct {
// Child A small package or LTL/TL shipment associated with a Trade Direct Master.
Child *TradeDirectChild `json:"Child,omitempty"`
// CurrencyCode The currency code for the shipment as per ISO 4217.
CurrencyCode string `json:"CurrencyCode"`
// GeneralDescriptionOfGoods General description of the goods being shipped. It is required for master shipment.
GeneralDescriptionOfGoods *string `json:"GeneralDescriptionOfGoods,omitempty"`
// Master A collection of small package and LTL/TL shipments that are transported by UPS from the customer to the destination CFS.
Master *TradeDirectMaster `json:"Master,omitempty"`
// ShipmentType Consolidated shipment types.
//
// Valid values:
// - TRADEDIRECTAIR = TradeDirect Air - consolidation, custom clearance, deconsolidation and delivery to multiple addresses
// within destination country, with Airport-to-door or door-to-door.
//
// - TRADEDIRECTOCEAN = TradeDirect Ocean - consolidation, ocean transportation, customs clearance, deconsolidation and delivery
// to multiple addresses within a destination country, with port-to-door and door-to-door service from shipper to consignee. Available from more than 70 ports.
//
// - TRADEDIRECTCROSSBORDER = TradeDirect CrossBoarder - consolidation, customs clearance, deconsolidation and delivery to multiple addresses
// within the destination country, with door-to-door service across North American borders.
ShipmentType ShipmentTradeDirectShipmentType `json:"ShipmentType"`
}
ShipmentTradeDirect A UPS product that enables customers to ship directly from a manufacturer to end consumers in a different country.
type ShipmentTradeDirectShipmentType ¶
type ShipmentTradeDirectShipmentType string
ShipmentTradeDirectShipmentType Consolidated shipment types.
Valid values:
TRADEDIRECTAIR = TradeDirect Air - consolidation, custom clearance, deconsolidation and delivery to multiple addresses within destination country, with Airport-to-door or door-to-door.
TRADEDIRECTOCEAN = TradeDirect Ocean - consolidation, ocean transportation, customs clearance, deconsolidation and delivery to multiple addresses within a destination country, with port-to-door and door-to-door service from shipper to consignee. Available from more than 70 ports.
TRADEDIRECTCROSSBORDER = TradeDirect CrossBoarder - consolidation, customs clearance, deconsolidation and delivery to multiple addresses within the destination country, with door-to-door service across North American borders.
const ( TRADEDIRECTAIR ShipmentTradeDirectShipmentType = "TRADEDIRECTAIR" TRADEDIRECTCROSSBORDER ShipmentTradeDirectShipmentType = "TRADEDIRECTCROSSBORDER" TRADEDIRECTOCEAN ShipmentTradeDirectShipmentType = "TRADEDIRECTOCEAN" )
Defines values for ShipmentTradeDirectShipmentType.
type ShipmentWorldEase ¶
type ShipmentWorldEase struct {
// DestinationCountryCode The final destination country code.
DestinationCountryCode string `json:"DestinationCountryCode"`
// DestinationPostalCode The final destination postal code.
DestinationPostalCode *string `json:"DestinationPostalCode,omitempty"`
// GCCN The Global Consolidation Clearance Number(GCCN) generated for the master shipment. This is required for child shipment.
GCCN *string `json:"GCCN,omitempty"`
// MasterEUConsolidationIndicator 1 indicates a Master Consolidation request for the European Union.
MasterEUConsolidationIndicator *string `json:"MasterEUConsolidationIndicator,omitempty"`
// MasterHasDocBox This field indicates whether the shipment is a master shipment and specifies the document box type. This is required for Master shipment only.<br/>Valid values <br/>0 - Virtual DocBox <br/>1 - Physical DocBox.
MasterHasDocBox *string `json:"MasterHasDocBox,omitempty"`
// MasterShipmentChgType Code that indicates how shipping charges will be paid.
//
// | Code | Name | Description: |
// | :--: | :-- | :-- |
// | CAF | Cost And Freight | Shipper pays to point of import, conignee pays balance. |
// | COL | Freight Collect | Consignee (with valid UPS account) pays all shipping charges |
// | DDP | Delivered Duty Paid | Shipper pays shipping and duty, consignee pays the Value Added Tax (VAT) |
// | FOB | Free On Board | Shipper pays to point to export, consignee pays balance |
// | PRE | Prepaid | Shipper pays all shipping charges |
// | SDT | Free Domicile | Child Shipper pays for shipping, duities and taxes |
MasterShipmentChgType ShipmentWorldEaseMasterShipmentChgType `json:"MasterShipmentChgType"`
// PortOfEntry Container for port of entry details
PortOfEntry struct {
Address AddressPOE `json:"Address"`
// ClearancePortCode Port code
ClearancePortCode string `json:"ClearancePortCode"`
// Consignee Port of entry consignee
Consignee string `json:"Consignee"`
// Name Port of entry name
Name string `json:"Name"`
} `json:"PortOfEntry"`
// VendorCollectIDNumberExemptIndicator This field indicates if VendorCollectIDTypeCode and VendorCollectIDNumber should be exempt from validation. "0" indicates VendorCollectIDTypeCode and VendorCollectIDNumber fields are required.
VendorCollectIDNumberExemptIndicator *string `json:"VendorCollectIDNumberExemptIndicator,omitempty"`
}
ShipmentWorldEase WorldEase is a contract service offering in the UPS shipping that decreases brokerage fees by consolidating loose packages into one shipment for customs clearance.
type ShipmentWorldEaseMasterShipmentChgType ¶
type ShipmentWorldEaseMasterShipmentChgType string
ShipmentWorldEaseMasterShipmentChgType Code that indicates how shipping charges will be paid.
| Code | Name | Description: | | :--: | :-- | :-- | | CAF | Cost And Freight | Shipper pays to point of import, conignee pays balance. | | COL | Freight Collect | Consignee (with valid UPS account) pays all shipping charges | | DDP | Delivered Duty Paid | Shipper pays shipping and duty, consignee pays the Value Added Tax (VAT) | | FOB | Free On Board | Shipper pays to point to export, consignee pays balance | | PRE | Prepaid | Shipper pays all shipping charges | | SDT | Free Domicile | Child Shipper pays for shipping, duities and taxes |
const ( ShipmentWorldEaseMasterShipmentChgTypeCAF ShipmentWorldEaseMasterShipmentChgType = "CAF" ShipmentWorldEaseMasterShipmentChgTypeCOL ShipmentWorldEaseMasterShipmentChgType = "COL" ShipmentWorldEaseMasterShipmentChgTypeDDP ShipmentWorldEaseMasterShipmentChgType = "DDP" ShipmentWorldEaseMasterShipmentChgTypeFOB ShipmentWorldEaseMasterShipmentChgType = "FOB" ShipmentWorldEaseMasterShipmentChgTypePRE ShipmentWorldEaseMasterShipmentChgType = "PRE" ShipmentWorldEaseMasterShipmentChgTypeSDT ShipmentWorldEaseMasterShipmentChgType = "SDT" )
Defines values for ShipmentWorldEaseMasterShipmentChgType.
type ShipperAddress ¶
type ShipperAddress struct {
// AddressLine The Shipper street address including name and number (when applicable). Up to three occurrences are allowed; only the first is printed on the label.
//
// 35 characters are accepted, but for the first occurrence, only 30 characters will be printed on the label for return shipments.
AddressLine []string `json:"AddressLine"`
// City Shipper's City. For forward Shipment 30 characters are accepted, but only 15 characters will be printed on the label.
City string `json:"City"`
// CountryCode Shipper's country or territory code.
//
// Refer to country or territory Codes in the Appendix for valid values.
//
// Drop Shipper accounts are valid for return service shipments only if the account is Trade Direct (TD) enabled.
CountryCode string `json:"CountryCode"`
// PostalCode Shipper's postal code.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode Shipper's state or province code.
//
// For forward Shipment 5 characters are accepted, but only 2 characters will be printed on the label. For US, PR and CA accounts, the account must be either a daily pickup account, an occasional account, or a customer B.I.N account.
//
// Required for Vietnam (VN).
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
ShipperAddress Address tag Container. The package should be returned to this address if the package is undeliverable.
This address appears on the upper left hand corner of the label.
Note: If the ShipFrom container is not present then this address will be used as the ShipFrom address. If this address is used as the ShipFrom the shipment will be rated from this origin address.
type ShipperPhone ¶
type ShipperPhone struct {
// Extension Shipper's phone extension.
Extension *string `json:"Extension,omitempty"`
// Number Shipper's phone Number. Valid values are 0 - 9.
//
// If Shipper country or territory is US, PR, CA, and VI, the layout is:
// area code, 7 digit PhoneNumber or
// area code, 7 digit PhoneNumber, 4 digit extension number.
//
// For other countries or territories, the layout is: country or territory code, area code, 7 digit number.
//
// A phone number is required if destination is international.
Number string `json:"Number"`
}
ShipperPhone Container tag for Phone Number.
type ShippingLabelImageFormat ¶
type ShippingLabelImageFormat struct {
// Code Label image code that the labels are generated. Valid values: EPL = EPL2 SPL = SPL ZPL = ZPL GIF = gif images PNG = PNG images. Only EPL, SPL, ZPL and GIF are currently supported. For multi piece COD shipments, the label image format for the first package will always be a GIF for any form of label requested.
Code string `json:"Code"`
// Description Description of the image format.
Description *string `json:"Description,omitempty"`
}
ShippingLabelImageFormat The container image format.
type ShippingReceiptImageFormat ¶
type ShippingReceiptImageFormat struct {
// Code Code representing the format in which a receipt is delivered. Valid values:
// - HTML = HTML format
Code string `json:"Code"`
// Description Description of the image format code.
Description *string `json:"Description,omitempty"`
}
ShippingReceiptImageFormat Container for a Image Format.
type SoldToAddress ¶
type SoldToAddress struct {
// AddressLine SoldTo location's street address. Applies to USMCA.
AddressLine []string `json:"AddressLine"`
// City SoldTo location's city.
City string `json:"City"`
// CountryCode SoldTo location's country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode SoldTo location's postal code.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode SoldTo location's state or province code. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
// Town SoldTo location's town code.
Town *string `json:"Town,omitempty"`
}
SoldToAddress Sold To Address Container. Applies to USMCA.
type SoldToPhone ¶
type SoldToPhone struct {
// Extension Sold To contacts phone extension.
Extension *string `json:"Extension,omitempty"`
// Number Sold To contacts phone number.
Number string `json:"Number"`
}
SoldToPhone Phone Container.
type SummaryResultStatus ¶
type SummaryResultStatus struct {
// Code Code for the status of the Summary Result
Code string `json:"Code"`
// Description Description of the status of the Summary Result
Description string `json:"Description"`
}
SummaryResultStatus Container for the status of the Summary Result
type TrackingCandidatePickupDateRange ¶
type TrackingCandidatePickupDateRange struct {
// BeginDate The beginning of the date range for the candidate. Format: YYYYMMDD Service is only supported for 30 days
BeginDate string `json:"BeginDate"`
// EndDate The end of the date range for the candidate. Format: YYYYMMDD
EndDate string `json:"EndDate"`
}
TrackingCandidatePickupDateRange A range of time the package was picked up.
type TradeDirectAddress ¶
type TradeDirectAddress struct {
// AddressLine Primary address line includes street number and street name (when applicable).
AddressLine string `json:"AddressLine"`
// City The name of the city for the address.
City string `json:"City"`
// CountryCode The code for the country for the address
CountryCode string `json:"CountryCode"`
// PostalCode The postal code for the address.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode The code for the state or province for the address. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
TradeDirectAddress Contains the address details including street address, city, state or province code, postal code, and country code.
type TradeDirectChild ¶
type TradeDirectChild struct {
// HazMatIndicator Indicates the Presence/Absence of HazMat on the shipment.
HazMatIndicator *string `json:"HazMatIndicator,omitempty"`
// LtlCharges Represents transportation charges for child shipments categorized as "Less than Truck Load" (LTL), including freight, fuel surcharges, and accessorial fees. These charges are calculated based on shipment weight, volume, or distance. Applicable only for LTL child.
LtlCharges *ChildLTLCharges `json:"LtlCharges,omitempty"`
// LtlPackage LTL package information. Applicable only for LTL child.
LtlPackage ChildLTLPackage `json:"LtlPackage"`
// Product This variable represents the product details. It is used to provide information about the product being shipped.
Product ChildProduct `json:"Product"`
// Type The type of shipment.
//
// Valid values:
//
// - LTL
// - SMALLPACKAGE
// - MI
Type TradeDirectChildType `json:"Type"`
// USI The unique shipment identifier (USI) is used to create Master, LTL and Child shipments. Used for Freight shipments.
USI string `json:"USI"`
}
TradeDirectChild A small package or LTL/TL shipment associated with a Trade Direct Master.
type TradeDirectChildType ¶
type TradeDirectChildType string
TradeDirectChildType The type of shipment.
Valid values:
- LTL - SMALLPACKAGE - MI
const ( LTL TradeDirectChildType = "LTL" MI TradeDirectChildType = "MI" SMALLPACKAGE TradeDirectChildType = "SMALLPACKAGE" )
Defines values for TradeDirectChildType.
type TradeDirectMaster ¶
type TradeDirectMaster struct {
// NotificationBeforeDelivery Notification container for the before delivery notification.
NotificationBeforeDelivery *TradeDirectNotificationBeforeDelivery `json:"NotificationBeforeDelivery,omitempty"`
// Pickup Contains the address and contact details of the shipments.
Pickup *MasterPickup `json:"Pickup,omitempty"`
// SoldTo Contains the address and contact details of the shipments.
SoldTo *MasterSoldTo `json:"SoldTo,omitempty"`
// SoldToSameAsShipTo If Present indicates the Sold to and Ship To are the same.
SoldToSameAsShipTo *string `json:"SoldToSameAsShipTo,omitempty"`
// TradeComplianceDetails Contains trade compliance details for the master shipment, such as invoice terms, export reasons, and declaration statements. It also includes additional comments or instructions for customs clearance.
TradeComplianceDetails *MasterTradeComplianceDetails `json:"TradeComplianceDetails,omitempty"`
// UomType The type of measurement used for the shipment. Imperial(lbs, in) & Metric(kgs, cm)
//
// Valid values are:
//
// - Imperial = This system of measurement uses units such as pounds (lbs) for weight and inches (in) for length.
//
// - Metric = This system of measurement uses units such as kilograms (kgs) for weight and centimeters (cm) for length.
UomType TradeDirectMasterUomType `json:"UomType"`
}
TradeDirectMaster A collection of small package and LTL/TL shipments that are transported by UPS from the customer to the destination CFS.
type TradeDirectMasterUomType ¶
type TradeDirectMasterUomType string
TradeDirectMasterUomType The type of measurement used for the shipment. Imperial(lbs, in) & Metric(kgs, cm)
Valid values are:
- Imperial = This system of measurement uses units such as pounds (lbs) for weight and inches (in) for length.
- Metric = This system of measurement uses units such as kilograms (kgs) for weight and centimeters (cm) for length.
const ( Imperial TradeDirectMasterUomType = "Imperial" Metric TradeDirectMasterUomType = "Metric" )
Defines values for TradeDirectMasterUomType.
type TradeDirectNotificationBeforeDelivery ¶
type TradeDirectNotificationBeforeDelivery struct {
// AlternateEmailAddress Alternate email address for the notification.
AlternateEmailAddress *string `json:"AlternateEmailAddress,omitempty"`
// CompanyName The name of the company for the notification.
CompanyName *string `json:"CompanyName,omitempty"`
// Dialect The dialect for the notification.
Dialect *string `json:"Dialect,omitempty"`
// EMailAddress Email address to send notification to.
EMailAddress string `json:"EMailAddress"`
// Language The language for the notification.
Language *string `json:"Language,omitempty"`
// MediaTypeCode The media type code for the notification.
//
// Valid values are:
//
// - 03 = Email
// - 04 = Fax
MediaTypeCode *TradeDirectNotificationBeforeDeliveryMediaTypeCode `json:"MediaTypeCode,omitempty"`
// Memo Memo for the notification.
Memo *string `json:"Memo,omitempty"`
// Name The name of the contact person for the notification.
Name *string `json:"Name,omitempty"`
// Phone Contains the phone details including the phone number and extension.
Phone *TradeDirectPhone `json:"Phone,omitempty"`
// RequestType The type of notification request.
//
// Valid values are:
//
// - 001 = QV Ship Notification
// - 002 = QV Delivery Notification
// - 003 = QV Exception Notification
RequestType *TradeDirectNotificationBeforeDeliveryRequestType `json:"RequestType,omitempty"`
// ShipFromCompanyName The name of the company for the ship from address.
ShipFromCompanyName *string `json:"ShipFromCompanyName,omitempty"`
// SubjectLine Subject line for the notification.
SubjectLine *string `json:"SubjectLine,omitempty"`
}
TradeDirectNotificationBeforeDelivery Notification container for the before delivery notification.
type TradeDirectNotificationBeforeDeliveryMediaTypeCode ¶
type TradeDirectNotificationBeforeDeliveryMediaTypeCode string
TradeDirectNotificationBeforeDeliveryMediaTypeCode The media type code for the notification.
Valid values are:
- 03 = Email - 04 = Fax
const ( N03 TradeDirectNotificationBeforeDeliveryMediaTypeCode = "03" N04 TradeDirectNotificationBeforeDeliveryMediaTypeCode = "04" )
Defines values for TradeDirectNotificationBeforeDeliveryMediaTypeCode.
type TradeDirectNotificationBeforeDeliveryRequestType ¶
type TradeDirectNotificationBeforeDeliveryRequestType string
TradeDirectNotificationBeforeDeliveryRequestType The type of notification request.
Valid values are:
- 001 = QV Ship Notification - 002 = QV Delivery Notification - 003 = QV Exception Notification
const ( N001 TradeDirectNotificationBeforeDeliveryRequestType = "001" N002 TradeDirectNotificationBeforeDeliveryRequestType = "002" N003 TradeDirectNotificationBeforeDeliveryRequestType = "003" )
Defines values for TradeDirectNotificationBeforeDeliveryRequestType.
type TradeDirectPhone ¶
type TradeDirectPhone struct {
// Extension The phone extension of the contact.
Extension *string `json:"Extension,omitempty"`
// Number The phone number of the contact.
Number string `json:"Number"`
}
TradeDirectPhone Contains the phone details including the phone number and extension.
type TransportationChargesDiscountAmount ¶
type TransportationChargesDiscountAmount struct {
// CurrencyCode Discount Amount currency code.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Discount amount monetary value. Valid values are from 0 to 9999999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
TransportationChargesDiscountAmount Discount Amount container. It indicates the shipment level Ground Freight Pricing discount amount for transportation charges
type TransportationChargesGrossCharge ¶
type TransportationChargesGrossCharge struct {
// CurrencyCode Gross charges currency code.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Gross charges monetary value. Valid values are from 0 to 9999999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
TransportationChargesGrossCharge Gross Charges container. It indicates the shipment level gross Ground Freight Pricing transportation charges.
type TransportationChargesNetCharge ¶
type TransportationChargesNetCharge struct {
// CurrencyCode Net Charge currency code.
CurrencyCode string `json:"CurrencyCode"`
// MonetaryValue Net charges monetary value. Valid values are from 0 to 9999999999999999.99
MonetaryValue string `json:"MonetaryValue"`
}
TransportationChargesNetCharge Net Charges container. It indicates the shipment level net Ground Freight Pricing transportation charges.
type UPSFiledPOA ¶
type UPSFiledPOA struct {
// Code Indicates the EEI UPS Filed POA filing option. Applicable for EEI form. Valid values are 1- One Time POA; 2- Blanket POA.
Code string `json:"Code"`
// Description Description for POA Code. Applicable for EEI form.
Description *string `json:"Description,omitempty"`
}
UPSFiledPOA Container for POA. Applicable for EEI form.
type UPSPremierHandlingInstructions ¶
type UPSPremierHandlingInstructions struct {
// Instruction Handling Instruction for UPS Premier package. Please refer Apendix UPS Premier Handling Instructions.
Instruction string `json:"Instruction"`
}
UPSPremierHandlingInstructions Handling Instruction Container.
type UPSPremiumCareFormLanguageForUPSPremiumCare ¶
type UPSPremiumCareFormLanguageForUPSPremiumCare struct {
// Language Languages for UPS Premium Care Form. Two languages are required for UPS Premium Care Form. Valid values:
// eng = US English
// fra = Canadian French
Language []string `json:"Language"`
}
UPSPremiumCareFormLanguageForUPSPremiumCare Container to hold languages in which UPS Premium Care Form is required.
type UltimateConsigneeAddress ¶
type UltimateConsigneeAddress struct {
// AddressLine Address line of the Ultimate consignee. Applicable for EEI form only.
AddressLine []string `json:"AddressLine"`
// City City of the Ultimate consignee. Applicable for EEI form only.
City string `json:"City"`
// CountryCode Country or Territory code of the Ultimate consignee. Applicable for EEI form only.
CountryCode string `json:"CountryCode"`
// PostalCode Postal code of the Ultimate consignee. Applicable for EEI form only. Required for certain countries or territories. The length of the postal code depends on the country or territory code.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode State of the Ultimate consignee. Applicable for EEI form only. Required for US, Canada, and Vietnam (VN).
//
// The length of the postal code depends on the country or territory code.
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
// Town Town of the Ultimate consignee. Applicable for EEI form only.
Town *string `json:"Town,omitempty"`
}
UltimateConsigneeAddress Address information of the Ultimate consignee. Applicable for EEI form only.
type UltimateConsigneeUltimateConsigneeType ¶
type UltimateConsigneeUltimateConsigneeType struct {
// Code Ultimate Consignee Type Code. Applicable for EEI form only.
//
// Valid values:
// D = Direct Consumer
// G = Government Entity
// R = Reseller
// O = Other/Unknown
Code string `json:"Code"`
// Description Ultimate Consignee Type Description. Applicable for EEI form only.
Description *string `json:"Description,omitempty"`
}
UltimateConsigneeUltimateConsigneeType Container for providing UltimateConsignee Type. Applicable for EEI form only.
type UnitUnitOfMeasurement ¶
type UnitUnitOfMeasurement struct {
// Code Code for the Unit of measurement of the commodity units. Required for Invoice forms and optional for Partial Invoice.
//
// Refer to Product Unit of Measure Codes in the Appendix for valid values.
Code string `json:"Code"`
// Description The Unit of Measure if OTH (Other) is entered as the UnitOfMeasurement code. Applies to Invoice and Partial Invoice forms. Conditionally Required for the Invoice and Partial Invoice form if OTH is entered as the units UnitOfMeasurement Code.
Description *string `json:"Description,omitempty"`
}
UnitUnitOfMeasurement Container tag for the Unit of measurement for the commodity. Required for Invoice forms and optional for Partial Invoice.
type VOIDSHIPMENTResponseWrapper ¶
type VOIDSHIPMENTResponseWrapper struct {
// VoidShipmentResponse Void Response Container.
VoidShipmentResponse VoidShipmentResponse `json:"VoidShipmentResponse"`
}
VOIDSHIPMENTResponseWrapper N/A
type VoidResponseResponseStatus ¶
type VoidResponseResponseStatus struct {
// Code Identifies the success or failure of the transaction. 1 = Successful
Code string `json:"Code"`
// Description Describes Response Status Code. Returns text of Success
Description string `json:"Description"`
}
VoidResponseResponseStatus Response Status Container.
type VoidResponseTransactionReference ¶
type VoidResponseTransactionReference struct {
// CustomerContext The CustomerContext Information which will be echoed during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
VoidResponseTransactionReference Transaction Reference Container.
type VoidShipmentOpParams ¶
type VoidShipmentOpParams struct {
// Trackingnumber The package's tracking number. You may have
// up to 20 different tracking numbers listed.
// If more than one tracking number, pass this
// value as: trackingnumber=
// ["1ZISUS010330563105","1ZISUS01033056310
// 8"] with a coma separating each number.
// Alpha-numeric. Must pass 1Z rules. Must be
// upper case. Length 18
Trackingnumber *string `form:"trackingnumber,omitempty" json:"trackingnumber,omitempty"`
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
// ShipperNumber Shipper Number<br/>Required only for Roadie Shipments
ShipperNumber *string `json:"shipperNumber,omitempty"`
}
VoidShipmentOpParams defines parameters for VoidShipmentOp.
type VoidShipmentOpResponse ¶
type VoidShipmentOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *VOIDSHIPMENTResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseVoidShipmentOpResponse ¶
func ParseVoidShipmentOpResponse(rsp *http.Response) (*VoidShipmentOpResponse, error)
ParseVoidShipmentOpResponse parses an HTTP response from a VoidShipmentOpWithResponse call
func (VoidShipmentOpResponse) Status ¶
func (r VoidShipmentOpResponse) Status() string
Status returns HTTPResponse.Status
func (VoidShipmentOpResponse) StatusCode ¶
func (r VoidShipmentOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VoidShipmentResponse ¶
type VoidShipmentResponse struct {
// PackageLevelResults Contains the Package Level Results.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
PackageLevelResults *[]VoidShipmentResponsePackageLevelResults `json:"PackageLevelResults,omitempty"`
// Response Response Container.
Response VoidShipmentResponseResponse `json:"Response"`
// SummaryResult Container for the Summary Result
SummaryResult VoidShipmentResponseSummaryResult `json:"SummaryResult"`
}
VoidShipmentResponse Void Response Container.
type VoidShipmentResponsePackageLevelResults ¶
type VoidShipmentResponsePackageLevelResults struct {
// Status Contains the status code tags.
Status PackageLevelResultsStatus `json:"Status"`
// TrackingNumber The package's identification number
TrackingNumber string `json:"TrackingNumber"`
}
VoidShipmentResponsePackageLevelResults defines model for VoidShipmentResponse_PackageLevelResults.
type VoidShipmentResponseResponse ¶
type VoidShipmentResponseResponse struct {
// Alert Alert Container. There can be zero to many alert containers with code and description.
Alert *ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus VoidResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *VoidResponseTransactionReference `json:"TransactionReference,omitempty"`
}
VoidShipmentResponseResponse Response Container.
type VoidShipmentResponseSummaryResult ¶
type VoidShipmentResponseSummaryResult struct {
// Status Container for the status of the Summary Result
Status SummaryResultStatus `json:"Status"`
}
VoidShipmentResponseSummaryResult Container for the Summary Result