GetCustomerProducts

Description

The database of the shop does not contain the customer's own articlenumbers but if this REST API function is implemented the shop can facilitate the use of the customer's own product numbers.

This function can be implemented if the ERP system supports the storage of the customer own article numbers for the articles in the ERP.

REST API:

URL: /Shoxl/v1/GetCustomerProducts Method: POST

Changes in ShoxlRestApiSwagger_v16

  • A new field "context" is introduced in the request body. When configured this object contains key value pairs (e.g. divisionCode).

Request body:

GetCustomerProductsRequest{

}

Example:

{
  "accountNumber": "128",
  "productNumbers": [ "90001", "80001", "70001" ],
  "context": {
    "divisionCode": "string"
  }  
}

Response body:

GetCustomerProductsResult{

}

CustomerProduct{

}

Example:

{
  "errorCode": "string",
  "errorDescription": "string",
  "customerProducts": [
    {
      "productNumber": "90001",
      "ownProductNumber": "4321"
    }.
    {
      "productNumber": "70001",
      "ownProductNumber": "123456789"
    }
  ],
}