Skip to content

List integrations

POST
/integrations.list
curl --request POST \
--url https://api.sancho-wms.pl/v1/integrations.list \
--header 'Authorization: Bearer <token>'

Takes no input and lists the account’s integrations this key may use, with their type and status. Their id is the integrationId the other operations take; a list that spans several integrations reads only those whose status is connected and whose scopes cover its data.

Successful response

Media typeapplication/json
IntegrationList
Array<object>
IntegrationListItem
object
id
required
number
name
required
string
code
required
string
scopes
required
Array<string>
type
required
string
Allowed values: comarch-optima erp-next comarch-bmp fakturownia custom
config
required
Any of:
object
colorRules
Array<object>
object
entity
required
string
Allowed values: warehouse product
regex
required
string
color
required
string
Allowed values: blue green amber red purple teal orange grape pink cyan
erpNext
object
baseUrl
required
string
company
required
string
comarchOptima
object
operators
required
Array<object>
object
userId
required
number
operatorId
required
number
code
required
string
name
required
string
goodsIssued
object
scanMode
required
object
external
required
string
Allowed values: build collect
internal
required
string
Allowed values: build collect
status
required
string
Allowed values: connected error connecting

Example

[
{
"type": "comarch-optima",
"config": {
"colorRules": [
{
"entity": "warehouse",
"color": "blue"
}
],
"goodsIssued": {
"scanMode": {
"external": "build",
"internal": "build"
}
}
},
"status": "connected"
}
]

Bad request

Media typeapplication/json
error.BAD_REQUEST

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "BAD_REQUEST",
"message": "Bad request",
"issues": []
}

Unauthorized

Media typeapplication/json
error.UNAUTHORIZED

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "UNAUTHORIZED",
"message": "Unauthorized",
"issues": []
}

Payment required

Media typeapplication/json
error.PAYMENT_REQUIRED

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "PAYMENT_REQUIRED",
"message": "Payment required",
"issues": []
}

Forbidden

Media typeapplication/json
error.FORBIDDEN

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "FORBIDDEN",
"message": "Forbidden",
"issues": []
}

Not found

Media typeapplication/json
error.NOT_FOUND

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}

Unprocessable content

Media typeapplication/json
error.UNPROCESSABLE_CONTENT

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "UNPROCESSABLE_CONTENT",
"message": "Unprocessable content",
"issues": []
}

Too many requests

Media typeapplication/json
error.TOO_MANY_REQUESTS

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "TOO_MANY_REQUESTS",
"message": "Too many requests",
"issues": []
}

Internal server error

Media typeapplication/json
error.INTERNAL_SERVER_ERROR

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}

Service unavailable

Media typeapplication/json
error.SERVICE_UNAVAILABLE

The error information

object
message
required

The error message

string
code
required

The error code

string
issues

An array of issues that were responsible for the error

Array<object>
object
message
required
string

Example

{
"code": "SERVICE_UNAVAILABLE",
"message": "Service unavailable",
"issues": []
}