Skip to content

Create document

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
create_datestring, (date-time)required

Date of the inventory transaction

Example:"2026-09-21T23:00:00.000-05:00"
storage_idnumberrequired

Inventory ID

Example:36539
type_idnumberrequired

Document type (sale 1, receipt 3, write-off 7)

Example:1
commentstring

A comment

Example:"Document comment"
curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/storage_operations/documents/{location_id}' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "type_id": 1,
    "comment": "Document comment",
    "storage_id": 36539,
    "create_date": "2026-09-21T23:00:00.000-05:00"
  }'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataobject

Object with data

Example:
{ "id": 22255503, "type_id": 1, "type": { "id": 1, "title": "Sale of goods" }, "storage_id": 36539, "user_id": 999290, "company_id": 4564, "number": 1251, "comment": "Document comment", "create_date": "2026-09-21T23:00:00.000-05:00", "storage": { "id": 36539, "title": "Products" }, "company": { "id": 4564, "title": "Business Example", "country_id": 7, "city_id": 2, "timezone": "-5", "address": "New York, 787 Jackson Drive", "coordinate_lat": 40.73061, "coordinate_lon": -73.935242, "logo": "https://app.alteg.io/uploads/s_120d9410f1472a4e6bdbafefe7eeba42.png", "zip": "", "phones": [], "site": "www.example.com" }, "user": { "id": 999290, "name": "User name", "phone": "+13155550175" } }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "id": 22255503, "type_id": 1, "type": { … }, "storage_id": 36539, "user_id": 999290, "company_id": 4564, "number": 1251, "comment": "Document comment", "create_date": "2026-04-24 20:00:00", "storage": { … }, "company": { … }, "user": { … } }, "meta": [] }