Inventory
Get Operation by ID
Retrieve a single inventory document.
GET
/
operations
/
{id}
Get Operation by ID
curl --request GET \
--url https://integrations.clopos.com/open-api/v2/operations/{id} \
--header 'x-token: <api-key>'const options = {method: 'GET', headers: {'x-token': '<api-key>'}};
fetch('https://integrations.clopos.com/open-api/v2/operations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://integrations.clopos.com/open-api/v2/operations/{id}"
headers = {"x-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": 123,
"user_id": 123,
"venue_id": 123,
"to_venue_id": 123,
"supplier_id": 123,
"supplier_remain": 123,
"storage_id": 123,
"from_storage_id": 123,
"type": 1,
"status": 1,
"inventory_status": 0,
"force_apply": true,
"parent_id": 123,
"is_system": true,
"returns_id": 123,
"reason": "<string>",
"description": "<string>",
"invoice_number": "<string>",
"tax_rate": 123,
"discount_rate": 123,
"tax_value": 123,
"discount_value": 123,
"subtotal": 123,
"operated_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z"
}
}Was this page helpful?
⌘I
Get Operation by ID
curl --request GET \
--url https://integrations.clopos.com/open-api/v2/operations/{id} \
--header 'x-token: <api-key>'const options = {method: 'GET', headers: {'x-token': '<api-key>'}};
fetch('https://integrations.clopos.com/open-api/v2/operations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://integrations.clopos.com/open-api/v2/operations/{id}"
headers = {"x-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": 123,
"user_id": 123,
"venue_id": 123,
"to_venue_id": 123,
"supplier_id": 123,
"supplier_remain": 123,
"storage_id": 123,
"from_storage_id": 123,
"type": 1,
"status": 1,
"inventory_status": 0,
"force_apply": true,
"parent_id": 123,
"is_system": true,
"returns_id": 123,
"reason": "<string>",
"description": "<string>",
"invoice_number": "<string>",
"tax_rate": 123,
"discount_rate": 123,
"tax_value": 123,
"discount_value": 123,
"subtotal": 123,
"operated_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z"
}
}