Churpy_Etims Public API
Churpy_Etims Public API
curl -i -X POST \ https://docs-etims.churpy.co/_mock/openapi/stock/master \ -H 'Content-Type: application/json' \ -H 'X-API-Key: YOUR_API_KEY_HERE' \ -d '{ "item_id": "cls8iu3rd002qs601af4qzb9g", "remaining_quantity": 100 }'
{ "id": "cls8iu3rd002qs601af4qzb9g", "item_code": "KE1PD-U230411121122", "remaining_quantity": 300 }
curl -i -X GET \ https://docs-etims.churpy.co/_mock/openapi/stock \ -H 'X-API-Key: YOUR_API_KEY_HERE'
{ "pagination": { "current_page": 1, "total_pages": 1, "has_next": false, "limit": 10, "total_count": 2 }, "data": [ { … } ] }
curl -i -X POST \ https://docs-etims.churpy.co/_mock/openapi/stock \ -H 'Content-Type: application/json' \ -H 'X-API-Key: YOUR_API_KEY_HERE' \ -d '{ "original_stored_and_released_number": 10, "registration_type_code": "M", "stored_and_released_code": "13", "occurred_date": "20230510", "customer_branch_office_id": "cln8mpz9i001ls601ulo7fq4q", "items": [ { "id": "cls8irr4l001vs601cbf200bv", "quantity": 20, "price": 100, "discount_amount": 0 } ] }'
{ "stored_and_released_code": 13, "total_item_count": 2, "total_supply_price": 3575.99, "total_vat": 424.01, "total_amount": 4000, "registration_type_code": "M", "original_stored_and_released_number": 10, "stored_and_released_number": 1, "occurred_date": "2023-05-10T00:00:00.000Z", "customer_branch_office_id": "00", "list": [ { … } ] }
curl -i -X POST \ https://docs-etims.churpy.co/_mock/openapi/stock/adjust \ -H 'Content-Type: application/json' \ -H 'X-API-Key: YOUR_API_KEY_HERE' \ -d '{ "item_id": "clk04eudo0001p5qd132yc8s9", "quantity": 1, "action": "add", "type": "adjustment" }'
{ "id": "clk5n53vg0001p5ud5wsv3344" }
curl -i -X POST \ https://docs-etims.churpy.co/_mock/openapi/stock/transfer \ -H 'Content-Type: application/json' \ -H 'X-API-Key: YOUR_API_KEY_HERE' \ -d '{ "item_id": "clk04eudo0001p5qd132yc8s9", "branch_id": "clk04eudo0001p5qd132yc8s9", "quantity": 1 }'
{ "message": "Stock transfer successful" }