Przejdź do głównej zawartości

Uruchom akcję własną dla zamówienia

POST
/api/v3/UserEvents/{userEventId}/Call
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/UserEvents/1/Call \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "context": "example", "order": { "id": 1 }, "owner": { "email": "example", "userName": "example", "fullName": "example", "id": 1, "roles": [ "example" ] } }'

Wywołuje akcję własną w kontekście wskazanego zamówienia. Zbliżone do runOrderMacroTrigger w BaseLinker.

userEventId
wymagane
integer format: int64
Typ treściapplication/json
object
context
string
nullable
order
object
id
integer format: int64
owner
object
email
string
nullable
userName
string
nullable
fullName
string
nullable
id
integer format: int64
roles
Array<string>
nullable
Examplegenerated
{
"context": "example",
"order": {
"id": 1
},
"owner": {
"email": "example",
"userName": "example",
"fullName": "example",
"id": 1,
"roles": [
"example"
]
}
}

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
scope
string
nullable
scopeValue
string
nullable
silentMode
boolean
ajsChainId
string
nullable
ajsChainVisits
string
nullable
Example
{
"status": "New"
}