GoSweetSpot: Models

GoSweetSpot: Models

Available Rate Model


AttributeTypeDescription
quoteIdGuidUnique rates calculation identifier.
carrierIdintegerId of carrier.
carriernamestringDisplay name of courier provider.
deliverytypestringCourier delivery/service type.
costdecimalFreight cost.
servicestandardstringCourier service wording.
commentsstringAny extra comments supplied with this rate.
routestringCourier provider specific freight routing.
isruraldeliverybooleanIf delivery has been identified as a rural aread delivery.
issaturdaydeliverybooleanIf delivery has been flagged for saturday delivery.
isresidentialbooleanIf delivery has been flagged for a residential delivery.
carrierservicetypestringCarrier provider service type.

Commodity Model

AttributeTypeDescription
harmonizedCodestringOptional, a 6-digit HS tariff code/s (harmonized code) for all international shipments.
descriptionstringDescription of the commodity.
unitvaluedecimalValue per unit.
unitsintNumber of commodities.
unitKgdecimalWeight kg per unit.
currencystringDeclared value currency designation, eg NZD, AUD, USD, max length is 3.
countrystringISO Alpha 2 country code for the Country of Manufacture of goods, eg, NZ, AU, US, GB, CN, CA, etc, max length is 2.

Consignment Model

AttributeTypeDescription
connotestringCourier provider connote number.
trackingurlstringDirect url to track and trace this shipment.
connotestringCourier provider connote number.
costdecimalTotal cost of shipment, excluding taxes.
carriertypestringInternal carrier classification.
issaturdaydeliverybooleanWhether saturday delivery service was applied.
isruralbooleanWhether delivery identified as rural.
isovernightbooleanWhether service is overnight where delivery is inter island.
hastrackpaksbooleanWhether this shipment has any trackpaks on it.
outputsstring listList with requested output file as Base64 encoded string.

Contact Address Model


AttributeTypeDescription
buildingnamestringProperty identifier, such as Unit 1, Level 10, Panasonic House, etc, max length is 50.
streetaddressstringStreet number and name, max length is 50.
suburbstringSuburb name, max length is 50.
citystringCity or state name. In countries where there are official states, use use use state abbreviations, such as California = CA, New South Wales = NSW, etc., max length is 50.
postcodestringPostal code, max length is 50.
countrycodestringISO Alpha 2 country code, eg, NZ, AU, US, GB, CN, CA, etc, max length is 2.

Contact Model

AttributeTypeDescription
namestringCompany name or persons name, max length is 50.
contactpersonstringContact person at address, optional, max length is 50.
phonenumberstringPhone number, optional, max length is 50.
isruralbooleanOptional, indicate is the address rural.
deliveryinstructionsstringSpecial instructions to print on the label. For origin this field is ignored, max length is 120.
sendtrackingemailbooleanOptional, is sending tracking email to it?
costcentreidintegerOptional, which cost centre to use.
explicitnotruralbooleanWhen true not rural surcharges are added.
addressobjectJSON Object for contact's address.

Customer Order Model

AttributeTypeDescription
packingslipnostringUnique order number or packing slip number from your system.
consigneestringReceipient name.
address1stringAddress line 1, street number.
address2stringAddress line 2, street name.
suburbstringSuburb name.
citystringCity name or state name. Depending on destination country, if state information is available, this should be the abbreviated state code
postcodestringPost code, for NZ addresses, this can be left blank if unknown.
countrystringISO Alpha 2 country code, eg NZ, AU, US, UK, CN.
delvrefstringOrder number, or customer reference for this order.
delvinstructionsstringAny specific instructions to be printed on the label.
contactnamestringName of person, optional.
contactphonestringPhone number of person, optional.
emailstringEmail address.
isruralstringIs the address a rural delivery address.
notruralstringOverride and declared as not rural.
costcentrestringCost centre to use.
statusobjectCurrent status of the order
productsobjectArray of line products on order

Customer Order Package Model

AttributeTypeDescription
packageStockNamestringSpecify the name of the package here, e.g. GSS-A5 Satchel. The package needs to be previously configured here.
quantityintRequired.
weightKgfloatOptional, if this is not present, will use the default weight of the package.
lengthCmfloatOptional, this parameter will be ignored if the package is a SATCHEL type.
widthCmfloatOptional, this parameter will be ignored if the package is a SATCHEL type.
heightCmfloatOptional, this parameter can be edited even if the package is a SATCHEL type.

Dangerous Goods Model

AttributeTypeDescription
additionalhandinginfostringAdditional handing information, max length is 100.
hazchemcodestringHazchem code.
isradioactivebooleanIs goods radio active.
isRoadTransportbooleanIs goods RoadTransport default true.
cargoaircraftonlybooleanIs Cargo Aircraft Only.
isDGLQbooleanIs dangerous goods limited quantities.
totalQuantitystringTotal quantity of dangerous goods, required, max length is 200.
totalKgdecimalTotal weight KG of dangerous goods, required.
signoffNamestringMax length is 50, optional.
signoffRolestringMax length is 50, optional.
lineitemsobject listA list of dangerous goods item.

Dangerous Goods Item Model

AttributeTypeDescription
descriptionstringmax length is 100
classordivisionstringmax length is 50
unoridnostringmax length is 50
packinggroupstringmax length is 50
subsidaryriskstringmax length is 50
packingstringmax length is 50
packinginstrstringmax length is 50
authorizationstringmax length is 50

Product Model

AttributeTypeDescription
productcodestringSKU of Product.
descriptionstringName of Product.
unitsintegerUnits ordered.
unitvaluedecimalValue per unit.
countryofManufacturestringISO Alpha 2 country code, eg NZ, AU, US, UK, CN.
imageurlstringAn image of the product.
currencystring3 letters code for currency.
alreadySentintegerAmount of product fulfilled prior to this order.
fulfilledQtyintegerMount of product fulfilled on this order.
linetotaldecimalTotal value of this order.
binstringPicking location in warehouse, printed on packlingslip.

Print Output Model

TypeDescription
LABEL_PNG_100X175label is presented as a PNG image with dimension 100mm x 175mm
LABEL_PNG_100X150label is presented as a PNG image with dimension 100mm x 150mm
LABEL_PDF_100X175label is presented as a PDF with dimension 100mm x 175mm
LABEL_PDF_100X150label is presented as a PDF with dimension 100mm x 150mm
LABEL_ZPL_100X150label is presented as a 200DPI ZPL with dimension 100mm x 150mm
LABEL_ZPL_100X150_300DPIlabel is presented as a 300DPI ZPL with dimension 100mm x 150mm
LABEL_PDF_LABELOPElabel is presented as a PDF Labelope. Rotation is not supported
USER_CONFIGUREDDepends on user's selection. Label is presented as a PDF when User's Printing Settingopen in new window is PDF file, or a PRN file is presented if User's Printing Settingopen in new window is GoPrint - PRN Download. If Print Agent is selected, no file is returned and a print is triggered to the agent.
GOPRINT_PRNA PRN file is presented in base64 format. This needs to be decoded to a normal string and saved as a prn file to the folder that GoPrint is monitoring.

Rate Package Model

AttributeTypeDescription
namestringPackage custom name, which are configured in Ship for your account in Ship under Administration > Stock Sizes. If none available, use "custom", max length is 50.
lengthintegerPackage length in centimetres.
widthintegerPackage width in centimetres.
heightintegerPackage height in centimetres.
kgdecimalPackage weight in kilograms.
typestringPackage type, eg, Box, Carton, Satchel, Bag, Pallet, etc, max length is 10.
packagecodestringTrackpack codes, such as DLE, A5, A4 (please consult support before providing a value in this field) This feature is not available on all accounts, max length is 5.

Rate Validation Error Model

AttributeTypeDescription
keystringField name.
valuestringReason of validation failure.

Reject Rate Model

AttributeTypeDescription
carriernamestringCourier provider name.
deliverytypestringCourier delivery/service type.
reasonstringReason why this rates line was ignored.

Shipment Model

AttributeTypeDescription
ConsignmentNostringShipment consignment number.
ConsigneestringShipment consignee name.
ManualTicketbooleanFalse when the shipment originated from an external orders source, such as an integrated system or shopfiy. True when the ticket was create using the GSS UI.
PackingSlipNostringOrder/packing slip number for integrated orders or Delivery Reference when created using the GSS UI.
Pickeddatetime (nullable)Date/time goods picked by courier. Time local to pickup origi.
Delivereddatetime (nullable)Date/time goods delivered to receiver. Time local to delivery address.
StatusstringLatest courier tracking status of the shipment.
TotalCostdecimalTotal cost of the shipment excluding taxes where applicable.
TrackingstringTrack and trace url for live tracking of the order.
OriginZonestringShort code for the origin zone of the consignment.
DestinationZonestringShort code for the destination zone of the consignment.
CostCentrestringName of the associated cost centre.
CarrierstringCarrier name.
DeliveryInstructionsstringInstructions for delivery driver.
IsSaturdayDeliveryboolIf delivery will be attempted on Saturday, when applicable.
IsRuralDeliveryboolIf the destination has been determined to be rural.
IsResidentialDeliverybool(Nullable)If the destination has been determined to be residential.
IsPOBoxboolIf the destination has been determined to be a PO Box, ParcelPod, etc.
CustomerRefstringReference number.
TotalCubicdecimalSum of cubic volume of all items in this consignment. Denoted in m3.
CreatedUtcdatetimeWhen the shipment has been created
CreatedBystringWho created the shipment
TotalKgdecimalSum of weight of all items in this consignment. Denoted in kg.
PartsintNumber of items in this consignment.
IsSignatureRequiredboolTrue if the delivery driver needs to collect a signature.
IsFreightForwardboolTrue if this is a freight-forward consignment.
ManifestedAtdatetime (nullable)Date and time manifestedAt. null when not manifest yet.
ManifestNumberstringManifestNumber of shipment.
PartsintNumber of items in this consignment.
OriginobjectSender details. (Contact Model)
DestinationobjectDestination details. (Contact Model)
Itemsobject listShipment packages. (Shipment Package Model)

Shipment Event Model

AttributeTypeDescription
PartstringShipment part number.
CodestringEvent milestone code
CR - Created
PUP - Picked up from sender
UPD - Courier status update provided
EXP - delivery exception, or service update
DEL - Delivery completed
DescriptionstringEvent description.
eventDtDateTimedate/time of event/activity local to location of event.
LocationstringArea/locality of where the event occurred.

Shipment Package Model

AttributeTypeDescription
PartNointegerThe part number of the consignment - e.g. 1, 2, 3 etc.
LengthCmdecimalLength of the package in centimeters.
WidthCmdecimalWidth of the package in centimeters.
HeightCmdecimalHeight of the package in centimeters.
WeightKgdecimalWeigth of the package in kg.
PackageNamestringName of the package - e.g. GSS A4 Satchel.
Charge_LineTotaldecimalTotal charge determined for this item at the time of consignment creation.
Charge_MarkedUpLineTotaldecimalTotal charge with mark up (if defined) determined for this item at the time of consignment creation.
PickedAtDateTime (Nullable)Date and time this item was picked up - will be null if not yet picked up.
DeliveredAtDateTime (Nullable)Date and time this item was delivered - will be null if not yet delivered.
RatingCodestringThe rating code of this item.
Eventsobject listThe shipment events of this item. Shipment Event Model

Shipment Options Model

AttributeTypeDescription
ContactstringContact name.
streetstringStreet number and name.
suburbstringSuburb name.
citystringCity or state name. In countries where there are official states, use state abbreviations, such as California = CA, New South Wales = NSW, etc.
postcodestringPostal code.
countrycodestringISO Alpha 2 country code, eg, NZ, AU, US, GB, CN, CA, etc

Status Model

AttributeTypeDescription
statusstringCurrent status.
ticketnumberstringIf printed already, the current ticket number.
trackingurlstringUrl to track the order.
pickeddatetimeLocal date time of when shipment was picked up.
delivereddatetimeLocal date time of when shipment was delivered.
manualticketbooleanWhether the ticket was created manually or via an integrated channel feed.

Stock size Model

AttributeTypeDescription
PackageStockIdintegerGoSweetSpot generated an unique identifier for each Stock Size
NamestringName of the stock size.
HeightdecimalHeight of the stock size.
LengthdecimalLength of the stock size.
WidthdecimalWidth of the stock size.
CubicdecimalCubic(M3) of the stock size.
WeightdecimalWeight of the stock size.
TypestringType of the stock size - Box, Carton, etc.
SortintegerSequence of all stock sizes on Ship UI.
IsTrackPakbooleanRepresents if if the stock size is trackable.
HeightAdjustablebooleanRepresents if user can adjust the height of the stock size.
AvailabilitystringRepresents access scope of the stock size:
Me_Only - only current user can use the stock size.
This_Site_Only - users on the site.
Entire_Group - users on the bussiness account.

V2 Address Validation Service Model

AttributeTypeDescription
carrierstringName of carrier.
isresidentialbooleanIndicates if this is a residential service.
isruralbooleanIndicates if this is a rural service.
hassaturdayservicebooleanIndicates if saturday delivery is a possible service.
branchcodestringThe branch code of the branch serving this address.
runnumberstringRun number.

V2 Address Validation Response Model

AttributeTypeDescription
buildingnamestringProperty identifier, such as Unit 1, Level 10, Panasonic House, etc. Max length is 50.
streetaddressstringStreet number and name, max length is 50.
suburbstringSuburb name, max length is 50.
citystringCity or state name. In countries where there are official states, use use use state abbreviations, such as California = CA, New South Wales = NSW, etc. Max Length is 50
postcodestringPostal code. Max Length is 50.
countrycodestringISO Alpha 2 country code, eg, NZ, AU, US, GB, CN, CA, etc. Max length is 2.
AvailableServicesobject listAvailable service for this address.

V2 Shipment Status Event Model

AttributeTypeDescription
eventdatedatetimeDate and time of event. Local to region where it occurred.
codestringEvent status code:
CR - Created
INTL - International Transit
CUST - Customs Cleared
COUR - Courier picked up
COURU - courier update
DEL - Delivered
descriptionstringEvent description.
locationstringLocality of where event took place.
partstringShipment item identifier.

V2 Validation Adress Model

AttributeTypeDescription
buildingnamestringProperty identifier, such as Unit 1, Level 10, Panasonic House, etc. Max length is 50.
streetaddressstringStreet number and name, max length is 50.
suburbstringSuburb name, max length is 50.
citystringCity or state name. In countries where there are official states, use state abbreviations, such as California = CA, New South Wales = NSW, etc. Max Length is 50.
postcodestringPostal code. Max Length is 50.
countrycodestringISO Alpha 2 country code, eg, NZ, AU, US, GB, CN, CA, etc. Max length is 2.
    • Related Articles

    • GoSweetSpot: Labels

      Labels in Queue Description Queue a provided image file for printing via the print application. Requests Method: POST Content Type: application/json URL: https://api-docs.gosweetspot.com/docs/labels/post.html Headers access_key : your unique API key ...
    • GoSweetSpot: Webhooks

      Description GSS can provide feedback to your site using webhooks for certain action triggers. Actions that can be subscribed to include: Shipment created Shipment pickup registered by courier Shipment delivery registered by courier Shipment tracking ...
    • GoSweetSpot: Shipments

      Get Shipment Updates Description Get status updates for shipments. Requests Method: GET Content Type: application/json URL: https://help.nzcouriers.co.nz/gosweetspot-api-integration/gosweetspot-shipments Headers access_key : your unique API key ...
    • GoSweetSpot: Rates

      Description Query to get available courier services and rates for the destination. Requests Method: POST Content Type: application/json URL: https://api-docs.gosweetspot.com/docs/rates/post.html Headers access_key : your unique API key provided by ...
    • GoSweetSpot eCommerce Integrations

      For an up to date list of out-of-the-box integrations & self-service setup instructions, see; gosweetspot.com/integration-platforms-erp