Tradeshift · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Tradeshift External Dx Category Documents Document API
35 actions
35 updates
phrasing
extends
openapi/tradeshift-dx-category-documents-document-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Tradeshift's API. It is a proposal applied on top of the contract, not a document Tradeshift publishes.
What the actions change
x-apievangelist-phrasing
Targets 35 · first 16 shown; the file carries all of them
$.info
$.paths['/rest/external/documents'].get
$.paths['/rest/external/documents/companies/{owningCompanyId}/{documentId}'].get
$.paths['/rest/external/documents/csv'].get
$.paths['/rest/external/documents/dispatcher'].post
$.paths['/rest/external/documents/dispatches'].get
$.paths['/rest/external/documents/netAmount'].get
$.paths['/rest/external/documents/received/{documentId}'].put
$.paths['/rest/external/documents/validate'].post
$.paths['/rest/external/documents/{documentId}'].get
$.paths['/rest/external/documents/{documentId}'].put
$.paths['/rest/external/documents/{documentId}'].delete
$.paths['/rest/external/documents/{documentId}/content'].delete
$.paths['/rest/external/documents/{documentId}/convert'].get
$.paths['/rest/external/documents/{documentId}/dispatches/first'].get
$.paths['/rest/external/documents/{documentId}/dispatches/latest'].get
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Tradeshift External Dx Category Documents Document API
version: 1.0.0
extends: openapi/tradeshift-dx-category-documents-document-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-24'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 34
- target: $.paths['/rest/external/documents'].get
update:
x-apievangelist-phrasing:
intent: List documents for the current user
effect: read
questions:
- Which invoices and credit notes has my company sent or received?
- Can I list only the documents sent to a particular buyer?
- How do I find documents issued between two dates?
instructions:
- text: List my documents of type {type}.
slots:
type: query.type
- text: Find documents sent to {sentTo} between {minissuedate} and {maxissuedate}.
slots:
sentTo: query.sentTo
minissuedate: query.minissuedate
maxissuedate: query.maxissuedate
- text: List documents tagged {tag} in {currency} with state {state}.
slots:
tag: query.tag
currency: query.currency
state: query.state
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/companies/{owningCompanyId}/{documentId}'].get
update:
x-apievangelist-phrasing:
intent: Get a document by owning company and id
effect: read
questions:
- 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?
instructions:
- text: Get document {documentId} from owning company {owningCompanyId}.
slots:
documentId: path.documentId
owningCompanyId: path.owningCompanyId
- text: Resolve document {documentId} in company {owningCompanyId} to its URL.
slots:
documentId: path.documentId
owningCompanyId: path.owningCompanyId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/csv'].get
update:
x-apievangelist-phrasing:
intent: Export documents as CSV
effect: read
questions:
- Can I export my invoices to a CSV file?
- Is there a CSV version of the document list?
instructions:
- text: Export my documents as CSV.
- text: Export documents of type {type} as CSV.
slots:
type: query.type
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/dispatcher'].post
update:
x-apievangelist-phrasing:
intent: Store and dispatch a document
effect: write
questions:
- How do I send an invoice to a buyer through the external API?
- Can I dispatch a document with a client-generated id?
instructions:
- text: Dispatch document {documentId} using profile {documentProfileId}.
slots:
documentId: query.documentId
documentProfileId: query.documentProfileId
- text: Send document {documentId} with profile {documentProfileId} from source {documentSource}.
slots:
documentId: query.documentId
documentProfileId: query.documentProfileId
documentSource: query.documentSource
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/dispatches'].get
update:
x-apievangelist-phrasing:
intent: List the latest dispatches
effect: read
questions:
- What is the latest dispatch for each of my documents?
- Can I see dispatch history for a list of documents?
instructions:
- text: Show the latest dispatch for each of my documents.
- text: List dispatches for documents {documentId}.
slots:
documentId: query.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/netAmount'].get
update:
x-apievangelist-phrasing:
intent: Get net amounts for documents
effect: read
questions:
- What is the net amount of each of my invoices?
- Can I get net amounts for a list of document ids?
instructions:
- text: Get net amounts for documents {documentIds}.
slots:
documentIds: query.documentIds
- text: Calculate the net total of invoices {documentIds}.
slots:
documentIds: query.documentIds
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/received/{documentId}'].put
update:
x-apievangelist-phrasing:
intent: Import a received document
effect: write
questions:
- How do I import an invoice I received outside the platform?
- Can I add a received document to my document list?
instructions:
- text: Import received document {documentId} with content {file}.
slots:
documentId: path.documentId
file: requestBody.file
- text: Add the invoice I received to my document list as {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/validate'].post
update:
x-apievangelist-phrasing:
intent: Validate a UBL document against a profile
effect: read
questions:
- 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?
- What happens if I validate a document without giving a receiver company?
instructions:
- text: Validate my UBL document against profile {documentProfileId} before sending.
slots:
documentProfileId: query.documentProfileId
- text: Validate my UBL document with profile {documentProfileId} combined with the profile set for receiver {receiverCompanyId}.
slots:
documentProfileId: query.documentProfileId
receiverCompanyId: query.receiverCompanyId
- text: Validate a {contentType} document against {documentProfileId} and return the result as {accept}.
slots:
contentType: header.Content-Type
documentProfileId: query.documentProfileId
accept: header.Accept
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}'].get
update:
x-apievangelist-phrasing:
intent: Get a document by id
effect: read
questions:
- How do I download a specific invoice or credit note?
- Can I get a deleted document by its id?
instructions:
- text: Get document {documentId}.
slots:
documentId: path.documentId
- text: Download invoice {documentId} as {Accept}.
slots:
documentId: path.documentId
Accept: header.Accept
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}'].put
update:
x-apievangelist-phrasing:
intent: Save a document to the platform
effect: write
questions:
- How do I save an invoice to the platform?
- Can I save a document as a draft?
instructions:
- text: Save document {documentId} as {draft} using profile {documentProfileId}.
slots:
documentId: path.documentId
draft: query.draft
documentProfileId: query.documentProfileId
- text: Store document {documentId} with profile {documentProfileId} and schema validation {schemaValidate}.
slots:
documentId: path.documentId
documentProfileId: query.documentProfileId
schemaValidate: query.schemaValidate
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}'].delete
update:
x-apievangelist-phrasing:
intent: Soft delete a document
effect: destructive
questions:
- How do I delete a document from my view?
- Is deleting a document permanent?
instructions:
- text: Delete document {documentId}.
slots:
documentId: path.documentId
- text: Mark invoice {documentId} as deleted.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/content'].delete
update:
x-apievangelist-phrasing:
intent: Permanently wipe a document's content
effect: destructive
questions:
- How do I permanently remove the content of a document?
- Can I wipe a document's attachments for privacy?
instructions:
- text: Remove the content of document {documentId}.
slots:
documentId: path.documentId
- text: Permanently wipe document {documentId} and its attachments.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/convert'].get
update:
x-apievangelist-phrasing:
intent: Convert a draft invoice to a credit note
effect: write
questions:
- Can I change a draft invoice into a credit note?
- What's the way to convert a draft credit note into an invoice?
instructions:
- text: Convert draft document {documentId} to a {targetDocumentType} using profile {targetDocumentTargetType}.
slots:
documentId: path.documentId
targetDocumentType: query.targetDocumentType
targetDocumentTargetType: query.targetDocumentTargetType
- text: Convert {documentId} to {targetDocumentType} with attachments {withAttachments}.
slots:
documentId: path.documentId
targetDocumentType: query.targetDocumentType
withAttachments: query.withAttachments
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/dispatches/first'].get
update:
x-apievangelist-phrasing:
intent: Get the first dispatch of a document
effect: read
questions:
- When was a document first dispatched?
- What was the first dispatch state of my invoice?
instructions:
- text: Get the first dispatch of document {documentId}.
slots:
documentId: path.documentId
- text: Show the earliest dispatch record for {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/dispatches/latest'].get
update:
x-apievangelist-phrasing:
intent: Get the latest dispatch of a document
effect: read
questions:
- What is the most recent dispatch state of my document?
- Has my invoice been delivered yet?
instructions:
- text: Get the latest dispatch of document {documentId}.
slots:
documentId: path.documentId
- text: Show the most recent dispatch state for {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/dispatches/{dispatchId}'].put
update:
x-apievangelist-phrasing:
intent: Dispatch a saved document
effect: write
questions:
- How do I send a saved invoice to my trading partner?
- Will a dispatched document be validated against the receiver's custom profile?
instructions:
- text: Dispatch saved document {doc} as dispatch {dispatch}.
slots:
doc: path.documentId
dispatch: path.dispatchId
- text: Send document {doc} to its receiver on dispatch {dispatch} from source {source}.
slots:
doc: path.documentId
dispatch: path.dispatchId
source: query.documentSource
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/dispatches/{dispatchId}/scanIOReject'].put
update:
x-apievangelist-phrasing:
intent: Dispatch a document rejected by Scan IO
effect: write
questions:
- How do I resend an invoice that Scan IO rejected?
- Can I dispatch a document that failed Scan IO validation?
instructions:
- text: Resend Scan IO rejected document {documentId} as dispatch {dispatchId}.
slots:
documentId: path.documentId
dispatchId: path.dispatchId
- text: Dispatch document {documentId} with dispatch {dispatchId} after Scan IO rejection.
slots:
documentId: path.documentId
dispatchId: path.dispatchId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/lockedstate/{state}'].put
update:
x-apievangelist-phrasing:
intent: Lock a draft document as sent
effect: write
questions:
- How do I mark a draft invoice as sent?
- Can I lock a draft document as a sale or purchase?
instructions:
- text: Lock document {documentId} as {state}.
slots:
documentId: path.documentId
state: path.state
- text: Mark draft {documentId} as {state} and prevent further edits.
slots:
documentId: path.documentId
state: path.state
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/metadata'].get
update:
x-apievangelist-phrasing:
intent: Get a document's metadata
effect: read
questions:
- Where can I see the metadata of a document?
- Is document metadata editable?
instructions:
- text: Get the metadata of document {documentId}.
slots:
documentId: path.documentId
- text: Show metadata for {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/original'].get
update:
x-apievangelist-phrasing:
intent: Get the original content of a document
effect: read
questions:
- How do I retrieve the original UBL content of a document?
- Can I get the raw content a document was stored as?
instructions:
- text: Get the original content of document {documentId}.
slots:
documentId: path.documentId
- text: Download the raw UBL of {documentId} as {Accept}.
slots:
documentId: path.documentId
Accept: header.Accept
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/original'].post
update:
x-apievangelist-phrasing:
intent: Import a document as a draft
effect: write
questions:
- How do I import a scanned invoice as a draft document?
- Can I upload a PDF and have it converted to UBL automatically?
instructions:
- text: Import {filename} as a draft document {documentId}.
slots:
filename: query.filename
documentId: path.documentId
- text: Upload {filename} to {documentId} as a draft with schema validation {schemaValidateUbl} and profile validation {validateDocumentProfile}.
slots:
filename: query.filename
documentId: path.documentId
schemaValidateUbl: query.schemaValidateUbl
validateDocumentProfile: query.validateDocumentProfile
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/original/responses/{responseId}'].get
update:
x-apievangelist-phrasing:
intent: Check a document import response
effect: read
questions:
- Has my document import finished?
- What errors did the document import report?
instructions:
- text: Check the import response {responseId} for document {documentId}.
slots:
responseId: path.responseId
documentId: path.documentId
- text: Show the result of import request {responseId} on {documentId}.
slots:
responseId: path.responseId
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/properties'].get
update:
x-apievangelist-phrasing:
intent: Get a document's user properties
effect: read
questions:
- What user properties are set on this document?
- Can I read all custom properties on a document?
instructions:
- text: Get the properties of document {documentId}.
slots:
documentId: path.documentId
- text: Show every user property on {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/properties/{property_key}'].get
update:
x-apievangelist-phrasing:
intent: Get one document property
effect: read
questions:
- What value does a single property on a document have?
- Can I read one custom property by its key?
instructions:
- text: Get property {property_key} on document {documentId}.
slots:
property_key: path.property_key
documentId: path.documentId
- text: Show the value of property {property_key} on {documentId}.
slots:
property_key: path.property_key
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/properties/{property_key}'].put
update:
x-apievangelist-phrasing:
intent: Set a document property
effect: write
questions:
- Can I add a custom property to a document?
- How do I store an ERP posting number on a document?
instructions:
- text: Set property {property_key} on document {documentId}.
slots:
property_key: path.property_key
documentId: path.documentId
- text: Add custom property {property_key} to {documentId}.
slots:
property_key: path.property_key
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/properties/{property_key}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a document property
effect: destructive
questions:
- Can I remove a custom property from a document?
- How do I clear a user property on a document?
instructions:
- text: Delete property {property_key} from document {documentId}.
slots:
property_key: path.property_key
documentId: path.documentId
- text: Remove custom property {property_key} on {documentId}.
slots:
property_key: path.property_key
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/receivercompany'].get
update:
x-apievangelist-phrasing:
intent: Get the receiver company of a document
effect: read
questions:
- Which company received this document?
- Can I find the receiver company from a document id?
instructions:
- text: Get the receiver company of document {documentId}.
slots:
documentId: path.documentId
- text: Show which company received {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/senderReferenceId'].get
update:
x-apievangelist-phrasing:
intent: Get the sender's reference id
effect: read
questions:
- What is the sender's reference id for this document?
- Can I find the original sender copy id of a document?
instructions:
- text: Get the sender reference id of document {documentId}.
slots:
documentId: path.documentId
- text: Show the original sender copy id for {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/sendercompany'].get
update:
x-apievangelist-phrasing:
intent: Get the sender company of a document
effect: read
questions:
- Which company sent this document?
- Can I find the sender company from a document id?
instructions:
- text: Get the sender company of document {documentId}.
slots:
documentId: path.documentId
- text: Show which company sent {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/statechange'].put
update:
x-apievangelist-phrasing:
intent: Accept, reject or dispute a document
effect: write
questions:
- How do I accept or reject an invoice?
- Can I dispute a document through the API?
instructions:
- text: Change the state of document {documentId}.
slots:
documentId: path.documentId
- text: Send an accept, reject or dispute response for {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/tags'].get
update:
x-apievangelist-phrasing:
intent: Get a document's tags
effect: read
questions:
- What tags are on this document?
- Can I list all tags on a document?
instructions:
- text: Get the tags of document {documentId}.
slots:
documentId: path.documentId
- text: Show every tag on {documentId}.
slots:
documentId: path.documentId
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/tags/{tag}'].put
update:
x-apievangelist-phrasing:
intent: Add a tag to a document
effect: write
questions:
- Can I tag a document for tracking?
- How do I add a tag like Posted to a document?
instructions:
- text: Add tag {tag} to document {documentId}.
slots:
tag: path.tag
documentId: path.documentId
- text: Tag {documentId} with {tag}.
slots:
documentId: path.documentId
tag: path.tag
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/documents/{documentId}/tags/{tag}'].delete
update:
x-apievangelist-phrasing:
intent: Remove a tag from a document
effect: destructive
questions:
- Can I remove a tag from a document?
- How do I clear a tag from a document?
instructions:
- text: Remove tag {tag} from document {documentId}.
slots:
tag: path.tag
documentId: path.documentId
- text: Untag {documentId} by removing {tag}.
slots:
documentId: path.documentId
tag: path.tag
method: generated
generated: '2026-11-24'
- target: $.paths['/rest/external/status-change-reasons'].get
update:
x-apievangelist-phrasing:
intent: List reasons for changing a document's status
effect: read
questions:
- What rejection and dispute reasons can I use when changing a document's status?
- Which status change reasons are available?
instructions:
- text: List the available status change reasons.
- text: Show the rejection and dispute reasons I can use.
method: generated
generated: '2026-11-24'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/tradeshift-dx-category-documents-document-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.