Przejdź do głównej zawartości

Pobierz definicje połączeń

GET
/api/v3/ConnectionDefinitions
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/ConnectionDefinitions \
--header 'Authorization: Bearer <token>'

Zwraca definicje dostępnych typów integracji (marketplace, sklepy, kurierzy itp.), opcjonalnie filtrowane po rodzaju.

kind
Array<string>

Success

Typ treściapplication/json
Array<object>
object
id
string
nullable
extensionName
string
nullable
extensionState
string
nullable
extensionVendor
string
nullable
extensionDescription
string
nullable
name
string
nullable
description
string
nullable
isDisabled
boolean
isEditable
boolean
isHidden
boolean
kind
string
nullable
isShop
boolean
createShipmentOperation
string
nullable
deleteDisabled
boolean
protocolDisabled
boolean
requestPickupDisabled
boolean
generatePickupForm
boolean
connectionDefaultsFormEnabled
boolean
requiresToSelectConnectionFirstBeforeCreatingAShipment
boolean
trackingNumberTransfer
boolean
invoiceTransfer
boolean
isSystemTool
boolean
setupAccount
nullable
deleteConnectionOperation
nullable
setupShipment
nullable
trackingLinks

Tracking links with format - key: iso country code, value: hyperlink, example: “PL”: “http://www.someexamplelink.pl?trackingId=#TRACKING_ID#”

object
key
additional properties
string
uspl
string
nullable
positionOverwriteModule
object
showPositionOverwriteModule
boolean
showOverwriteNameOption
boolean
showOverwriteProductIdOption
boolean
showOverwriteWeightOption
boolean
showOverwriteEanOption
boolean
showOverwriteSkuOption
boolean
showOverwriteTaxRateOption
boolean
showStockSyncModule

Optional. Defaults to NULL. Used by UI.

boolean
nullable
showPriceSyncModule

Optional. Defaults to NULL. Used by UI.

boolean
nullable
relatedDefinitions

Optional. Ids of other connection definitions installed/uninstalled together with this one.

Array<string>
nullable
inventorySettings
object
syncQuantityEqualsToSrInventory
boolean
setupMaxQuantity
boolean
endOfferBelow
boolean
increaseAndSubstractFromStock
boolean
Example
[
{
"trackingLinks": {
"PL": "https://www.someexamplelink.pl?trackingId=#TRACKING_ID#"
}
}
]

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Unauthorized

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}