Aller au contenu

get_invoice

Détail d’une facture par son identifiant B2Brouter (champ b2bId renvoyé par les autres tools).

  • Permission requise : invoice:read
  • Type : lecture seule

Paramètres

NomTypeRequisContrainteDescription
b2bId integer oui

Exemple d'appel

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_invoice",
    "arguments": {
      "b2bId": "<integer>"
    }
  }
}

Exemple de réponse

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{ ...résultat JSON... }"
      }
    ]
  }
}