Churpy_Etims (1.0)

Churpy_Etims Public API

Download OpenAPI description
Languages
Servers
Mock server
https://docs-etims.churpy.co/_mock/openapi/
API
https://etims.churpy.co/

Branches

Operations

Customers

Operations

Items

Operations

Add business item

Request

Add business item

Bodyapplication/jsonrequired
item_class_codestringrequired

The item class code of the item

Example: "30111600"
item_type_codestringrequired

The item type code of the item

Example: "3"
item_namestringrequired

The name of the item

Example: "Churpy_Etims Service 01"
origin_nation_codestringrequired

The country of origin code of the item

Example: "KE"
package_unit_codestringrequired

The package unit code of the item

Example: "NT"
quantity_unit_codestringrequired

The quantity unit code of the item

Example: "U"
tax_type_codestringrequired

The tax type code of the item

Example: "D"
default_unit_pricenumberrequired

The default price of the item

Example: 1
import_item_refstring

The import item reference of the item

Example: "202302081365045"
is_stock_itemboolean

Indicates whether the item is a stock item or not. Can either be true or false. Default is false

Example: false
callback_urlstring
Example: "https://webhook.site"
curl -i -X POST \
  https://docs-etims.churpy.co/_mock/openapi/items \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "item_class_code": "30111600",
    "item_type_code": "3",
    "item_name": "Churpy_Etims Service 01",
    "origin_nation_code": "KE",
    "package_unit_code": "NT",
    "quantity_unit_code": "U",
    "tax_type_code": "D",
    "default_unit_price": 1,
    "import_item_ref": "202302081365045",
    "is_stock_item": false,
    "callback_url": "https://webhook.site"
  }'

Responses

Item created successfully

Bodyapplication/json
item_class_codestring

The item class code of the item

Example: 30111600
item_type_codestring

The item type code of the item

Example: 3
item_namestring

The name of the item

Example: "Churpy_Etims Service 01"
origin_nation_codestring

The country of origin code of the item

Example: "KE"
package_unit_codestring

The package unit code of the item

Example: "NT"
quantity_unit_codestring

The quantity unit code of the item

Example: "U"
tax_type_codestring

The tax type code of the item

Example: "D"
default_unit_pricenumber

The default price of the item

Example: 1
idstring

The ID of the item

Example: "clw7hepe200j86e177r8yozaf"
etims_item_codestring

The eTIMS item code of the item

Example: "KE3NTU1929751"
is_stock_itemboolean

Indicates whether the item is a stock item or not

Example: false
running_balancenumber

Indicates stock quantity of an item. Starts at zero. Gets to negative values for non-stock items

Example: 0
activeboolean

Indicates the use status of the item.

Example: false
Response
application/json
{ "item_class_code": 30111600, "item_type_code": 3, "item_name": "Churpy_Etims Service 01", "origin_nation_code": "KE", "package_unit_code": "NT", "quantity_unit_code": "U", "tax_type_code": "D", "default_unit_price": 1, "id": "clw7hepe200j86e177r8yozaf", "etims_item_code": "KE3NTU1929751", "is_stock_item": false, "running_balance": 0, "active": false }

Get list of business items

Request

Get list of business items

Query
pagenumber

Current page. Default is 1

Example: page=1
limitnumber

Number of records per page. Default is 10

Example: limit=10
curl -i -X GET \
  'https://docs-etims.churpy.co/_mock/openapi/items?limit=10&page=1' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

List of items returned successfully

Bodyapplication/jsonArray [
paginationobject
dataArray of objects
]
Response
application/json
[ { "pagination": {}, "data": [] } ]

Create item composition

Request

Create item composition

Bodyapplication/jsonrequired
item_idstring
Example: "clu6souzx00mjfasxm4s6cweg"
compositionArray of objects
curl -i -X POST \
  https://docs-etims.churpy.co/_mock/openapi/items/item_composition \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "item_id": "clu6souzx00mjfasxm4s6cweg",
    "composition": [
      {
        "composition_item_id": "clqgg0b3500ans601uam4dyqw",
        "composition_item_quantity": 30
      }
    ]
  }'

Responses

Item composition created successfully

Bodyapplication/jsonArray [
idstringrequired
Example: "clka4fmy30005p5f6ev8jojr6"
item_idstringrequired
Example: "clu6souzx00mjfasxm4s6cweg"
composition_item_idstringrequired
Example: "clqgg0b3500ans601uam4dyqw"
composition_item_quantityintegerrequired
Example: 30
item_codestringrequired
Example: "DT-00359-foq1WiLaNS"
composition_item_codestringrequired
Example: "DT-78727-3Ahsf7EDUc"
registration_idstringrequired
Example: "ADMIN"
registration_namestringrequired
Example: "ADMIN"
application_idstringrequired
Example: "cljytzvci0002p5i2tcdwjabk"
queue_statusstringrequired
Example: "un_queued"
]
Response
application/json
[ { "id": "clka4fmy30005p5f6ev8jojr6", "item_id": "clu6souzx00mjfasxm4s6cweg", "composition_item_id": "clqgg0b3500ans601uam4dyqw", "composition_item_quantity": 30, "item_code": "DT-00359-foq1WiLaNS", "composition_item_code": "DT-78727-3Ahsf7EDUc", "registration_id": "ADMIN", "registration_name": "ADMIN", "application_id": "cljytzvci0002p5i2tcdwjabk", "queue_status": "un_queued" } ]

Update an item

Request

Update an item

Path
itemIdstringrequired

The id of the item to update

Bodyapplication/jsonrequired
activeboolean

The use status of the item. Can either be true or false

Example: true
item_namestring

The name of the item

Example: "Churpy_Etims Product 01"
default_unit_pricenumber

The default price of the item

Example: 1000
curl -i -X PUT \
  'https://docs-etims.churpy.co/_mock/openapi/items/{itemId}' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "active": true,
    "item_name": "Churpy_Etims Product 01",
    "default_unit_price": 1000
  }'

Responses

Item updated successfully

Bodyapplication/json
item_class_codestring

The item class code of the item

Example: 30111600
item_type_codestring

The item type code of the item

Example: 3
item_namestring

The name of the item

Example: "Churpy_Etims Service 01"
origin_nation_codestring

The country of origin code of the item

Example: "KE"
package_unit_codestring

The package unit code of the item

Example: "NT"
quantity_unit_codestring

The quantity unit code of the item

Example: "U"
tax_type_codestring

The tax type code of the item

Example: "D"
default_unit_pricenumber

The default price of the item

Example: 1
idstring

The ID of the item

Example: "clw7hepe200j86e177r8yozaf"
etims_item_codestring

The eTIMS item code of the item

Example: "KE3NTU1929751"
is_stock_itemboolean

Indicates whether the item is a stock item or not

Example: false
running_balancenumber

Indicates stock quantity of an item. Starts at zero. Gets to negative values for non-stock items

Example: 0
activeboolean

Indicates the use status of the item.

Example: true
Response
application/json
{ "item_class_code": 30111600, "item_type_code": 3, "item_name": "Churpy_Etims Service 01", "origin_nation_code": "KE", "package_unit_code": "NT", "quantity_unit_code": "U", "tax_type_code": "D", "default_unit_price": 1, "id": "clw7hepe200j86e177r8yozaf", "etims_item_code": "KE3NTU1929751", "is_stock_item": false, "running_balance": 0, "active": true }

Get a specific item

Request

Get a specific item

Path
itemIdstringrequired

The id of the item to update

curl -i -X GET \
  'https://docs-etims.churpy.co/_mock/openapi/items/{itemId}' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Item returned successfully

Bodyapplication/json
item_class_codestring

The item class code of the item

Example: 30111600
item_type_codestring

The item type code of the item

Example: 3
item_namestring

The name of the item

Example: "Churpy_Etims Service 01"
origin_nation_codestring

The country of origin code of the item

Example: "KE"
package_unit_codestring

The package unit code of the item

Example: "NT"
quantity_unit_codestring

The quantity unit code of the item

Example: "U"
tax_type_codestring

The tax type code of the item

Example: "D"
default_unit_pricenumber

The default price of the item

Example: 1
idstring

The ID of the item

Example: "clw7hepe200j86e177r8yozaf"
etims_item_codestring

The eTIMS item code of the item

Example: "KE3NTU1929751"
is_stock_itemboolean

Indicates whether the item is a stock item or not

Example: false
running_balancenumber

Indicates stock quantity of an item. Starts at zero. Gets to negative values for non-stock items

Example: 0
activeboolean

Indicates the use status of the item.

Example: true
Response
application/json
{ "item_class_code": 30111600, "item_type_code": 3, "item_name": "Churpy_Etims Service 01", "origin_nation_code": "KE", "package_unit_code": "NT", "quantity_unit_code": "U", "tax_type_code": "D", "default_unit_price": 1, "id": "clw7hepe200j86e177r8yozaf", "etims_item_code": "KE3NTU1929751", "is_stock_item": false, "running_balance": 0, "active": true }

Delete a business item

Request

Delete a business item

Path
itemIdstringrequired

The id of the item to update

curl -i -X DELETE \
  'https://docs-etims.churpy.co/_mock/openapi/items/{itemId}' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Item deactivated successfully

Bodyapplication/json
item_class_codestring

The item class code of the item

Example: 30111600
item_type_codestring

The item type code of the item

Example: 3
item_namestring

The name of the item

Example: "Churpy_Etims Service 01"
origin_nation_codestring

The country of origin code of the item

Example: "KE"
package_unit_codestring

The package unit code of the item

Example: "NT"
quantity_unit_codestring

The quantity unit code of the item

Example: "U"
tax_type_codestring

The tax type code of the item

Example: "D"
default_unit_pricenumber

The default price of the item

Example: 1
idstring

The ID of the item

Example: "clw7hepe200j86e177r8yozaf"
etims_item_codestring

The eTIMS item code of the item

Example: "KE3NTU1929751"
is_stock_itemboolean

Indicates whether the item is a stock item or not

Example: false
running_balancenumber

Indicates stock quantity of an item. Starts at zero. Gets to negative values for non-stock items

Example: 0
activeboolean

Indicates the use status of the item.

Example: false
Response
application/json
{ "item_class_code": 30111600, "item_type_code": 3, "item_name": "Churpy_Etims Service 01", "origin_nation_code": "KE", "package_unit_code": "NT", "quantity_unit_code": "U", "tax_type_code": "D", "default_unit_price": 1, "id": "clw7hepe200j86e177r8yozaf", "etims_item_code": "KE3NTU1929751", "is_stock_item": false, "running_balance": 0, "active": false }

Create business items from purchase

Request

Create business items from purchase

Bodyapplication/jsonrequired
purchase_idstringrequired
Example: "clk5c8y380000p5wtae2mz7gr"
itemsArray of objectsrequired
items[].​item_sequenceintegerrequired
Example: 1
items[].​unit_priceintegerrequired
Example: 300
items[].​is_stock_itemboolean
Example: false
curl -i -X POST \
  https://docs-etims.churpy.co/_mock/openapi/items/from_purchase \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "purchase_id": "clk5c8y380000p5wtae2mz7gr",
    "items": [
      {
        "item_sequence": 1,
        "unit_price": 300,
        "is_stock_item": false
      }
    ]
  }'

Responses

Items created successfully

Bodyapplication/json
dataArray of objects
paginationobject
Response
application/json
{ "data": [ {} ], "pagination": { "current_page": 1, "has_next": false, "limit": 1, "total_count": 1, "total_pages": 1 } }

Notices

Operations

Purchases

Operations

Sales

Operations

Stock

Operations