Przejdź do głównej zawartości

Utwórz lub zaktualizuj definicję połączenia

PUT
/api/v3/ConnectionDefinitions/{id}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/ConnectionDefinitions/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "extensionName": "example", "extensionVendor": "example", "extensionDescription": "example", "name": "example", "description": "example", "isDisabled": true, "isEditable": true, "isHidden": true, "kind": "example", "isShop": true, "createShipmentOperation": "example", "deleteDisabled": true, "protocolDisabled": true, "requestPickupDisabled": true, "generatePickupForm": true, "trackingNumberTransfer": true, "invoiceTransfer": true, "connectionDefaultsFormEnabled": true, "requiresToSelectConnectionFirstBeforeCreatingAShipment": true, "isSystemTool": true, "setupAccount": "example", "deleteConnectionOperation": "example", "setupShipment": "example", "trackingLinks": { "PL": "https://www.someexamplelink.pl?trackingId=#TRACKING_ID#" }, "jwt": "example", "uspl": "example", "positionOverwriteModule": { "showPositionOverwriteModule": true, "showOverwriteNameOption": true, "showOverwriteProductIdOption": true, "showOverwriteWeightOption": true, "showOverwriteEanOption": true, "showOverwriteSkuOption": true, "showOverwriteTaxRateOption": true }, "showStockSyncModule": true, "showPriceSyncModule": true, "relatedDefinitions": [ "example" ], "inventorySettings": { "syncQuantityEqualsToSrInventory": true, "setupMaxQuantity": true, "endOfferBelow": true, "increaseAndSubstractFromStock": true } }'

Zapisuje definicję połączenia o wskazanym ID. Używane głównie przez panel Sellrocket.

id
wymagane
string
Typ treściapplication/json
object
extensionName
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
trackingNumberTransfer
boolean
invoiceTransfer
boolean
connectionDefaultsFormEnabled
boolean
requiresToSelectConnectionFirstBeforeCreatingAShipment
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
Example
{
"PL": "https://www.someexamplelink.pl?trackingId=#TRACKING_ID#"
}
jwt
string
nullable
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 that are installed/uninstalled together with this one.

Array<string>
nullable
inventorySettings
object
syncQuantityEqualsToSrInventory
boolean
setupMaxQuantity
boolean
endOfferBelow
boolean
increaseAndSubstractFromStock
boolean

No Content

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"
}