Talk with Archie
API reference › Advisory
Skills › Advisory

Cross-Border Tax Advice

POST/api/v1/skills/tax.international.advise/invoke
Answers a cross-border tax question for an accountant, such as transfer pricing, treaty relief, withholding, permanent establishment, controlled foreign company rules or structuring. Send a topic that describes the question, and optionally the home and counterparty jurisdictions, the issue type and client context. Returns advice with citations, a confidence score and caveats.
Body parameters
topicstringRequired
The cross-border tax question to answer, in plain language, up to 5000 characters.
home_jurisdictionenum
Jurisdiction where the client is based, as a two-letter code: AU, GB, CA, US or NZ.
AUGBCAUSNZ
counterparty_jurisdictionenum
Jurisdiction of the other party to the transaction, as a two-letter code: AU, GB, CA, US or NZ.
AUGBCAUSNZ
issue_typeenum
Kind of cross-border issue the question raises, which narrows the rules the advice draws on.
transfer_pricingwithholdingtreatypermanent_establishmentcfc_rulesstructure
client_contextobject
Free-form facts about the client and the transaction that bear on the answer.
Returns

Skill executed successfully

skillstringRequired
Example advise_international_tax
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.advicestring · default
output.citationsarray of values
output.confidencenumber · default 0
output.caveatsarray of strings
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/api/v1/skills/tax.international.advise/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "topic": "string",
       "home_jurisdiction": null,
       "counterparty_jurisdiction": null,
       "issue_type": null,
       "client_context": {}
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "tax.international.advise",
    topic="string",
    home_jurisdiction=None,
    counterparty_jurisdiction=None,
    issue_type=None,
    client_context={},
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("tax.international.advise", {
  "topic": "string",
  "home_jurisdiction": null,
  "counterparty_jurisdiction": null,
  "issue_type": null,
  "client_context": {}
});
console.log(result);
Response
{
  "skill": "advise_international_tax",
  "output": {
    "advice": "Royalties paid from the United Kingdom to a United States licensor are normally paid without UK withholding where the treaty applies and the licensor has given the payer the documents that confirm treaty relief.",
    "caveats": [
      "Confirm the licensor is the beneficial owner of the royalties.",
      "Treaty relief needs the licensor's residence to be evidenced."
    ],
    "citations": [
      {
        "confidence": 0.84,
        "section": "Royalties article",
        "standard": "UK-US double taxation convention"
      }
    ],
    "confidence": 0.8
  },
  "correlation_id": "<string>"
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}

Every response also carries X-Request-ID. Quote it if you write to us about a call.