Churpy_Etims Public API
Churpy_Etims Public API
curl -i -X GET \ 'https://docs-etims.churpy.co/_mock/openapi/purchases?limit=10&page=1' \ -H 'X-API-Key: YOUR_API_KEY_HERE'
{ "pagination": { "current_page": 1, "total_pages": 1, "has_next": false, "limit": 10, "total_count": 10 }, "data": [ { … } ] }
curl -i -X GET \ 'https://docs-etims.churpy.co/_mock/openapi/purchases/{purchase_id}' \ -H 'X-API-Key: YOUR_API_KEY_HERE'
{ "id": "cljvm2neg0000p57z71g7xbar", "registration_type_code": "A", "receipt_type_code": "P", "purchase_type_code": "N", "payment_type_code": "07", "purchase_status_code": "06", "invoice_number": 4000, "purchase_date": "20230620", "trader_invoice_number": "12", "supplierBranchId": "00", "supplierName": "KENYA REVENUE AUTHORITY", "supplierInvoiceNumber": 12, "item_list": [ { … } ] }
curl -i -X POST \ 'https://docs-etims.churpy.co/_mock/openapi/purchases/{purchase_id}/purchase_items/link_item' \ -H 'Content-Type: application/json' \ -H 'X-API-Key: YOUR_API_KEY_HERE' \ -d '{ "items": [ { "item_sequence_number": 1, "item_id": "clka6cqmd0003p5intib19jdb" } ] }'
{ "id": "clk5c8y380000p5wtae2mz7gr", "registration_type_code": "A", "receipt_type_code": "P", "purchase_type_code": "N", "payment_type_code": "07", "purchase_status_code": "06", "invoice_number": 60002, "purchase_date": "20230620", "trader_invoice_number": "12", "supplierBranchId": "00", "supplierName": "KENYA REVENUE AUTHORITY", "supplierInvoiceNumber": 12, "item_list": [ { … } ] }