SpotGo
  1. Freight
SpotGo
  • Getting started
    • Introduction
    • Authentication
    • Opportunities vs Orders
    • Mappings
  • Order
    • Orders Processing
    • /api/v1/orders/file
      POST
    • /api/v1/orders
      POST
    • /api/v2/orders/{orderId}
      GET
    • /api/v1/orders/{orderId}/file
      GET
  • Opportunity
    • Opportunities (Freight Qoutes)
    • /api/v1/opportunities
      POST
    • /api/v1/opportunities/file
      POST
    • /api/v1/opportunities/image
      POST
    • /api/v1/opportunities/{opportunityId}
      GET
    • /api/v1/opportunities/{opportunityId}/custom
      GET
    • /api/v1/opportunities/{opportunityId}/default
      GET
  • Freight
    • Freight publish
    • /api/v1/freights
      POST
    • /api/v1/freights/{freightId}
      PUT
    • /api/v1/freights/{freightId}
      DELETE
  • Vehicles
    • /api/v1/vehicles
      POST
    • /api/v1/vehicles
      GET
    • /api/v1/vehicles/{vehicleId}
      PUT
    • /api/v1/vehicles/{vehicleId}
      DELETE
    • /api/v1/vehicles/{vehicleId}
      GET
  • Feedback
    • /api/v1/feedback
  • Webhook
    • Webhooks flow
    • /api/v1/webhooks
    • /api/v1/webhooks
    • /api/v1/webhooks/{subscriptionId}
  • Documents
    • Documents processing
    • /api/v1/documents
    • /api/v1/documents/{documentId}/file
    • /api/v1/documents/invoice/{documentId}
    • /api/v1/documents/receipt/{documentId}
    • /api/v1/documents/cmr/{documentId}
  • AccountManagement
    • /api/v1/accounts
    • /api/v1/accounts/block
  1. Freight

/api/v1/freights/{freightId}

PUT
https://api-test.spotgo.eu/api/v1/freights/{freightId}
Freight
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api-test.spotgo.eu/api/v1/freights/' \
--header 'Content-Type: application/json; x-api-version=1.0' \
--data-raw '{
    "externalNumber": "string",
    "sources": [
        0
    ],
    "useAlternativeLocations": true,
    "locations": [
        {
            "sequence": 0,
            "type": "Loading",
            "address": {
                "countryCode": "string",
                "postalCode": "string",
                "city": "string",
                "coordinates": {
                    "latitude": 0,
                    "longitude": 0
                }
            },
            "period": {
                "startDate": "2019-08-24T14:15:22Z",
                "endDate": "2019-08-24T14:15:22Z"
            }
        }
    ],
    "requirements": {
        "trailerTypes": [
            0
        ],
        "vehicleTypes": [
            0
        ],
        "loadingSide": "Back",
        "capacity": 0,
        "pallets": 0,
        "palletsExchange": true,
        "ldm": 0,
        "ftl": true,
        "temperature": {
            "max": 0,
            "min": 0,
            "regime": "Off"
        }
    },
    "payment": {
        "from": 0,
        "currency": "string",
        "growTo": 0,
        "term": 0,
        "until": "2019-08-24T14:15:22Z",
        "updateRate": "string"
    },
    "comments": "string",
    "internalComments": "string",
    "customer": {
        "name": "string",
        "price": 0,
        "currency": "string"
    }
}'
Response Response Example
{}

Request

Path Params
freightId
string <uuid>
required
Body Params application/json; x-api-version=1.0
externalNumber
string  | null 
optional
sources
array[integer <int32>] | null 
optional
useAlternativeLocations
boolean 
optional
locations
array[object (LocationSubmitModel) {4}]  | null 
optional
sequence
integer <int32>
optional
type
enum<string> 
optional
Allowed values:
LoadingUnloading
address
object (LocationAddressSubmitModel) 
optional
period
object (LocationPeriodSubmitModel) 
optional
requirements
object (RequirementsSubmitModel) 
optional
trailerTypes
array[integer <int32>] | null 
optional
vehicleTypes
array[integer <int32>] | null 
optional
loadingSide
enum<string> 
optional
Allowed values:
BackTopSideAll
capacity
number <float>
optional
pallets
integer <int32> | null 
optional
palletsExchange
boolean 
optional
ldm
number <float> | null 
optional
ftl
boolean 
optional
temperature
object (TemperatureSubmitModel) 
optional
payment
object (PaymentSubmitModel) 
optional
from
number <double>
optional
currency
string  | null 
optional
growTo
number <double> | null 
optional
term
integer <int32> | null 
optional
until
string <date-time> | null 
optional
updateRate
string <date-span> | null 
optional
comments
string  | null 
optional
internalComments
string  | null 
optional
customer
object (CustomerSubmitModel) 
optional
name
string  | null 
optional
price
number <double> | null 
optional
currency
string  | null 
optional
Examples

Responses

🟠400Bad Request
text/plain; x-api-version=1.0
Bad Request
Body
object {0}
Modified at 2025-05-04 13:27:46
Previous
/api/v1/freights
Next
/api/v1/freights/{freightId}
Built with