Skip to main content

api/availableservices

Less than 1 minute

api/availableservices

Description

Get the available services associated with the access_key token.

Request

  • Method: GET
  • Content Type: application/json
  • URL: https://api.gosweetspot.com/api/availableservices

Headers

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

Parameters

  • None

Return format

A JSON Object of available carriers.

Root Object

  • Carriers - Array of Carrier.

Carrier

AttributeTypeDescription
AccountNumberstringAccount number of carrier
CarrierIdintegerId of carrier
CarrierNamestringName of carrier
CarrierTypestringtype of carrier
ServicesArray of stringsavailable services of carrier

Request example


curl --location 'https://api.gosweetspot.com/api/availableservices' \
--header 'access_key;' \
--header 'site_id;'

Response example


{
  "Carriers": [
    {
      "CarrierId": 779,
      "CarrierName": "FedEx",
      "CarrierType": "FedEx",
      "Services": [
        "All"
      ],
      "AccountNumber": "1234"
    },
    {
      "CarrierId": 432,
      "CarrierName": "Post Haste",
      "CarrierType": "PostHaste",
      "Services": [
        "Overnight",
        "Standard",
        "2 Day Inter Island"
      ],
      "AccountNumber": "1234"
    },
    {
      "CarrierId": 805,
      "CarrierName": "NZ Post",
      "CarrierType": "NZPost",
      "Services": [
        "Air Parcels",
        "Air Parcels Small",
        "Air Satchel Tracked",
        "Intl Courier",
        "Intl Courier (EX)"
      ],
      "AccountNumber": "1234"
    },
    {
      "CarrierId": 205,
      "CarrierName": "Mainstream AKL",
      "CarrierType": "Mainstream",
      "Services": [
        "Standard",
        "Standard m3+",
        "Bulk Freight"
      ],
      "AccountNumber": "1234"
    },
    {
      "CarrierId": 542,
      "CarrierName": "NZ Couriers",
      "CarrierType": "NZCouriers",
      "Services": [
        "Overnight",
        "Standard",
        "2 Day Inter Island"
      ],
      "AccountNumber": "1234"
    }
  ]
}

Last update: