Billing App APIs
Auto Approval Configuration
Auto approval configuration operations
1 min
code examples curl location globoff request put 'https //{tenant id} {stack base domain}/tms/api/v1/billing/autoapproval configuration/{operation}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'put', headers myheaders, redirect 'follow' }; fetch("https //{tenant id} {stack base domain}/tms/api/v1/billing/autoapproval configuration/{operation}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //{tenant id} {stack base domain}/tms/api/v1/billing/autoapproval configuration/{operation}") https = net http new(url host, url port) https use ssl = true request = net http put new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //{tenant id} {stack base domain}/tms/api/v1/billing/autoapproval configuration/{operation}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("put", url, headers=headers, data=payload) print(response text) responses // request accepted for processing { "requestid" "req 123456789", "message" "auto approval configuration updated successfully", "status" "success" }// bad request invalid parameters or validation error { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }// unauthorized invalid authentication { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }// configuration or rule not found { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }// internal server error { "message" "invalid charge id provided", "status" "error", "errorcode" "invalid charge id" }
