Inventory Moves


Attributes

Attribute Type Description
Read-only attribute
id Integer Unique identifier in Fakturoid
Required attribute
direction String Move direction
Values: in, out
Required attribute
moved_on Datetime Move date
Required attribute
quantity_change Decimal Item quantity in move
Required attribute
purchase_price Decimal Purchase price per unit (without VAT)
purchase_currency String Purchase currency
Values: Currency code (3 characters). See all supported currencies here.
Default: Inherit from account settings
native_purchase_price Decimal Unit purchase price in account currency
retail_price Decimal Retail price per unit
retail_currency String Retail currency
Values: Currency code (3 characters)
List of supported currencies
Default: Inherit from account settings
native_retail_price Decimal Retail price in account currency
private_note Text Private note
Read-only attribute
inventory_item_id Integer Inventory item ID
Read-only attribute
document Object Details about document and line the move is tied to
Default: null
Read-only attribute
created_at DateTime Date and time of move creation
Read-only attribute
updated_at DateTime Date and time of last move update

Document

Attribute Type Description
Read-only attribute
id Integer Document ID
Read-only attribute
type String Type of document
Values: Estimate, Expense, ExpenseGenerator, Generator, Invoice
Read-only attribute
line_id Integer Document line ID
  • Required attribute
    Required attribute (must always be present).
  • Read-only attribute
    Read-only attribute (cannot be changed).
  • Write-only attribute
    Write-only attribute (will not be returned).
  • Unmarked attributes are optional and can be omitted during request.

Inventory Moves Index

If query parameters since, until, updated_since and updated_until are not valid date time format (ISO 8601) the server will respond with 400 Bad Request.

Inventory Move Detail

Create Inventory Move

  • If inventory move is successfuly created the server will respond with 201 Created and a JSON body with its data. A Location header will also be returned which contains a link to the newly created move.
  • Request with invalid data will result in response 422 Unprocessable Content with a JSON body describing errors found in the request.

Update Inventory Move

  • If the inventory move is successfuly updated the server will respond with 200 OK and a JSON body with its data.
  • Request with invalid data will result in response 422 Unprocessable Content with a JSON body describing errors found in the request.
  • When editing a move that is assigned to a document, you will receive 403 Forbidden from the server.

Delete Inventory Move

After deleting a move the server will respond with 204 No Content.

When deleting a move that is assigned to a document, you will receive 403 Forbidden from the server.