API REFERENCE
...
Automatic Pix
Revoke the consent
1 min
name consent id revoke method post url https api sandbox klavi ai payment customer v1 automatic consents id revoke description revoke the consent tab examples examples languages id xmvmosvmfreu0de lerlc language curl code curl location globoff request post https api sandbox klavi ai payment customer v1 automatic consents id revoke n header accept application json n header content type application json customlabel id y0 pmlqnbjv9ewdazlpul language nodejs code var request require request ; nvar options n method post n url https api sandbox klavi ai payment customer v1 automatic consents id revoke n headers n accept application json n content type application json n n ; nrequest options function error response n if error throw new error error ; n console log response body ; n ; n customlabel id oicnkcvveoenazjskfyg3 language javascript code var myheaders new headers ; nmyheaders append accept application json ; nmyheaders append content type application json ; n nvar requestoptions n method post n headers myheaders n redirect follow n ; n nfetch https api sandbox klavi ai payment customer v1 automatic consents id revoke requestoptions n then response response text n then result console log result n catch error console log error error ; customlabel id wnsl0g7pughqvwn6xa6ya language python code import requests nimport json n nurl https api sandbox klavi ai payment customer v1 automatic consents id revoke n npayload nheaders n accept application json n content type application json n n nresponse requests request post url headers headers data payload n nprint response text n customlabel id muffwltbqkso7claqzjcr language ruby code require uri nrequire json nrequire net http n nurl uri https api sandbox klavi ai payment customer v1 automatic consents id revoke n nhttps net http new url host url port nhttps use ssl true n nrequest net http post new url nrequest accept application json nrequest content type application json n nresponse https request request nputs response read body n customlabel selectedlanguageid xmvmosvmfreu0de lerlc results languages id pxcrl2h lcsn7yastn6ac language 200 code customlabel selectedlanguageid pxcrl2h lcsn7yastn6ac request pathparameters name id kind required type string description pattern urn a za z0 9 a za z0 9 0 31 a za z0 9 ; ! ? nmaxlength 256 nconsent id pattern urn a za z0 9 a za z0 9 0 31 a za z0 9 ; ! ? nmaxlength 256 nconsent id queryparameters headerparameters name authorization kind required type string description jwt bearer token jwt bearer token bodydataparameters formdataparameters currentnewparameter label path parameter value pathparameters hastryitout false