Webhooks
You may find descriptions of endpoints for work with webhooks bellow.
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
GET /v2/webhooks HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Accept: */*
{
"statusCode": 200,
"message": "text",
"data": [
{
"id": 1,
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST",
"registeredAt": "2022-04-08T09:19:05.000Z",
"unregisteredAt": "text"
}
]
}
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
https//api.domain.net/receiving/eshopReceivingId
Type of webhook
UPDATE_RECEIVING
Possible values: true
POST
Possible values: POST /v2/webhooks HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 121
{
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST"
}
{
"statusCode": 200,
"message": "text",
"data": {
"id": 1,
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST",
"registeredAt": "2022-04-08T09:19:05.000Z",
"unregisteredAt": "text"
}
}
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
https//api.domain.net/receiving/eshopReceivingId
Type of webhook
UPDATE_RECEIVING
Possible values: true
POST
Possible values: PUT /v2/webhooks/{id} HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 121
{
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST"
}
{
"statusCode": 200,
"message": "text",
"data": {
"id": 1,
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST",
"registeredAt": "2022-04-08T09:19:05.000Z",
"unregisteredAt": "text"
}
}
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
GET /v2/webhooks/{id} HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Accept: */*
{
"statusCode": 200,
"message": "text",
"data": {
"id": 1,
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST",
"registeredAt": "2022-04-08T09:19:05.000Z",
"unregisteredAt": "text"
}
}
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
PUT /v2/webhooks/{id}/activate HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Accept: */*
{
"statusCode": 200,
"message": "text",
"data": {
"id": 1,
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST",
"registeredAt": "2022-04-08T09:19:05.000Z",
"unregisteredAt": "text"
}
}
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
PUT /v2/webhooks/{id}/deactivate HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Accept: */*
{
"statusCode": 200,
"message": "text",
"data": {
"id": 1,
"url": "https//api.domain.net/receiving/eshopReceivingId",
"webhookType": "UPDATE_RECEIVING",
"active": true,
"method": "POST",
"registeredAt": "2022-04-08T09:19:05.000Z",
"unregisteredAt": "text"
}
}
This is the eshop key you receive during onboarding.
Token you get from calling /users/login
Payload is not allowed for DELETE requests
DELETE /v2/webhooks/{id} HTTP/1.1
Host: gw.new.skladon.net
authorization: text
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"statusCode": 1,
"message": "text",
"data": "text"
}
More detail of working with webhooks is described here.
WebhooksLast updated