{"info":{"name":"Oktavia Connect","description":"Developer collection for testing Oktavia Connect inbound events and public metadata endpoints.","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"variable":[{"key":"base_url","value":"https://api.oktavia.app","type":"string"},{"key":"connection_id","value":"replace_with_connection_id","type":"string"},{"key":"oktavia_key","value":"replace_with_api_key","type":"string"},{"key":"oktavia_secret","value":"replace_with_hmac_secret","type":"string"},{"key":"timestamp","value":"","type":"string"},{"key":"idempotency_key","value":"","type":"string"},{"key":"signature","value":"","type":"string"}],"item":[{"name":"Developer metadata","item":[{"name":"Get developer spec","request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/connect/developer/spec","host":["{{base_url}}"],"path":["connect","developer","spec"]}}},{"name":"Get OpenAPI document","request":{"method":"GET","header":[],"url":{"raw":"{{base_url}}/connect/developer/openapi.json","host":["{{base_url}}"],"path":["connect","developer","openapi.json"]}}}]},{"name":"Inbound events","item":[{"name":"Send POS daily close","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const timestamp = Date.now().toString();","pm.collectionVariables.set('timestamp', timestamp);","if (!pm.collectionVariables.get('idempotency_key')) {","  pm.collectionVariables.set('idempotency_key', `oktavia-${timestamp}`);","}","const body = pm.request.body?.raw || '';","const secret = pm.collectionVariables.get('oktavia_secret') || '';","const signature = CryptoJS.HmacSHA256(`${timestamp}.${body}`, secret).toString(CryptoJS.enc.Hex);","pm.collectionVariables.set('signature', signature);"]}}],"request":{"method":"POST","header":[{"key":"content-type","value":"application/json"},{"key":"x-oktavia-key","value":"{{oktavia_key}"},{"key":"x-oktavia-timestamp","value":"{{timestamp}"},{"key":"x-idempotency-key","value":"{{idempotency_key}"},{"key":"x-oktavia-signature","value":"{{signature}"}],"body":{"mode":"raw","raw":"{\n  \"eventType\": \"pos.daily_close\",\n  \"externalId\": \"close-2026-06-01-main-site\",\n  \"payload\": {\n    \"date\": \"2026-06-01\",\n    \"center\": \"main-site\",\n    \"total\": 4180.5,\n    \"currency\": \"EUR\",\n    \"channels\": [\n      {\n        \"name\": \"Comida\",\n        \"total\": 2660.1\n      },\n      {\n        \"name\": \"Bebida\",\n        \"total\": 1520.4\n      }\n    ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{base_url}}/connect/inbound/{{connection_id}}/events","host":["{{base_url}}"],"path":["connect","inbound","{{connection_id}}","events"]}}}]}]}