Bayer Sellout Management (2.0.0)

Download OpenAPI specification:Download

To access the endpoints, request your OAuth2 authentication credentials.

RawData

Input Raw Data

Add a new raw data to the system.

Request Body schema: application/json
senderUuid
required
string <uuid>

Sender identifier in sellout base

required
object (Dealer)
required
Array of objects (Invoices) [ 1 .. 50 ] items

Responses

Request samples

Content type
application/json
{
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e",
  • "dealer": {
    },
  • "invoices": [
    ]
}

Response samples

Content type
application/json
{
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e",
  • "dealer": {
    },
  • "invoices": [
    ],
  • "sender": {
    },
  • "notes": "This is a sample note.",
  • "traceId": "d7d7b772-3f67-4fad-b889-cafb57a51313"
}

Raw data status

Returns the raw data status by date or traceId.

Request Body schema: application/json
senderUuid
required
string

Sender identifier in sellout base

initialDate
string

For a raw data search after a date, use the format (YYYY-MM-DD)

endDate
string

For a raw data search before a date, use the format (YYYY-MM-DD)

traceId
string

Search by the Trace ID from raw data

Responses

Request samples

Content type
application/json
Example
{
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e",
  • "initialDate": "2022-02-20",
  • "endDate": "2022-03-22"
}

Response samples

Content type
application/json
{
  • "statusCode": 0,
  • "body": [
    ]
}

DataQualityError

Get dataquality errors

Get all dataquality errors by senderUuid.

Request Body schema: application/json
filterString
string

Filter by some text

orderBy
string

Order by a column

orderByDirection
string

Choose a direction order , can be DESC or ASC

page
required
number

Choose the page to recover

perPage
required
number

Choose the number of items to return

date
string

Date to filter

startDate
string

Start date to filter

endDate
string

End date to filter

senderUuid
required
string

Sender identifier in sellout base

ownerId
number

Owner identifier in sellout base

ownerType
string

Owner type in sellout base

Responses

Request samples

Content type
application/json
Example
{
  • "filterString": "",
  • "page": 1,
  • "perPage": 10,
  • "startDate": "2021-01-01",
  • "endDate": "2021-12-31",
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e"
}

Response samples

Content type
application/json
{
  • "statusCode": 200,
  • "body": {
    }
}

Products

Get products

Get all products by senderUuid.

Request Body schema: application/json
filterString
string

Filter by some text

isActive
boolean

Filter by status

orderBy
string

Order by a column

orderByDirection
string

Choose a direction order , can be DESC or ASC

page
required
number

Choose the page to recover

perPage
required
number

Choose the number of items to return

senderUuid
required
string

Sender identifier in sellout base

Responses

Request samples

Content type
application/json
{
  • "filterString": "",
  • "isActive": true,
  • "orderBy": "id",
  • "orderByDirection": "DESC",
  • "page": 1,
  • "perPage": 10,
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e"
}

Response samples

Content type
application/json
{
  • "statusCode": 0,
  • "body": {
    }
}

DocumentTypes

Get document types

Get all document types by profileToken or senderUuid.

Request Body schema: application/json
id
number

Get document type by id

filterString
string

Filter by some text

isActive
boolean

Filter by status

orderBy
string

Order by a column

orderByDirection
string

Choose a direction order , can be DESC or ASC

page
required
number

Choose the page to recover

perPage
required
number

Choose the number of items to return

senderUuid
required
string

Sender identifier in sellout base

Responses

Request samples

Content type
application/json
Example
{
  • "id": 1,
  • "filterString": "",
  • "isActive": true,
  • "orderBy": "id",
  • "orderByDirection": "DESC",
  • "page": 1,
  • "perPage": 10,
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e"
}

Response samples

Content type
application/json
{
  • "statusCode": 0,
  • "body": {
    }
}

MeasureUnits

Get measure units

Get all measure units.

Request Body schema: application/json
filterString
string

Filter by some text

isActive
boolean

Filter by status

orderBy
string

Order by a column

orderByDirection
string

Choose a direction order , can be DESC or ASC

page
number

Choose the page to recover

perPage
number

Choose the number of items to return

senderUuid
required
string

Sender identifier in sellout base

Responses

Request samples

Content type
application/json
{
  • "filterString": "",
  • "isActive": true,
  • "orderBy": "id",
  • "orderByDirection": "DESC",
  • "page": 1,
  • "perPage": 10,
  • "senderUuid": "58931a85-4d4c-44fa-aa75-0d5d897ce38e"
}

Response samples

Content type
application/json
{
  • "statusCode": 0,
  • "body": {
    }
}

Output

GraphQL

PREENCHER

Request Body schema: application/json
required

asdasd

query
required
string

Responses

Request samples

Content type
application/json
{
  • "query": "{\n invoices(\n pagination: { page: 1, perPage: 100 }\n created: { from: \"2010-01-01\", to: \"2026-01-01\" }\n date: { from: \"2010-01-01\", to: \"2026-01-01\" }\n countryCode: \"MX\"\n skipTermsAndConditions: true\n ) {\n TotalItems\n SellOutDetails {\n id\n sentAt\n uuid\n code\n series\n paymentTerm\n observation\n sellerCode\n rawDataId\n dataQualityStatus\n invoiceNumber\n invoiceDate\n status\n operationTypeId\n sender {\n id\n name\n uuid\n phone\n email\n address {\n id\n uuid\n street\n number\n postalCode\n city\n state\n country {\n code\n subCode\n culture\n profile\n }\n }\n document {\n number\n type {\n name\n }\n }\n }\n dealer {\n name\n uuid\n phone\n email\n internalCode\n address {\n uuid\n street\n number\n postalCode\n city\n state\n country {\n code\n subCode\n culture\n profile\n }\n }\n document {\n number\n type {\n name\n }\n }\n }\n soldTo {\n name\n document {\n number\n type {\n name\n }\n }\n address {\n uuid\n street\n number\n postalCode\n city\n state\n country {\n code\n subCode\n culture\n profile\n }\n }\n }\n currency {\n code\n }\n invoiceItems {\n uuid\n id\n quantity\n unitPrice\n discount\n amount\n extraFields {\n key\n value\n }\n productInfo {\n code\n package\n description\n category\n }\n exchange {\n currency\n rate\n }\n product {\n id\n manufacturerCode\n country {\n code\n }\n description\n packedUnits\n culture\n measureUnit {\n id\n name\n }\n }\n measureUnit {\n id\n name\n }\n }\n }\n }\n}\n"
}

Response samples

Content type
application/json
{
  • "statusCode": 0,
  • "data": {
    }
}