BimpДовідка

Замовлення покупця: методи API Bimp

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

МетодЩо робить
POST /org2/invoiceForCustomerPayment/api-insert
POST /org2/invoiceForCustomerPayment/api-readStatusesA request to retrieve the available statuses for a customer order document
POST /org2/invoiceForCustomerPayment/api-updateStatusA request to update the status of a customer order document
POST /org2/invoiceForCustomerPayment/api-saveExternalIdCreates or updates a mapping between a BIMP order and its unique identifier in an external system. Typically called after an order has been successfully created or matched in the external source.
POST /org2/invoiceForCustomerPayment/api-readExternalIdRetrieves detailed information about a single BIMP invoice using its corresponding identifier from an external system. Used for verifying the status and details of a specific synced order.
POST /org2/invoiceForCustomerPayment/api-readByExternalIdRetrieves detailed information about an order using its identifier from an external system. Used to sync the current status, amount, and comments of an order within BIMP.
POST /org2/invoiceForCustomerPayment/api-readExternalIdsListRetrieves a list of existing mappings between BIMP invoices and external system identifiers. Used to review already synchronized orders.
POST /org2/invoiceForCustomerPayment/api-readWithoutExternalIdRetrieves a list of customer invoices (orders) that do not have a mapping for the specified external source. Primarily used to identify new orders that need to be synchronized with an external system.
POST /org2/invoiceForCustomerPayment/api-deleteExternalIdRemoves the link between a BIMP order and its external identifier. Used to correct synchronization errors or re-map an order to a different source.
POST /org2/invoiceForCustomerPayment/api-readListA request to view a list of customer orders
POST /org2/invoiceForCustomerPayment/api-readA request to obtain detailed information for a particular customer order
POST /org2/invoiceForCustomerPayment/api-createA request to create a new customer order
POST /org2/invoiceForCustomerPayment/api-updateA request to update or add information to an existing customer order
POST /org2/invoiceForCustomerPayment/api-cancelCancel a customer order document

api-insert

POST /org2/invoiceForCustomerPayment/api-insert

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

ПолеТипОбов’язковеОпис
dateTimestring (iso-date-time)
shipmentDateTimestring (date-time)Дата відвантаження
projectUuidstring (uuid)так
managerUuidstring (uuid)так
contractUuidstring (uuid)так
lineOfBusinessUuidstring (uuid)такВид діяльності
organizationUuidstring (uuid)так
warehouseUuidstring (uuid)так
customerUuidstring (uuid)так
statusUuidstring (uuid)так
priceListUuidstring (uuid)
bankAccountstring (uuid)Банківський рахунок
mutualSettlementsTypestring (uuid)Вид взаєморозрахунків
addVATbooleanтакДодати НДС
setUpByContractbooleanтакЧи створений на основі договору
stocksobject[]так
stocks[].nomenclatureUuidstring (uuid)так
stocks[].percentageDiscountnumberтакПроцент знижки
stocks[].reservenumberтакЗарезервована кількість
stocks[].countnumberтакКількість в одиницях виміру номенклатури
stocks[].costnumberтакВартість за одну одиницю без знижки
stocks[].warehouseUuidstring (uuid)
commentstring
documentNumberstringНомер документу

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

ПолеТипОпис
uuidstring (uuid)
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-insert' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"projectUuid":"00000000-0000-0000-0000-000000000000","managerUuid":"00000000-0000-0000-0000-000000000000","contractUuid":"00000000-0000-0000-0000-000000000000","lineOfBusinessUuid":"00000000-0000-0000-0000-000000000000","organizationUuid":"00000000-0000-0000-0000-000000000000","warehouseUuid":"00000000-0000-0000-0000-000000000000","customerUuid":"00000000-0000-0000-0000-000000000000","statusUuid":"00000000-0000-0000-0000-000000000000","addVAT":true,"setUpByContract":false,"stocks":[{}]}'

api-readStatuses

POST /org2/invoiceForCustomerPayment/api-readStatuses

A request to retrieve the available statuses for a customer order document

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

ПолеТипОпис
[].uuidstring (uuid)
[].namestring
[].colorstring
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-readStatuses' \
  -H 'access-token: <токен компанії>'

api-updateStatus

POST /org2/invoiceForCustomerPayment/api-updateStatus

A request to update the status of a customer order document

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

ПолеТипОбов’язковеОпис
invoiceUuidstring (uuid)такA unique identifier for the Invoice for customer payment, obtainable from the /invoiceForCustomerPayment/api-readList request
statusUuidstring (uuid)так
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-updateStatus' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"invoiceUuid":"00000000-0000-0000-0000-000000000000","statusUuid":"00000000-0000-0000-0000-000000000000"}'

api-saveExternalId

POST /org2/invoiceForCustomerPayment/api-saveExternalId

Creates or updates a mapping between a BIMP order and its unique identifier in an external system. Typically called after an order has been successfully created or matched in the external source.

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

ПолеТипОбов’язковеОпис
orderUuidstring (uuid)такThe unique internal identifier (GUID) of the order in BIMP.
sourcestringтакIdentifier of the external system (e.g., “prom”, “shopify”). The value is case-insensitive and automatically normalized.
externalIdstringтакThe unique order identifier assigned by the external system.

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

ПолеТипОпис
successbooleanIndicates whether the mapping between the BIMP Customer Order and the external system identifier was successfully saved.
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-saveExternalId' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"orderUuid":"00000000-0000-0000-0000-000000000000","source":"string","externalId":"string"}'

api-readExternalId

POST /org2/invoiceForCustomerPayment/api-readExternalId

Retrieves detailed information about a single BIMP invoice using its corresponding identifier from an external system. Used for verifying the status and details of a specific synced order.

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

ПолеТипОбов’язковеОпис
orderUuidstring (uuid)такA unique identifier for the Invoice for customer payment, obtainable from the /invoiceForCustomerPayment/api-readList request
sourcestringтакIdentifier of the external system (e.g. “prom”) to check against.
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-readExternalId' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"orderUuid":"00000000-0000-0000-0000-000000000000","source":"string"}'

api-readByExternalId

POST /org2/invoiceForCustomerPayment/api-readByExternalId

Retrieves detailed information about an order using its identifier from an external system. Used to sync the current status, amount, and comments of an order within BIMP.

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

ПолеТипОбов’язковеОпис
sourcestringтакIdentifier of the external source system (e.g., “prom”, “shopify”).
externalIdstringтакThe unique order identifier assigned by the external system.
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-readByExternalId' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"source":"string","externalId":"string"}'

api-readExternalIdsList

POST /org2/invoiceForCustomerPayment/api-readExternalIdsList

Retrieves a list of existing mappings between BIMP invoices and external system identifiers. Used to review already synchronized orders.

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

ПолеТипОбов’язковеОпис
paginationobjectтак
pagination.offsetnumberтакBegin from {offset} elements
pagination.countnumberтакLimit of paginated elemets
sourcestringFilter mappings by a specific external system (e.g. “prom”).
orderUuidstring (uuid)A unique identifier for the Invoice for customer payment, obtainable from the /invoiceForCustomerPayment/api-readList request

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

ПолеТипОпис
[].orderUuidstring (uuid)Unique internal identifier (GUID) of the order in the BIMP system.
[].datestringOrder creation date and time in ISO 8601 format.
[].numberstringInternal human-readable order number (e.g., “SO-00001”).
[].sourcestringIdentifier of the external source system (e.g., “prom”, “shopify”, “rozetka”).
[].externalIdstringThe unique identifier assigned to this order by the external system.
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-readExternalIdsList' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"pagination":{"offset":0,"count":10}}'

api-readWithoutExternalId

POST /org2/invoiceForCustomerPayment/api-readWithoutExternalId

Retrieves a list of customer invoices (orders) that do not have a mapping for the specified external source. Primarily used to identify new orders that need to be synchronized with an external system.

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

ПолеТипОбов’язковеОпис
paginationobjectтак
pagination.offsetnumberтакBegin from {offset} elements
pagination.countnumberтакLimit of paginated elemets
sourcestringтакIdentifier of the external system (e.g. “prom”) to check against.

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

ПолеТипОпис
[].orderUuidstring (uuid)Unique internal identifier (GUID) of the order in the BIMP system.
[].numberstringInternal human-readable order number (e.g., “SO-00001”).
[].datestringOrder creation date and time in ISO 8601 format.
[].amountnumberTotal amount of the order.
[].commentstringOptional internal comment or customer notes.
[].counterpartyNamestringThe name of the customer (counterparty).
[].counterpartyUuidstring (uuid)Unique internal identifier (GUID) of the customer in the BIMP system.
[].currencystringDocument currency code (e.g., “UAH”, “USD”).
[].statusNamestringCurrent display name of the order status (e.g., “Pending”, “Processing”).
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-readWithoutExternalId' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"pagination":{"offset":0,"count":10},"source":"string"}'

api-deleteExternalId

POST /org2/invoiceForCustomerPayment/api-deleteExternalId

Removes the link between a BIMP order and its external identifier. Used to correct synchronization errors or re-map an order to a different source.

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

ПолеТипОбов’язковеОпис
orderUuidstring (uuid)такA unique identifier for the Invoice for customer payment, obtainable from the /invoiceForCustomerPayment/api-readList request
sourcestringIdentifier of the external system (e.g. “prom”) to remove mapping for.
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-deleteExternalId' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"orderUuid":"00000000-0000-0000-0000-000000000000"}'

api-readList

POST /org2/invoiceForCustomerPayment/api-readList

A request to view a list of customer orders

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

ПолеТипОбов’язковеОпис
paginationobjectтак
pagination.offsetnumberтакBegin from {offset} elements
pagination.countnumberтакLimit of paginated elemets
statusstring (uuid)
periodableobject[]Period range as a tuple of two ISO 8601 date-time strings in UTC (e.g. ‘2012-10-05T14:48:00.000Z’)
changeStatusTimeobject[]Period range as a tuple of two ISO 8601 date-time strings in UTC (e.g. ‘2012-10-05T14:48:00.000Z’)
organizationsstring (uuid)[]A unique identifier for the Organization, obtainable from the /organization/api-readList request
numberstringFilter by document number

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

ПолеТипОпис
[].uuidstring (uuid)A unique uuid key for an Invoice for customer payment document
[].docNumberstringThe document’s number. Use this field if you need to specify a custom number
[].namestring
[].statusstring (uuid)
[].commentstringAn optional text field for any additional notes or comments related to the document
[].datestringThe document’s date in the format ‘YYYY-MM-DDTHH:MM:SS’ (e.g., ‘2025-05-16T09:17:49’)
[].buyerstring (uuid)A unique identifier for a counterparty of type ‘isCustomer’.You can retrieve this UUID using the /counterparty/api-readList request
[].sumOrderednumberTotal amount of document (ordered goods)
[].currencystring (uuid)A unique uuid key for a currency
[].contractstring (uuid)The unique identifier for the counterparty’s contract, specified in the buyer key. You can retrieve this UUID using the /contract/api-readList request
[].TTNstringThe number of the TTN
[].quantityShippednumber
[].quantityOrderednumber
[].sumShippednumberTotal amount of document (shipped goods)
[].sumPayednumberTotal payed amount
[].organizationstring (uuid)A unique identifier for the Organization, obtainable from the /organization/api-readList request
[].productsstring (uuid)[]
[].EntryStatusnumber
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-readList' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"pagination":{"offset":0,"count":10}}'

api-read

POST /org2/invoiceForCustomerPayment/api-read

A request to obtain detailed information for a particular customer order

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

ПолеТипОбов’язковеОпис
uuidstring (uuid)такA unique uuid key for an Invoice for customer payment document

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

ПолеТипОпис
uuidstring (uuid)
commentstring
buyerstring (uuid)
datestring (date-time)
namestring
organizationstring (uuid)
quantityOrderednumber
quantityShippednumber
statusstring (uuid)
sumOrderednumberTotal amount of the order
sumPayednumber
sumShippednumber
TTNstring
docNumberstring
contractstring (uuid)
lineOfBusinessstring (uuid)
warehousestring (uuid)
VATaccountedboolean
VATamountnumber
processingbooleanAn informational flag marking the document as related to tolling (processing)
productsobject[]
products[].nomenclatureUuidstring (uuid)
products[].countnumber
products[].VATamountnumber
products[].costnumber
products[].amountnumber
products[].discountnumber
products[].discountPercentagenumber
products[].shipednumber
products[].reservenumber
products[].modificationstring (uuid) | null
products[].partystring (uuid) | null
products[].serialNumbersstring (uuid)[]Serial number UUIDs from party.serialNumbers (column «Серія»)
products[].machineryobject
products[].machinery.uuidstring
products[].machinery.namestring
products[].commentstring
products[].contentstring
products[].usersnumber
products[].monthsnumber
accountingProductsobject[]
accountingProducts[].nomenclatureUuidstring (uuid)
accountingProducts[].countnumber
accountingProducts[].VATamountnumber
accountingProducts[].costnumber
accountingProducts[].amountnumber
accountingProducts[].discountnumber
accountingProducts[].discountPercentagenumber
accountingProducts[].shipednumber
accountingProducts[].reservenumber
accountingProducts[].modificationstring (uuid) | null
accountingProducts[].partystring (uuid) | null
accountingProducts[].serialNumbersstring (uuid)[]Serial number UUIDs from party.serialNumbers (column «Серія»)
accountingProducts[].machineryobject
accountingProducts[].machinery.uuidstring
accountingProducts[].machinery.namestring
accountingProducts[].commentstring
accountingProducts[].contentstring
accountingProducts[].usersnumber
accountingProducts[].monthsnumber
curl -X POST 'https://app.bimpsoft.com/org2/invoiceForCustomerPayment/api-read' \
  -H 'access-token: <токен компанії>' \
  -H 'Content-Type: application/json' \
  -d '{"uuid":"00000000-0000-0000-0000-000000000000"}'

api-create

POST /org2/invoiceForCustomerPayment/api-create

A request to create a new customer order

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

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

api-update

POST /org2/invoiceForCustomerPayment/api-update

A request to update or add information to an existing customer order

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

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

api-cancel

POST /org2/invoiceForCustomerPayment/api-cancel

Cancel a customer order document

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

ПолеТипОбов’язковеОпис
uuidstring (uuid)такA unique uuid key for an Invoice for customer payment document

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

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

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