Skip to main content
Skip table of contents

EP API - Writing Endpoints (POST)

The APIs in this chapter are for updating data into the Wisefish Business Central system. These are used for…

  • posting produced item

  • posting a consumed item

  • posting a received item (and other possibilities, such as transport between locations are sometimes also implemented as customized solutions).


Creating an entry

Data is created with a POST request where the body contains the properties for all entry fields to be populated:

JSON
POST
[server]/api/wisefish/wiFiEP/v1.0/companies([CompanyGUID])/[endpoint]

Body:
{[The input is a JSON object of the format the API expects. The names of the properties must match exactly the API.]}

Example:
To create a produced item, i.e. send the info to the inbound table, from where it will be processed later:

CODE
POST
https://containers.wisefish.com/BC24BjarteyW1CU1rest/api/wisefish/wiFiEP/v1.0/companies(cf9f7b85-dd11-ef11-9f8b-6045bde9cc61)/inboundInnovaEntries

Body:
{
    "soapID": "107",
    "packetId":5145,
    "producerId": "A373" ,
    "masters": 1,
    "weight": 25,
    "nominal": 25,
    "quantity": 1,
    "quantityunit": "PACK",
    "itemId": "112600",
    "palletNo": "S099000",
    "sscc": "00137300000002332307",
    "lotid": "2025-12-12",
    "warehouseId": "SALT",
    "productionDate": "2025-12-12T00:00:00Z",
    "registrationDate": "2023-12-12T00:00:00Z"
}

Updating an entry

It depends on each API, if it is possible to update existing entries.

Response

The response of the API is a JSON object will all the properties of the object that was created.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.