Importuj akcję automatyczną z BaseLinkera
POST
/api/v4/AjsAopsBuilder/ImportBeelConfig
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v4/AjsAopsBuilder/ImportBeelConfig';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"trigger":{"eventName":"example","customEventId":"example"},"conditions":[{"type":"example","data":{}}],"actions":[{"type":"example","data":{}}],"config":{"id":"example","isEnabled":"example","groupId":"example","groupName":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v4/AjsAopsBuilder/ImportBeelConfig \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "trigger": { "eventName": "example", "customEventId": "example" }, "conditions": [ { "type": "example", "data": {} } ], "actions": [ { "type": "example", "data": {} } ], "config": { "id": "example", "isEnabled": "example", "groupId": "example", "groupName": "example" } }'Konwertuje definicję akcji automatycznej z BaseLinkera na konfigurację skryptu automatycznego Sellrocket. Przydatne przy migracji z BaseLinkera.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
trigger
wymagane
object
eventName
string
customEventId
string
conditions
wymagane
Array<object>
object
type
wymagane
string
data
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
actions
wymagane
Array<object>
object
type
wymagane
string
data
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
config
object
id
string
isEnabled
string
groupId
string
groupName
string
Examplegenerated
{ "trigger": { "eventName": "example", "customEventId": "example" }, "conditions": [ { "type": "example", "data": {} } ], "actions": [ { "type": "example", "data": {} } ], "config": { "id": "example", "isEnabled": "example", "groupId": "example", "groupName": "example" }}object
trigger
wymagane
object
eventName
string
customEventId
string
conditions
wymagane
Array<object>
object
type
wymagane
string
data
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
actions
wymagane
Array<object>
object
type
wymagane
string
data
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
config
object
id
string
isEnabled
string
groupId
string
groupName
string
Examplegenerated
{ "trigger": { "eventName": "example", "customEventId": "example" }, "conditions": [ { "type": "example", "data": {} } ], "actions": [ { "type": "example", "data": {} } ], "config": { "id": "example", "isEnabled": "example", "groupId": "example", "groupName": "example" }}object
trigger
wymagane
object
eventName
string
customEventId
string
conditions
wymagane
Array<object>
object
type
wymagane
string
data
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
actions
wymagane
Array<object>
object
type
wymagane
string
data
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
config
object
id
string
isEnabled
string
groupId
string
groupName
string
Examplegenerated
{ "trigger": { "eventName": "example", "customEventId": "example" }, "conditions": [ { "type": "example", "data": {} } ], "actions": [ { "type": "example", "data": {} } ], "config": { "id": "example", "isEnabled": "example", "groupId": "example", "groupName": "example" }}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
triggerJs64
wymagane
string
businessActionJs64
wymagane
string
triggerJsonString
string
businessActionJsonString
string
dsl
object
context
wymagane
string
trigger
wymagane
object
events
wymagane
Array<string>
condition
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object>
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object> recursive
actions
wymagane
object
data
Array<object>
object
command
string
input
string
output
string
parameters
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
condition
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object>
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object> recursive
actions
wymagane
Array
One of:
object
command
wymagane
string
parameters
wymagane
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
onErrorCancelSubsequentActionsExecution
boolean
object
command
wymagane
string
parameters
wymagane
object
value
wymagane
string
object
command
wymagane
string
parameters
wymagane
object
object
command
wymagane
string
parameters
object
updates
wymagane
Array<object>
object
path
wymagane
string
value
wymagane
string
op
string
object
command
wymagane
string
parameters
object
comment
wymagane
string
object
command
wymagane
string
parameters
object
comment
wymagane
string
object
command
wymagane
string
parameters
wymagane
object
url
wymagane
string
useRetries
boolean
breakOnFail
boolean
breakOnFailTrigger
integer format: int64
object
command
wymagane
string
parameters
object
emailTemplateId
wymagane
integer format: int64
smerpConnectionId
wymagane
string
subject
string
textBody
string
htmlBody
string
toEmail
Array<string>
emailFrom
string
emailOrderField
string
object
command
string
parameters
object
symbol
wymagane
string
rate
wymagane
number format: double
object
command
wymagane
string
parameters
object
status
wymagane
string
paymentName
wymagane
string
triggerLog
object
result
wymagane
string
logs
wymagane
Array<string>
actionsLog
object
result
wymagane
string
logs
wymagane
Array<string>
config
object
id
string
isEnabled
string
groupId
string
groupName
string
Array<object>
object
triggerJs64
wymagane
string
businessActionJs64
wymagane
string
triggerJsonString
string
businessActionJsonString
string
dsl
object
context
wymagane
string
trigger
wymagane
object
events
wymagane
Array<string>
condition
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object>
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object> recursive
actions
wymagane
object
data
Array<object>
object
command
string
input
string
output
string
parameters
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
condition
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object>
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object> recursive
actions
wymagane
Array
One of:
object
command
wymagane
string
parameters
wymagane
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
onErrorCancelSubsequentActionsExecution
boolean
object
command
wymagane
string
parameters
wymagane
object
value
wymagane
string
object
command
wymagane
string
parameters
wymagane
object
object
command
wymagane
string
parameters
object
updates
wymagane
Array<object>
object
path
wymagane
string
value
wymagane
string
op
string
object
command
wymagane
string
parameters
object
comment
wymagane
string
object
command
wymagane
string
parameters
object
comment
wymagane
string
object
command
wymagane
string
parameters
wymagane
object
url
wymagane
string
useRetries
boolean
breakOnFail
boolean
breakOnFailTrigger
integer format: int64
object
command
wymagane
string
parameters
object
emailTemplateId
wymagane
integer format: int64
smerpConnectionId
wymagane
string
subject
string
textBody
string
htmlBody
string
toEmail
Array<string>
emailFrom
string
emailOrderField
string
object
command
string
parameters
object
symbol
wymagane
string
rate
wymagane
number format: double
object
command
wymagane
string
parameters
object
status
wymagane
string
paymentName
wymagane
string
triggerLog
object
result
wymagane
string
logs
wymagane
Array<string>
actionsLog
object
result
wymagane
string
logs
wymagane
Array<string>
config
object
id
string
isEnabled
string
groupId
string
groupName
string
Example
[ { "dsl": { "context": "Empty", "trigger": { "condition": { "type": "Single", "operator": "Equals" } }, "actions": { "data": [ { "command": "NewConst" } ], "condition": { "type": "Single", "operator": "Equals" }, "actions": [ { "command": "UpdateOrderStatus" } ] } }, "triggerLog": { "result": "Unknown" }, "actionsLog": { "result": "Unknown" } }]Array<object>
object
triggerJs64
wymagane
string
businessActionJs64
wymagane
string
triggerJsonString
string
businessActionJsonString
string
dsl
object
context
wymagane
string
trigger
wymagane
object
events
wymagane
Array<string>
condition
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object>
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object> recursive
actions
wymagane
object
data
Array<object>
object
command
string
input
string
output
string
parameters
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
condition
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object>
object
type
string
leftOperand
string
rightOperand
string
operator
string
inner
Array<object> recursive
actions
wymagane
Array
One of:
object
command
wymagane
string
parameters
wymagane
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
onErrorCancelSubsequentActionsExecution
boolean
object
command
wymagane
string
parameters
wymagane
object
value
wymagane
string
object
command
wymagane
string
parameters
wymagane
object
object
command
wymagane
string
parameters
object
updates
wymagane
Array<object>
object
path
wymagane
string
value
wymagane
string
op
string
object
command
wymagane
string
parameters
object
comment
wymagane
string
object
command
wymagane
string
parameters
object
comment
wymagane
string
object
command
wymagane
string
parameters
wymagane
object
url
wymagane
string
useRetries
boolean
breakOnFail
boolean
breakOnFailTrigger
integer format: int64
object
command
wymagane
string
parameters
object
emailTemplateId
wymagane
integer format: int64
smerpConnectionId
wymagane
string
subject
string
textBody
string
htmlBody
string
toEmail
Array<string>
emailFrom
string
emailOrderField
string
object
command
string
parameters
object
symbol
wymagane
string
rate
wymagane
number format: double
object
command
wymagane
string
parameters
object
status
wymagane
string
paymentName
wymagane
string
triggerLog
object
result
wymagane
string
logs
wymagane
Array<string>
actionsLog
object
result
wymagane
string
logs
wymagane
Array<string>
config
object
id
string
isEnabled
string
groupId
string
groupName
string
Example
[ { "dsl": { "context": "Empty", "trigger": { "condition": { "type": "Single", "operator": "Equals" } }, "actions": { "data": [ { "command": "NewConst" } ], "condition": { "type": "Single", "operator": "Equals" }, "actions": [ { "command": "UpdateOrderStatus" } ] } }, "triggerLog": { "result": "Unknown" }, "actionsLog": { "result": "Unknown" } }]
