Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scroll export button
scopecurrent
template-id0fa09813-8b86-460a-aa1d-ef450a80e9ce
quick-starttrue
add-onScroll PDF Exporter

...

  • URL of the hook (with PBX as host)
  • “store_id” store_veesion_id” 
Note

Note: For PBX authorization, the webhook URL should contain the parameter with PBX token /?token=<simple>.  

The token should be generated for admin only. 

...


Code Block
curl -v --header "Content-Type: application/json" --request POST --data '{"username":"webhook_user@wildix","password":"5SNd#3Ov7h*Ftest"}' https://api.klaxon.veesion.io/token 
{"token":"1dcbf200cc775968a62aad40b8298bd5165a81dcbf200cc455968a66baad40b8238bd5165a8","expires_in":"1702.352942"} 


...


Code Block
curl -v --header "Authorization: Token 1dcbf200cc72a41dad40b8298bd5165a81dcbf200cc455968a66baad40b8238bd5165a8" --request GET https://api.klaxon.veesion.io/user-info {"user":"webhook_user@wildix","expires_in":"805.326849"}


...


Code Block
curl -v --header "Authorization: Token 1dcbf200cc775968a62a41d298bd5165a81dcbf200cc455968a66baad40b8238bd5165a8" --request GET https://api.klaxon.veesion.io/stores 
{"stores":[{"store_veesion_id":"test-store-wildix","store_veesion_name":"test store wildix","store_id":""}]} 


...


Code Block
curl -v --header "Authorization: Token 1dcbf20cc7768a641da40b829565a81dcbf200cc455968a66baad40b8238bd5165a8" --header "Content-Type: application/json" --request POST --data '{"store_veesion_id":"test-store-wildix","hooks":["https://semen.wildixin.com/api/v1/veesion?token=access_Wq1WDc79z3Q2Lk6eVlKnaHjuwITfYABBWVPg9MiWrWLJhGKspsWZ2Wq1WDc79z3LL2к6eVlKnaHjuwwEWWERVPg9MiWrWLJhHHspsWZ2"]}' https://api.klaxon.veesion.io/hooks2{"message":"OK"}

...