GoSweetSpot: Book a Pickup

GoSweetSpot: Book a Pickup

Description

Query to book a driver to pick up from your location. They will make a best effort attempt to pick up on the same day - however, if you book after 2PM it is recommended that you book again in the morning if they don't pick up on the same day. Each call to this endpoint will ping the driver, so do not call this endpoint excessively.

This query is supported for the following companies:

  • Castle Parcels
  • Post Haste Couriers
  • New Zealand Couriers
  • Mainstream Freight
  • Fedex
  • New Zealand Post
  • First Global Logistics

Mainstream Freight

When booking for Mainstream Freight you must manifest the consignments first using this endpoint.

TIL Freight

TIL Freight cannot be booked through this endpoint. However, when you manifest TIL Freight consignments, it will be booked simultaneously. Using this endpoint for manifesting.

Requests

Method: POST
Content Type: application/json
URL: https://api-docs.gosweetspot.com/docs/pickup-booking/post.html

Headers

access_key : your unqiue api key provided by GSS.
site_id : which site you are requesting action for.

Parameters

ParameterTypeDestination
CarrierstringSpecify the carrier to book a pickup for. Supported values: "NZCouriers". This value can be obtained from the AvailableServices endpoint. Mandatory field.
Consignmentsarray of stringRepresenting the consignments to be picked up. Not mandatory for New Zealand Couriers. You can include it, but it will do nothing.
TotalKgTotalKgIndicating the total weight of parcels. Not mandatory for New Zealand Couriers. You can include it, but it will do nothing.
PartsintegerIndicating the total number of parcels. This field is mandatory when booking for FirstGlobal. You can include it for other carriers, but it will do nothing.


Return format

A string indicating whether or not the pickup request was lodged successfully.

Request example

Please note some fields are mandatory for different carriers.

curl --location 'https://api.gosweetspot.com/api/bookpickup' \
--header 'access_key;' \
--header 'site_id;' \
--header 'Content-Type: application/json' \
--data '{
  "Carrier": "PostHaste"
}'

Response example

Binary blocks below have been trimmed for presentation.

Success. Your booking has been accepted. #NC12345678

    • Related Articles

    • GoSweetSpot: How to book a courier pickup

      If you do not have a regular pickup (auto call) scheduled, you can book a pickup from the GoSweetSpot platform as required. Go to the Reprints & Manifests page Click Book Pickup You may have multiple options in the drop-down box i.e. NZ Couriers or ...
    • GoSweetSpot: Adding and Importing to your Address Book

      What is the AddressBook used for? The Addressbook is where you can import and manage your company’s address book, including: Find and download the address file import template Import and validate an address book Create new validated addresses (Add ...
    • GoSweetSpot: API introduction

      In this Documentation: Authentication Rate Limiting Sandbox Account Data Types and Formats Concepts Common Use Cases Endpoints Tracing Your Calls FAQ Freight API provides programmatic access to GSS functionality and content. The API is REST API and ...
    • GoSweetSpot: How to create a Return Ticket

      In some cases, it's necessary to create a Return Ticket, also known as Reverse Logistics. How to create a Return Ticket Go to Create, then select Returns & Freight Forward Click to Zoom Complete the Pickup Address fields and select package size Click ...
    • GoSweetSpot: Save contacts to Address Book

      1. Go to the Addressbook The Addressbook is located under the Administration tab on your GoSweetSpot homepage. Click to Zoom 2. Save your frequent shippers' addresses Save your frequent shippers' addresses and contact details for future use and ...