API Reference
Subscriptions

Retrieves taxes for a given service, using the configured tax calculation method for the affiliate

1min
code examples curl location globoff 'https //api fictive com/rest/api/subscriptions/prices/{servicepricereference}/tax/accounts/{accountreference}' \\ \ 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 'get', headers myheaders, redirect 'follow' }; fetch("https //api fictive com/rest/api/subscriptions/prices/{servicepricereference}/tax/accounts/{accountreference}", 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 //api fictive com/rest/api/subscriptions/prices/{servicepricereference}/tax/accounts/{accountreference}") https = net http new(url host, url port) https use ssl = true request = net http get 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 //api fictive com/rest/api/subscriptions/prices/{servicepricereference}/tax/accounts/{accountreference}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses { "grossamount" 4 79, "netamount" 4 5, "taxamount" 0 29, "taxbreakdown" \[ { "category" "sales and use taxes", "name" "rental tax", "rate" 0 023, "amount" 0 115, "parameters" { "param1" "value1", "param2" "value2" } }, { "category" "sales and use taxes", "name" "rental tax", "rate" 0 007, "amount" 0 035, "parameters" { "param1" "value1", "param2" "value2" } }, { "category" "sales and use taxes", "name" "rental tax", "rate" 0 056, "amount" 0 28, "parameters" { "param1" "value1", "param2" "value2" } } ] }// tax could not be calculated // the price does not exist // external tax provider was not configured // internal server error
πŸ€”
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.

ο»Ώ