Tradeshift Dx Category Documents Document API

The dx-category--documents-document API from Tradeshift — 28 operation(s) for dx-category--documents-document.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 34

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /rest/external/documents List documents for the current user · find documents #
Ask an LLM
“Which invoices and credit notes has my company sent or received?”
“Can I list only the documents sent to a particular buyer?”
Tell an agent
List my documents of type {type}.
Find documents sent to {sentTo} between {minissuedate} and {maxissuedate}.
GET /rest/external/documents/companies/{owningCompanyId}/{documentId} Get a document by owning company and id · Get company document #
Ask an LLM
“How do I fetch a document when I only know the owning company's id and the document id?”
“Can I resolve a document id to its owning company?”
Tell an agent
Get document {documentId} from owning company {owningCompanyId}.
Resolve document {documentId} in company {owningCompanyId} to its URL.
GET /rest/external/documents/csv Export documents as CSV · find documents (CSV support) #
Ask an LLM
“Can I export my invoices to a CSV file?”
“Is there a CSV version of the document list?”
Tell an agent
Export my documents as CSV.
Export documents of type {type} as CSV.
POST /rest/external/documents/dispatcher Store and dispatch a document · send document #
Ask an LLM
“How do I send an invoice to a buyer through the external API?”
“Can I dispatch a document with a client-generated id?”
Tell an agent
Dispatch document {documentId} using profile {documentProfileId}.
Send document {documentId} with profile {documentProfileId} from source {documentSource}.
GET /rest/external/documents/dispatches List the latest dispatches · Get Latest Dispatches #
Ask an LLM
“What is the latest dispatch for each of my documents?”
“Can I see dispatch history for a list of documents?”
Tell an agent
Show the latest dispatch for each of my documents.
List dispatches for documents {documentId}.
GET /rest/external/documents/netAmount Get net amounts for documents · get document net amount #
Ask an LLM
“What is the net amount of each of my invoices?”
“Can I get net amounts for a list of document ids?”
Tell an agent
Get net amounts for documents {documentIds}.
Calculate the net total of invoices {documentIds}.
PUT /rest/external/documents/received/{documentId} Import a received document · Receive document #
Ask an LLM
“How do I import an invoice I received outside the platform?”
“Can I add a received document to my document list?”
Tell an agent
Import received document {documentId} with content {file}.
Add the invoice I received to my document list as {documentId}.
POST /rest/external/documents/validate Validate a UBL document against a profile · validate a document #
Ask an LLM
“How do I check a UBL document for profile errors before dispatching it?”
“Can I validate a document against the profile agreed with a specific receiver?”
Tell an agent
Validate my UBL document against profile {documentProfileId} before sending.
Validate my UBL document with profile {documentProfileId} combined with the profile set for receiver {receiverCompanyId}.
GET /rest/external/documents/{documentId} Get a document by id · find document #
Ask an LLM
“How do I download a specific invoice or credit note?”
“Can I get a deleted document by its id?”
Tell an agent
Get document {documentId}.
Download invoice {documentId} as {Accept}.
PUT /rest/external/documents/{documentId} Save a document to the platform · update document #
Ask an LLM
“How do I save an invoice to the platform?”
“Can I save a document as a draft?”
Tell an agent
Save document {documentId} as {draft} using profile {documentProfileId}.
Store document {documentId} with profile {documentProfileId} and schema validation {schemaValidate}.
DELETE /rest/external/documents/{documentId} Soft delete a document · delete document #
Ask an LLM
“How do I delete a document from my view?”
“Is deleting a document permanent?”
Tell an agent destructive · confirm first
Delete document {documentId}.
Mark invoice {documentId} as deleted.
DELETE /rest/external/documents/{documentId}/content Permanently wipe a document's content · remove document content #
Ask an LLM
“How do I permanently remove the content of a document?”
“Can I wipe a document's attachments for privacy?”
Tell an agent destructive · confirm first
Remove the content of document {documentId}.
Permanently wipe document {documentId} and its attachments.
GET /rest/external/documents/{documentId}/convert Convert a draft invoice to a credit note · convert a document #
Ask an LLM
“Can I change a draft invoice into a credit note?”
“What's the way to convert a draft credit note into an invoice?”
Tell an agent
Convert draft document {documentId} to a {targetDocumentType} using profile {targetDocumentTargetType}.
Convert {documentId} to {targetDocumentType} with attachments {withAttachments}.
GET /rest/external/documents/{documentId}/dispatches/first Get the first dispatch of a document · Get First Dispatch #
Ask an LLM
“When was a document first dispatched?”
“What was the first dispatch state of my invoice?”
Tell an agent
Get the first dispatch of document {documentId}.
Show the earliest dispatch record for {documentId}.
GET /rest/external/documents/{documentId}/dispatches/latest Get the latest dispatch of a document · Get Latest Dispatch #
Ask an LLM
“What is the most recent dispatch state of my document?”
“Has my invoice been delivered yet?”
Tell an agent
Get the latest dispatch of document {documentId}.
Show the most recent dispatch state for {documentId}.
PUT /rest/external/documents/{documentId}/dispatches/{dispatchId} Dispatch a saved document · Dispatch a saved document #
Ask an LLM
“How do I send a saved invoice to my trading partner?”
“Will a dispatched document be validated against the receiver's custom profile?”
Tell an agent
Dispatch saved document {doc} as dispatch {dispatch}.
Send document {doc} to its receiver on dispatch {dispatch} from source {source}.
PUT /rest/external/documents/{documentId}/dispatches/{dispatchId}/scanIOReject Dispatch a document rejected by Scan IO · Dispatch a saved document rejected by Scan IO validation #
Ask an LLM
“How do I resend an invoice that Scan IO rejected?”
“Can I dispatch a document that failed Scan IO validation?”
Tell an agent
Resend Scan IO rejected document {documentId} as dispatch {dispatchId}.
Dispatch document {documentId} with dispatch {dispatchId} after Scan IO rejection.
PUT /rest/external/documents/{documentId}/lockedstate/{state} Lock a draft document as sent · lock a draft document #
Ask an LLM
“How do I mark a draft invoice as sent?”
“Can I lock a draft document as a sale or purchase?”
Tell an agent
Lock document {documentId} as {state}.
Mark draft {documentId} as {state} and prevent further edits.
GET /rest/external/documents/{documentId}/metadata Get a document's metadata · find document metadata #
Ask an LLM
“Where can I see the metadata of a document?”
“Is document metadata editable?”
Tell an agent
Get the metadata of document {documentId}.
Show metadata for {documentId}.
GET /rest/external/documents/{documentId}/original Get the original content of a document · Get original content of existing documents within platform #
Ask an LLM
“How do I retrieve the original UBL content of a document?”
“Can I get the raw content a document was stored as?”
Tell an agent
Get the original content of document {documentId}.
Download the raw UBL of {documentId} as {Accept}.
POST /rest/external/documents/{documentId}/original Import a document as a draft · Asynchronously import a document as a DRAFT #
Ask an LLM
“How do I import a scanned invoice as a draft document?”
“Can I upload a PDF and have it converted to UBL automatically?”
Tell an agent
Import {filename} as a draft document {documentId}.
Upload {filename} to {documentId} as a draft with schema validation {schemaValidateUbl} and profile validation {validateDocumentProfile}.
GET /rest/external/documents/{documentId}/original/responses/{responseId} Check a document import response · get document import request response #
Ask an LLM
“Has my document import finished?”
“What errors did the document import report?”
Tell an agent
Check the import response {responseId} for document {documentId}.
Show the result of import request {responseId} on {documentId}.
GET /rest/external/documents/{documentId}/properties Get a document's user properties · Get document properties #
Ask an LLM
“What user properties are set on this document?”
“Can I read all custom properties on a document?”
Tell an agent
Get the properties of document {documentId}.
Show every user property on {documentId}.
GET /rest/external/documents/{documentId}/properties/{property_key} Get one document property · Get document property #
Ask an LLM
“What value does a single property on a document have?”
“Can I read one custom property by its key?”
Tell an agent
Get property {property_key} on document {documentId}.
Show the value of property {property_key} on {documentId}.
PUT /rest/external/documents/{documentId}/properties/{property_key} Set a document property · Add document property #
Ask an LLM
“Can I add a custom property to a document?”
“How do I store an ERP posting number on a document?”
Tell an agent
Set property {property_key} on document {documentId}.
Add custom property {property_key} to {documentId}.
DELETE /rest/external/documents/{documentId}/properties/{property_key} Delete a document property · Delete document property #
Ask an LLM
“Can I remove a custom property from a document?”
“How do I clear a user property on a document?”
Tell an agent destructive · confirm first
Delete property {property_key} from document {documentId}.
Remove custom property {property_key} on {documentId}.
GET /rest/external/documents/{documentId}/receivercompany Get the receiver company of a document · Get document's receiver company #
Ask an LLM
“Which company received this document?”
“Can I find the receiver company from a document id?”
Tell an agent
Get the receiver company of document {documentId}.
Show which company received {documentId}.
GET /rest/external/documents/{documentId}/senderReferenceId Get the sender's reference id · Get document's referenced id #
Ask an LLM
“What is the sender's reference id for this document?”
“Can I find the original sender copy id of a document?”
Tell an agent
Get the sender reference id of document {documentId}.
Show the original sender copy id for {documentId}.
GET /rest/external/documents/{documentId}/sendercompany Get the sender company of a document · Get document's sender company #
Ask an LLM
“Which company sent this document?”
“Can I find the sender company from a document id?”
Tell an agent
Get the sender company of document {documentId}.
Show which company sent {documentId}.
PUT /rest/external/documents/{documentId}/statechange Accept, reject or dispute a document · change document state #
Ask an LLM
“How do I accept or reject an invoice?”
“Can I dispute a document through the API?”
Tell an agent
Change the state of document {documentId}.
Send an accept, reject or dispute response for {documentId}.
GET /rest/external/documents/{documentId}/tags Get a document's tags · get document tags #
Ask an LLM
“What tags are on this document?”
“Can I list all tags on a document?”
Tell an agent
Get the tags of document {documentId}.
Show every tag on {documentId}.
PUT /rest/external/documents/{documentId}/tags/{tag} Add a tag to a document · add document tag #
Ask an LLM
“Can I tag a document for tracking?”
“How do I add a tag like Posted to a document?”
Tell an agent
Add tag {tag} to document {documentId}.
Tag {documentId} with {tag}.
DELETE /rest/external/documents/{documentId}/tags/{tag} Remove a tag from a document · delete document tag #
Ask an LLM
“Can I remove a tag from a document?”
“How do I clear a tag from a document?”
Tell an agent destructive · confirm first
Remove tag {tag} from document {documentId}.
Untag {documentId} by removing {tag}.
GET /rest/external/status-change-reasons List reasons for changing a document's status · get status change reasons #
Ask an LLM
“What rejection and dispute reasons can I use when changing a document's status?”
“Which status change reasons are available?”
Tell an agent
List the available status change reasons.
Show the rejection and dispute reasons I can use.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tradeshift:tradeshift-dx-category-documents-document-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tradeshift-dx-category-documents-document-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tradeshift External Dx Category Documents Document API
  version: 1.0.0
servers:
- url: https://api.tradeshift.com/tradeshift
tags:


# --- truncated at 32 KB (147 KB total) ---
# Full source: https://artifacts.apis.io/tradeshift/openapi/tradeshift-dx-category-documents-document-api-openapi.yml