Skip to content

Create Transaction

Request

Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Bodyapplication/jsonrequired
amountnumberrequired

Quantity, greater than 0. The document type sets the direction of the stock movement.

Example:1
document_idnumber, (float)required

Document ID

Example:22254960
product_idnumberrequired

Product ID

Example:232674
cost_per_unitnumber, (float)

Unit cost

Example:100
discountnumber

Discount in %, from 0 to 100

Example:10
costnumber, (float)

Total transaction amount

Example:90
unit_idnumber

Unit ID. Defaults to the sale unit of the product. Pass the service unit to count the quantity in service units.

operation_unit_typenumber

Unit the quantity is counted in: 1 sale unit, 2 service unit. Derived from unit_id when omitted.

Enum:12
Example:1
team_member_idnumber

ID of the Team Member who sold the Product. Stored for a sale only.

Example:26781
client_idnumber

ID of the customer who bought the product. Stored for a sale only.

Example:0
supplier_idnumber

Supplier ID from List Location Suppliers. Stored for a receipt only.

Example:0
paidboolean

When true, a payment transaction for the line is created on the cash register account_id, which is then required.

account_idnumber

Cash register ID for the payment. Used with paid.

commentstring

A comment

Example:"Transaction comment"
good_special_numberstring

Membership/subscription number. Required when selling a loyalty membership product to a specified client; must be unique.

curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/storage_operations/goods_transactions/{location_id}' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "document_id": 22254960,
    "product_id": 232674,
    "amount": 1,
    "cost_per_unit": 100,
    "discount": 10,
    "cost": 90,
    "operation_unit_type": 1,
    "team_member_id": 26781,
    "client_id": 0,
    "supplier_id": 0,
    "comment": "Transaction comment"
  }'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataobject(Inventory operation product line)

Object with data

Example:
{ "id": 3428010, "document_id": 22254960, "type_id": 1, "type": { "id": 1, "title": "Sale of goods" }, "company_id": 4564, "good_id": 232674, "amount": -1, "cost_per_unit": 100, "discount": 10, "cost": 90, "unit_id": 1, "storage_id": 36539, "supplier_id": 0, "client_id": 0, "master_id": 26781, "create_date": "2026-09-21 23:00:00", "comment": "Transaction comment", "deleted": false, "good": { "id": 232674, "title": "Edition De Luxe", "unit": "PC.", "value": "delete yy", "label": "delete yy", "article": "", "category": "goose category", "category_id": 303603, "salon_id": 91372, "good_id": 15086312, "cost": 500, "unit_id": 216760, "unit_short_title": "PC", "service_unit_id": 216760, "service_unit_short_title": "PC", "actual_cost": 0, "unit_actual_cost": 0, "unit_actual_cost_format": "0 USD", "unit_equals": 1, "barcode": "", "loyalty_abonement_type_id": "0", "loyalty_certificate_type_id": "0", "loyalty_allow_empty_code": true, "actual_amounts": [], "last_change_date": "2026-03-05T18:21:34-0500" }, "storage": { "id": 36539, "title": "Products" }, "sale_unit": null, "service_unit": null, "supplier": [], "client": [], "master": { "id": 26781, "name": "Angelina Jolie" }, "unit": { "id": 1, "title": "Thing", "short_title": "PC." } }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "id": 3428010, "document_id": 22254960, "type_id": 1, "type": { … }, "company_id": 4564, "good_id": 232674, "amount": -1, "cost_per_unit": 100, "discount": 10, "cost": 90, "unit_id": 1, "storage_id": 36539, "supplier_id": 0, "client_id": 0, "master_id": 26781, "create_date": "2026-09-21 23:00:00", "last_change_date": "2026-02-01T12:00:00-0500", "comment": "Transaction comment", "deleted": false, "good": { … }, "storage": { … }, "supplier": [], "client": [], "master": { … }, "unit": { … } }, "meta": [] }