SpotGo
  1. Webhook
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
      POST
    • /api/v1/webhooks
      GET
    • /api/v1/webhooks/{subscriptionId}
      DELETE
  • 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. Webhook

/api/v1/webhooks

POST
https://api-test.spotgo.eu/api/v1/webhooks
Webhook
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-test.spotgo.eu/api/v1/webhooks' \
--header 'Content-Type: application/json; x-api-version=1.0' \
--data-raw '{
    "eventType": "All",
    "callbackUrl": "string",
    "callbackAuth": {
        "type": "None",
        "basic": {
            "username": "string",
            "password": "string"
        },
        "apiKey": {
            "headerName": "string",
            "headerValue": "string"
        },
        "oauth2": {
            "tokenUrl": "string",
            "properties": {
                "property1": "string",
                "property2": "string"
            }
        }
    }
}'
Response Response Example
200 - Example 1
{}

Request

Body Params application/json; x-api-version=1.0
eventType
enum<string> 
optional
Allowed values:
AllOrderOpportunityInvoice
callbackUrl
string  | null 
optional
callbackAuth
object (WebhookAuthentication) 
optional
type
enum<string> 
optional
Allowed values:
NoneBasicApiKeyOAuth2
basic
object (BasicAuthentication) 
optional
apiKey
object (ApiKeyAuthentication) 
optional
oauth2
object (Oauth2Authentication) 
optional
Examples

Responses

🟢200OK
text/plain; x-api-version=1.0
OK
Body
object {0}
🟠400Bad Request
Modified at 2025-05-06 05:08:57
Previous
Webhooks flow
Next
/api/v1/webhooks
Built with