Tradeshift

App · 25 actions

Find and tag invoices, orders and other documents, manage trading partners and connection requests, and assign documents to colleagues in Tradeshift.

Actions

ActionWhat it does
Accept connection requestAccept a company's request to join your network, so you can exchange documents.
Add document tagTag a document, for example to mark it as handled so a workflow skips it next time.
Close assignmentMark an open assignment as closed.
Create assignmentAsk one or more people in your company to act on a document, such as approving an invoice.
Delete connection propertyRemove a property from a trading partner.
Delete document propertyRemove a property from a document.
Find user by emailFind a person in your company account by their email address.
Get assignmentGet an assignment's status, assignees, comment and outcome.
Get company accountGet your company account's details: its name, country, identifiers and ID.
Get documentGet a document's full content, such as an invoice's lines, parties and totals, in UBL form.
Get document propertyRead one property stored on a document.
Get latest dispatchGet how a sent document was last delivered: its channel and whether delivery completed.
List assignmentsList assignments: tasks asking someone in your company to act on a document.
List connection requestsList requests from other companies to join your network that are waiting for an answer.
List connectionsList the trading partners in your network.
List document attachmentsList the files attached to a document.
List document propertiesList the properties (your own named values, such as an ERP posting number) stored on a document.
List document tagsList the tags on a document.
List documentsFind invoices, credit notes, orders and other documents, most recently changed first.
List usersList the people in your company account.
Reassign assignmentGive an open assignment to someone else.
Remove document tagRemove a tag from a document.
Set connection propertyStore a named value on a trading partner, such as your own vendor or customer number for them, replacing any value already there.
Set document propertyStore a named value on a document, such as the posting number your ERP gave it, replacing any value already there.
Update assignment commentReplace an assignment's comment.

Accept connection request

Accept a company's request to join your network, so you can exchange documents.

Inputs

Connection requestpartner_idtextRequired
The request to accept, from List connection requests.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "ConnectionId": "example",
    "accepted": true
  }
}

Add document tag

Tag a document, for example to mark it as handled so a workflow skips it next time. Tags show in Tradeshift too.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).
TagtagtextRequired
The tag, such as `Posted` or `Exported to ERP`.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "done": true
  }
}

Close assignment

Mark an open assignment as closed.

Inputs

Assignmentassignment_idtextRequired
The assignment: a task asking a colleague to act on a document.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "done": true
  }
}

Create assignment

Ask one or more people in your company to act on a document, such as approving an invoice.

Inputs

Documentdocument_idtextRequired
The document the assignment is about.
Assigneesassignee_idslistRequired
The people to assign it to.
Commentcommenttext
A note for the assignees.
Tagstagslist
Labels to put on the assignment.
Your referenceexternal_idtext
Your own reference for the assignment, to find it again later.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "app": "example",
    "assigneeIds": [
      "example"
    ],
    "comment": "example",
    "companyId": "example",
    "createdAt": "example",
    "createdBy": "example",
    "externalId": "example",
    "id": "example",
    "modifiedAt": "example",
    "modifiedBy": "example",
    "outcome": "example",
    "status": "example",
    "subjectId": "example",
    "tags": [
      "example"
    ],
    "type": "example"
  }
}

Delete connection property

Remove a property from a trading partner.

Inputs

Connectionpartner_idtextRequired
The connection: a trading partner in your network.
Property namekeytextRequired
The property's name, such as `VendorNumber`.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "done": true
  }
}

Delete document property

Remove a property from a document.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).
Property namekeytextRequired
The property's name, such as `ERPCode`.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "done": true
  }
}

Find user by email

Find a person in your company account by their email address.

Inputs

EmailemailtextRequired
The person's email address. Upper and lower case don't matter.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "CompanyAccountId": "example",
    "Id": "example",
    "Kind": "example",
    "Language": "example",
    "Person": {
      "Created": "example",
      "Email": "example",
      "FirstName": "example",
      "LastName": "example"
    },
    "State": "example",
    "TimeZone": "example",
    "UserName": "example"
  }
}

Get assignment

Get an assignment's status, assignees, comment and outcome.

Inputs

Assignmentassignment_idtextRequired
The assignment: a task asking a colleague to act on a document.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "app": "example",
    "assigneeIds": [
      "example"
    ],
    "comment": "example",
    "companyId": "example",
    "createdAt": "example",
    "createdBy": "example",
    "externalId": "example",
    "id": "example",
    "modifiedAt": "example",
    "modifiedBy": "example",
    "outcome": "example",
    "status": "example",
    "subjectId": "example",
    "tags": [
      "example"
    ],
    "type": "example"
  }
}

Get company account

Get your company account's details: its name, country, identifiers and ID.

Inputs

None.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "AccountType": "example",
    "CompanyAccountId": "example",
    "CompanyName": "example",
    "Country": "example",
    "Created": "example",
    "Description": "example",
    "Modified": "example",
    "NumConnections": "example",
    "Phone": "example",
    "State": "example",
    "Url": "example"
  }
}

Get document

Get a document's full content, such as an invoice's lines, parties and totals, in UBL form.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {}
}

Get document property

Read one property stored on a document.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).
Property namekeytextRequired
The property's name, such as `ERPCode`.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "found": true,
    "key": "example",
    "value": "example"
  }
}

Get latest dispatch

Get how a sent document was last delivered: its channel and whether delivery completed.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "Created": "example",
    "DispatchChannel": "example",
    "DispatchId": "example",
    "DispatchState": "example",
    "LastStateChange": "example",
    "ObjectId": "example",
    "ReceiverConnectionId": "example",
    "SenderUserId": "example"
  }
}

List assignments

List assignments: tasks asking someone in your company to act on a document.

Inputs

Statusstatustext
Only assignments with this status.One of: OPEN, CLOSED, WAITING_FOR_ASSIGNEES (Waiting for assignees).
Assigneeassignee_idtext
Only assignments given to this person.
Documentdocument_idtext
Only assignments about this document.
Created fromcreated_fromdate and time
Only assignments created after this time.
Changed frommodified_fromdate and time
Only assignments changed after this time.
Pagepagenumber
The page of results to return, starting at 0. Leave empty for the first.At least 0.
Results per pagelimitnumber
How many results to return per page, up to 100. Leave empty for 20.From 1 to 100.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "items": [
      {
        "app": "example",
        "assigneeIds": [
          "example"
        ],
        "comment": "example",
        "companyId": "example",
        "createdAt": "example",
        "createdBy": "example",
        "externalId": "example",
        "id": "example",
        "modifiedAt": "example",
        "modifiedBy": "example",
        "outcome": "example",
        "status": "example",
        "subjectId": "example",
        "tags": [
          "example"
        ],
        "type": "example"
      }
    ],
    "total": 1
  }
}

List connection requests

List requests from other companies to join your network that are waiting for an answer.

Inputs

Pagepagenumber
The page of results to return, starting at 0. Leave empty for the first.At least 0.
Results per pagelimitnumber
How many results to return per page, up to 100. Leave empty for 25.From 1 to 100.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "Items": [
      {
        "Connection": {
          "CompanyAccountId": "example",
          "CompanyName": "example",
          "ConnectionType": "example",
          "Country": "example"
        },
        "Id": "example",
        "Received": "example",
        "SenderCompanyAccountId": "example"
      }
    ],
    "itemCount": 1,
    "itemsPerPage": 1,
    "numPages": 1,
    "pageId": 1
  }
}

List connections

List the trading partners in your network.

Inputs

Search textsearchtext
Only connections matching these words, such as a company name.
Connection typetypetext
Only partners already on Tradeshift, or only ones you added who aren't yet.One of: TradeshiftConnection (On Tradeshift), ExternalConnection (Not on Tradeshift yet (external)).
Pagepagenumber
The page of results to return, starting at 0. Leave empty for the first.At least 0.
Results per pagelimitnumber
How many results to return per page, up to 100. Leave empty for 25.From 1 to 100.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "Connection": [
      {
        "ConnectionId": "example",
        "ConnectionType": "example",
        "FromCompanyAccountId": "example",
        "State": "example",
        "ToCompanyAccountId": "example"
      }
    ],
    "itemCount": 1,
    "itemsPerPage": 1,
    "numPages": 1,
    "pageId": 1
  }
}

List document attachments

List the files attached to a document.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "DocumentAttachment": [
      {
        "ContentType": "example",
        "Name": "example",
        "Type": "example"
      }
    ]
  }
}

List document properties

List the properties (your own named values, such as an ERP posting number) stored on a document.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {}
}

List document tags

List the tags on a document.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "Tag": [
      "example"
    ]
  }
}

List documents

Find invoices, credit notes, orders and other documents, most recently changed first.

Inputs

Document typetypetext
Only this kind of document.One of: invoice, creditnote (Credit note), order (Purchase order), quote.
Folderfoldertext
Only documents in this folder. Leave empty for all but drafts and deleted ones.One of: inbox (Inbox (received)), outbox (Sent), draft (Drafts), sales, purchases, deleted.
Statusstatetext
Only documents with this status.One of: SENT, DELIVERED, ACCEPTED, OVERDUE, PAID_UNCONFIRMED (Paid (not confirmed)), PAID_CONFIRMED (Paid (confirmed)), REJECTED_BY_SENDER (Rejected by sender), REJECTED_BY_RECEIVER (Rejected by receiver), DISPUTED_BY_RECEIVER (Disputed by receiver), FAILED_DELIVERY (Delivery failed), and 3 more.
Document numbernumbertext
Only documents with this number, such as an invoice or order number.
Search textsearchtext
Only documents containing this text.
With tagtagtext
Only documents with this tag.
Without tagwithout_tagtext
Only documents without this tag, such as one your workflow adds once it has handled a document.
Changed sincechanged_sincedate and time
Only documents changed after this time.
Issued fromissued_fromdate
Only documents issued on or after this date.
Issued toissued_todate
Only documents issued on or before this date.
Pagepagenumber
The page of results to return, starting at 0. Leave empty for the first.At least 0.
Results per pagelimitnumber
How many results to return per page, up to 100. Leave empty for 25.From 1 to 100.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "Document": [
      {
        "ConversationId": "example",
        "Deleted": true,
        "DocumentId": "example",
        "DocumentType": {
          "documentProfileId": "example",
          "mimeType": "example",
          "type": "example"
        },
        "ID": "example",
        "ItemInfos": [
          {
            "type": "example",
            "value": "example"
          }
        ],
        "LastEdit": "example",
        "LatestDispatch": {
          "Created": "example",
          "DispatchChannel": "example",
          "DispatchId": "example",
          "DispatchState": "example",
          "LastStateChange": "example",
          "ObjectId": "example",
          "ReceiverConnectionId": "example",
          "SenderUserId": "example"
        },
        "ProcessState": "example",
        "ReceiverCompanyName": "example",
        "SentReceivedTimestamp": "example",
        "State": "example",
        "Tags": {
          "Tag": [
            "example"
          ]
        },
        "URI": "example",
        "UnifiedState": "example"
      }
    ],
    "itemCount": 1,
    "itemsPerPage": 1,
    "numPages": 1,
    "pageId": 1
  }
}

List users

List the people in your company account.

Inputs

Pagepagenumber
The page of results to return, starting at 0. Leave empty for the first.At least 0.
Results per pagelimitnumber
How many results to return per page, up to 100. Leave empty for 25.From 1 to 100.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "PrimaryUser": "example",
    "UserAccounts": [
      {
        "CompanyAccountId": "example",
        "CompanyName": "example",
        "Created": "example",
        "FirstName": "example",
        "Id": "example",
        "Language": "example",
        "LastName": "example",
        "State": "example",
        "TimeZone": "example",
        "Type": "example",
        "Username": "example",
        "Visible": true
      }
    ],
    "itemCount": 1,
    "itemsPerPage": 1,
    "numPages": 1,
    "pageId": 1
  }
}

Reassign assignment

Give an open assignment to someone else.

Inputs

Assignmentassignment_idtextRequired
The assignment: a task asking a colleague to act on a document.
New assigneeassignee_idtextRequired
The person to give it to.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "app": "example",
    "assigneeIds": [
      "example"
    ],
    "comment": "example",
    "companyId": "example",
    "createdAt": "example",
    "createdBy": "example",
    "externalId": "example",
    "id": "example",
    "modifiedAt": "example",
    "modifiedBy": "example",
    "outcome": "example",
    "status": "example",
    "subjectId": "example",
    "tags": [
      "example"
    ],
    "type": "example"
  }
}

Remove document tag

Remove a tag from a document.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).
TagtagtextRequired
The tag, such as `Posted` or `Exported to ERP`.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "done": true
  }
}

Set connection property

Store a named value on a trading partner, such as your own vendor or customer number for them, replacing any value already there.

Inputs

Connectionpartner_idtextRequired
The connection: a trading partner in your network.
Property namekeytextRequired
The property's name, such as `VendorNumber`.
ValuevaluetextRequired
The value to store.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "key": "example",
    "value": "example"
  }
}

Set document property

Store a named value on a document, such as the posting number your ERP gave it, replacing any value already there.

Inputs

Documentdocument_idtextRequired
The document (an invoice, credit note, order or other business document).
Property namekeytextRequired
The property's name, such as `ERPCode`.
ValuevaluetextRequired
The value to store.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "key": "example",
    "value": "example"
  }
}

Update assignment comment

Replace an assignment's comment.

Inputs

Assignmentassignment_idtextRequired
The assignment: a task asking a colleague to act on a document.
CommentcommenttextRequired
The new comment.

Outputs

dataobject
The response from Tradeshift.
Example output
{
  "data": {
    "comment": "example",
    "done": true
  }
}

On this page