Security
BearerPartnerUser
Quantity, greater than 0. The document type sets the direction of the stock movement.
Example:1
Unit ID. Defaults to the sale unit of the product. Pass the service unit to count the quantity in service units.
Unit the quantity is counted in: 1 sale unit, 2 service unit. Derived from unit_id when omitted.
Enum:12
Example:1
ID of the Team Member who sold the Product. Stored for a sale only.
Example:26781
When true, a payment transaction for the line is created on the cash register account_id, which is then required.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/storage_operations/goods_transactions/{location_id}
- Productionhttps://api.alteg.io/api/v1/storage_operations/goods_transactions/{location_id}
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"
}'OK
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." } }
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": [] }