BimpДовідка

Склади: методи API Bimp

Методи API Bimp для ресурсу «Склади» (/org2/warehouse/…): 4 методи. Базова адреса: https://app.bimpsoft.com. Усі запити, крім входу, передають токен компанії в заголовку access-token — див. Початок роботи з API.

МетодЩо робить
POST /org2/warehouse/api-readListA request to view a list of warehouses
POST /org2/warehouse/api-readA request to obtain detailed information for a particular warehouse
POST /org2/warehouse/api-createA request to create a warehouse
POST /org2/warehouse/api-updateA request to update an existing warehouse

api-readList

POST /org2/warehouse/api-readList

A request to view a list of warehouses

Тіло запиту (JSON)

ПолеТипОбов’язковеОпис
paginationobjectтак
pagination.offsetnumberтакBegin from {offset} elements
pagination.countnumberтакLimit of paginated elemets
mainbooleanIf specified, filters warehouses by main flag (true = only main, false = only non-main)

Відповідь: поле data

ПолеТипОпис
[].uuidstring (uuid)
[].namestring
[].mainbooleanIndicates whether this warehouse is marked as main
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-readList' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"pagination":{"offset":0,"count":10}}'

api-read

POST /org2/warehouse/api-read

A request to obtain detailed information for a particular warehouse

Тіло запиту (JSON)

ПолеТипОбов’язковеОпис
uuidstring (uuid)такA unique uuid key for the warehouse

Відповідь: поле data

ПолеТипОпис
uuidstring (uuid)A unique uuid key for the warehouse
namestringWarehouse name
codestringWarehouse code
mainbooleanIndicates whether this warehouse is marked as main
archivedbooleanWhether the warehouse is archived
activebooleanWhether the warehouse is active
publicWarehousebooleanWhether the warehouse is public
predefinedbooleanWhether the warehouse is a system/predefined one
typenumberWarehouse type
commentstringAn optional text field for any additional notes or comments related to the document
addressstringWarehouse address
lineOfBusinessstring (uuid)A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request
priceListstring (uuid)A unique identifier for the Price List, obtainable from the /priceList/api-readList request
cashRegisterstring (uuid)The unique identifier for the payment entity type, obtainable from the /bankAccounts/api-readList request OR from /cashRegistry/api-readList request
parentstring (uuid)A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request
counterpartystring (uuid)A unique identifier for the Counterparty, obtainable from the /counterparty/api-readList request
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-read' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'

api-create

POST /org2/warehouse/api-create

A request to create a warehouse

Тіло запиту (JSON)

ПолеТипОбов’язковеОпис
namestringтакWarehouse name
mainbooleanIndicates whether this warehouse is marked as main
archivedbooleanWhether the warehouse is archived
activebooleanWhether the warehouse is active
publicWarehousebooleanWhether the warehouse is public
typenumberWarehouse type
commentstringAn optional text field for any additional notes or comments related to the document
addressstringWarehouse address
lineOfBusinessstring (uuid)A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request
priceListstring (uuid)A unique identifier for the Price List, obtainable from the /priceList/api-readList request
cashRegisterstring (uuid)The unique identifier for the payment entity type, obtainable from the /bankAccounts/api-readList request OR from /cashRegistry/api-readList request
parentstring (uuid)A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request
counterpartystring (uuid)A unique identifier for the Counterparty, obtainable from the /counterparty/api-readList request

Відповідь: поле data

ПолеТипОпис
uuidstring (uuid)
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-create' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"name":"string"}'

api-update

POST /org2/warehouse/api-update

A request to update an existing warehouse

Тіло запиту (JSON)

ПолеТипОбов’язковеОпис
uuidstring (uuid)такA unique uuid key for the warehouse
namestringWarehouse name
mainbooleanIndicates whether this warehouse is marked as main
archivedbooleanWhether the warehouse is archived
activebooleanWhether the warehouse is active
publicWarehousebooleanWhether the warehouse is public
typenumberWarehouse type
commentstringAn optional text field for any additional notes or comments related to the document
addressstringWarehouse address
lineOfBusinessstring (uuid)A unique identifier for the Line of Business, obtainable from the /lineOfBusiness/api-readList request
priceListstring (uuid)A unique identifier for the Price List, obtainable from the /priceList/api-readList request
cashRegisterstring (uuid)The unique identifier for the payment entity type, obtainable from the /bankAccounts/api-readList request OR from /cashRegistry/api-readList request
parentstring (uuid)A unique identifier for the Warehouse, obtainable from the /warehouse/api-readList request
responsiblestring (uuid)A unique identifier for the Employee, obtainable from the /employee/api-readList request
counterpartystring (uuid)A unique identifier for the Counterparty, obtainable from the /counterparty/api-readList request

Відповідь: поле data

ПолеТипОпис
uuidstring (uuid)
curl -X POST 'https://app.bimpsoft.com/org2/warehouse/api-update' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'

Інтерактивна документація з можливістю надіслати тестовий запит: https://app.bimpsoft.com/docs. Специфікація OpenAPI оновлюється разом із Bimp; ця сторінка згенерована з неї автоматично.