Yokoy

App · 25 actions

Work with expenses, trips, supplier invoices, users and cost objects in Yokoy.

Actions

ActionWhat it does
Create a cost objectCreate a cost object (cost center) in a legal entity.
Create a supplierAdd a supplier for the whole organization.
Create a tagCreate a tag in one of a legal entity's tag dimensions.
Create a userAdd a user to your Yokoy organization, optionally sending them an invitation to sign in.
Delete a cost objectDelete a cost object (cost center) from a legal entity.
Delete a tagDelete a tag from a legal entity.
Delete a userDelete a user from your Yokoy organization.
Get a card transactionGet a company card transaction and the expense it is matched to.
Get a cost objectGet a cost object (cost center) of a legal entity.
Get a tripGet a trip with its dates, status and total claim.
Get a userGet a user's details.
Get an expenseGet an expense with its amounts, taxes, cost objects and approvers.
Get an invoiceGet a supplier invoice with its line items, amounts and status.
List card transactionsList company card transactions, optionally only those created after a time.
List cost objectsList the cost objects (cost centers) of a legal entity, optionally by code or status.
List expensesList expenses across the organization, optionally by status, user, legal entity, expense date or when they were created or changed.
List invoicesList a legal entity's supplier invoices, optionally by status or when they were created or changed.
List legal entitiesList the legal entities (companies) in your Yokoy organization, with their categories, policies and tax rates.
List suppliersList the suppliers shared across your organization, optionally by external ID or status.
List tagsList the tags of a legal entity, which add extra dimensions to expenses and invoices.
List tripsList trips across the organization, optionally by status, user or when they were created or changed.
List usersList the users in your Yokoy organization, optionally by email, legal entity or status.
Update a cost objectChange a cost object.
Update a supplierChange an organization supplier.
Update a userChange a user's details.

Create a cost object

Create a cost object (cost center) in a legal entity.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
NamenametextRequired
Name of the cost object.
CodecodetextRequired
The cost object's account code in your ERP.
Descriptiondescriptiontext
Description of the cost object.
Parent cost objectparent_idtext
The parent cost object, for a hierarchy.
Approverapprover_idtext
The user who approves costs on this cost object.
Who can use itaccess_typetext
Who can submit costs to it: everyone, finance only, or specific users.One of: all, finance, specificUsers.
Activestatus_activetrue/false
Whether the cost object can be used.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "accessType": "example",
    "approvalLimit": 1,
    "approverId": "example",
    "autoApprovalLimit": 1,
    "code": "example",
    "customInformation": {},
    "delegateId": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "parentId": "example",
    "scopes": [
      "example"
    ],
    "statusActive": true
  }
}

Create a supplier

Add a supplier for the whole organization.

Inputs

External IDexternal_idtextRequired
Your own ID for the supplier, such as its ERP vendor number. It must be unique and can't be changed later.
NamenametextRequired
The supplier's full company name.
Short nameshort_nametext
A short name to show.
Streetstreettext
Street address.
Postal codezip_codetext
Postal code.
Citycitytext
City.
Countrycountry_codetext
Two-letter country code, such as `CH` or `DE`.
Websiteurltext
The supplier's website.
Activestatus_activetrue/false
Whether the supplier can be used.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "bankAccounts": [
      {}
    ],
    "city": "example",
    "contacts": [
      {}
    ],
    "countryCode": "example",
    "externalId": "example",
    "id": "example",
    "name": "example",
    "shortName": "example",
    "statusActive": true,
    "street": "example",
    "taxNumbers": [
      "example"
    ],
    "url": "example",
    "zipCode": "example"
  }
}

Create a tag

Create a tag in one of a legal entity's tag dimensions.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
NamenametextRequired
Name of the tag.
CodecodetextRequired
The tag's reference in your ERP. It can be the same as the dimension code.
Dimension codedimension_codetextRequired
The code of the tag dimension the tag belongs to.
Activestatus_activetrue/falseRequired
Whether the tag can be used.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "code": "example",
    "customInformation": {},
    "dimensionCode": "example",
    "expenseApproverIds": [
      "example"
    ],
    "id": "example",
    "invoiceApproverIds": [
      "example"
    ],
    "name": "example",
    "statusActive": true
  }
}

Create a user

Add a user to your Yokoy organization, optionally sending them an invitation to sign in.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) the user belongs to.
First namefirst_nametextRequired
The user's first name.
Last namelast_nametextRequired
The user's last name.
EmailemailtextRequired
The email address the user signs in with. It must be unique in the organization.
Employee IDemployee_idtextRequired
The user's creditor or vendor account number, used to book their privately paid expenses.
Activestatus_activetrue/falseRequired
Whether the user is active and can sign in to Yokoy.
Cost objectcost_center_idtext
The user's cost object (cost center).
Line managerline_manager_idtext
The user's line manager, who approves their expenses.
Languagelanguagetext
The language the user sees Yokoy in.One of: en, en-gb, de, de-ch, fr, es, nl, pl, zh, ja.
Currencycurrencytext
The user's currency, as a three-letter code such as `CHF` or `EUR`.
Send invitationsend_invitationtrue/false
Email the user an invitation to Yokoy when they are created.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "costCenterId": "example",
    "created": "example",
    "currency": "example",
    "customInformation": {},
    "email": "example",
    "employeeId": "example",
    "firstName": "example",
    "id": "example",
    "language": "example",
    "lastModified": "example",
    "lastName": "example",
    "legalEntityId": "example",
    "lineManagerDelegateId": "example",
    "lineManagerId": "example",
    "policyId": "example",
    "statusActive": true,
    "submissionDelegateId": "example"
  }
}

Delete a cost object

Delete a cost object (cost center) from a legal entity.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Cost objectcost_center_idtextRequired
The cost object to delete.

Outputs

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

Delete a tag

Delete a tag from a legal entity.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Tag IDtag_idtextRequired
The tag to delete.

Outputs

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

Delete a user

Delete a user from your Yokoy organization.

Inputs

Useryokoy_user_idtextRequired
The user to delete.

Outputs

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

Get a card transaction

Get a company card transaction and the expense it is matched to.

Inputs

Transaction IDtransaction_idtextRequired
The transaction.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "billingAmount": 1,
    "billingCurrency": "example",
    "bookingDate": "example",
    "cardId": "example",
    "country": "example",
    "created": "example",
    "expenseId": "example",
    "id": "example",
    "isCreditNote": true,
    "legalEntityId": "example",
    "matchingStatus": 1,
    "mccSicCode": "example",
    "merchant": "example",
    "sourceAmount": 1,
    "sourceCurrency": "example",
    "transactionDate": "example"
  }
}

Get a cost object

Get a cost object (cost center) of a legal entity.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Cost objectcost_center_idtextRequired
The cost object.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "accessType": "example",
    "approvalLimit": 1,
    "approverId": "example",
    "autoApprovalLimit": 1,
    "code": "example",
    "customInformation": {},
    "delegateId": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "parentId": "example",
    "scopes": [
      "example"
    ],
    "statusActive": true
  }
}

Get a trip

Get a trip with its dates, status and total claim.

Inputs

Trip IDtrip_idtextRequired
The trip.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "created": "example",
    "currency": "example",
    "customInformation": {},
    "endDatetime": "example",
    "id": "example",
    "lastModified": "example",
    "legalEntityId": "example",
    "name": "example",
    "startDatetime": "example",
    "status": "example",
    "totalClaim": 1,
    "userId": "example"
  }
}

Get a user

Get a user's details.

Inputs

Useryokoy_user_idtextRequired
The user.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "costCenterId": "example",
    "created": "example",
    "currency": "example",
    "customInformation": {},
    "email": "example",
    "employeeId": "example",
    "firstName": "example",
    "id": "example",
    "language": "example",
    "lastModified": "example",
    "lastName": "example",
    "legalEntityId": "example",
    "lineManagerDelegateId": "example",
    "lineManagerId": "example",
    "policyId": "example",
    "statusActive": true,
    "submissionDelegateId": "example"
  }
}

Get an expense

Get an expense with its amounts, taxes, cost objects and approvers.

Inputs

Expense IDexpense_idtextRequired
The expense.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "additionalCharges": 1,
    "approverIds": [
      "example"
    ],
    "categoryId": "example",
    "costCenterItems": [
      {}
    ],
    "country": "example",
    "created": "example",
    "currency": "example",
    "currentApproverIds": [
      "example"
    ],
    "customInformation": {},
    "description": "example",
    "expenseDate": "example",
    "expenseType": "example",
    "id": "example",
    "lastModified": "example",
    "legalEntityId": "example",
    "paymentMethod": "example",
    "postingDate": "example",
    "receipt": "example",
    "status": "example",
    "taxItems": [
      {}
    ],
    "totalAmount": 1,
    "totalClaim": 1,
    "tripId": "example",
    "userId": "example"
  }
}

Get an invoice

Get a supplier invoice with its line items, amounts and status.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Invoice IDinvoice_idtextRequired
The invoice.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "country": "example",
    "created": "example",
    "currency": "example",
    "customInformation": {},
    "date": "example",
    "dueDate": "example",
    "grossAmount": 1,
    "id": "example",
    "invoiceNumber": "example",
    "isCreditNote": true,
    "lastModified": "example",
    "lineItems": [
      {}
    ],
    "netAmount": 1,
    "paymentBlocked": true,
    "paymentTermId": "example",
    "postingDate": "example",
    "status": 1,
    "submitters": [
      "example"
    ],
    "supplierId": "example",
    "taxAmount": 1
  }
}

List card transactions

List company card transactions, optionally only those created after a time.

Inputs

Created aftercreated_afterdate and time
Only records created after this time.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "transactions": [
      {
        "billingAmount": 1,
        "billingCurrency": "example",
        "bookingDate": "example",
        "cardId": "example",
        "country": "example",
        "created": "example",
        "expenseId": "example",
        "id": "example",
        "isCreditNote": true,
        "legalEntityId": "example",
        "matchingStatus": 1,
        "mccSicCode": "example",
        "merchant": "example",
        "sourceAmount": 1,
        "sourceCurrency": "example",
        "transactionDate": "example"
      }
    ]
  }
}

List cost objects

List the cost objects (cost centers) of a legal entity, optionally by code or status.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Codecodetext
Only the cost object with this code.
Activestatus_activetrue/false
Only active (true) or only inactive (false) records.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "costCenters": [
      {
        "accessType": "example",
        "approvalLimit": 1,
        "approverId": "example",
        "autoApprovalLimit": 1,
        "code": "example",
        "customInformation": {},
        "delegateId": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "parentId": "example",
        "scopes": [
          "example"
        ],
        "statusActive": true
      }
    ],
    "itemsPerPage": 1,
    "nextCursor": "example"
  }
}

List expenses

List expenses across the organization, optionally by status, user, legal entity, expense date or when they were created or changed.

Inputs

Statusstatustext
Only expenses with this status.One of: draft, needsRevision, forApproval, forReview, forExpenseExport, rejected, expenseExported, forTransactionExport, transactionExported, readyForTripSubmission, travelDraft.
Useryokoy_user_idtext
Only this user's expenses.
Legal entitylegal_entity_idtext
Only expenses of this legal entity.
Expense date fromexpense_date_fromdate
Only expenses dated on or after this day.
Expense date toexpense_date_todate
Only expenses dated on or before this day.
Created aftercreated_afterdate and time
Only records created after this time.
Changed aftermodified_afterdate and time
Only records changed after this time.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "expenses": [
      {
        "additionalCharges": 1,
        "approverIds": [
          "example"
        ],
        "categoryId": "example",
        "costCenterItems": [
          {}
        ],
        "country": "example",
        "created": "example",
        "currency": "example",
        "currentApproverIds": [
          "example"
        ],
        "customInformation": {},
        "description": "example",
        "expenseDate": "example",
        "expenseType": "example",
        "id": "example",
        "lastModified": "example",
        "legalEntityId": "example",
        "paymentMethod": "example",
        "postingDate": "example",
        "receipt": "example",
        "status": "example",
        "taxItems": [
          {}
        ],
        "totalAmount": 1,
        "totalClaim": 1,
        "tripId": "example",
        "userId": "example"
      }
    ],
    "itemsPerPage": 1,
    "nextCursor": "example"
  }
}

List invoices

List a legal entity's supplier invoices, optionally by status or when they were created or changed.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Statusstatustext
Only invoices with this status.One of: Draft, Needs revision, In approval, In review, Ready for export, Rejected, Exported, New.
Created aftercreated_afterdate and time
Only records created after this time.
Changed aftermodified_afterdate and time
Only records changed after this time.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "invoices": [
      {
        "country": "example",
        "created": "example",
        "currency": "example",
        "customInformation": {},
        "date": "example",
        "dueDate": "example",
        "grossAmount": 1,
        "id": "example",
        "invoiceNumber": "example",
        "isCreditNote": true,
        "lastModified": "example",
        "lineItems": [
          {}
        ],
        "netAmount": 1,
        "paymentBlocked": true,
        "paymentTermId": "example",
        "postingDate": "example",
        "status": 1,
        "submitters": [
          "example"
        ],
        "supplierId": "example",
        "taxAmount": 1
      }
    ],
    "itemsPerPage": 1,
    "nextCursor": "example"
  }
}

List the legal entities (companies) in your Yokoy organization, with their categories, policies and tax rates.

Inputs

None.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "legalEntities": [
      {
        "categories": [
          {}
        ],
        "code": "example",
        "id": "example",
        "language": "example",
        "name": "example",
        "policies": [
          {}
        ],
        "taxRates": [
          {}
        ]
      }
    ]
  }
}

List suppliers

List the suppliers shared across your organization, optionally by external ID or status.

Inputs

External IDexternal_idtext
Only the supplier with this external ID.
Activestatus_activetrue/false
Only active (true) or only inactive (false) records.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "itemsPerPage": 1,
    "nextCursor": "example",
    "suppliers": [
      {
        "bankAccounts": [
          {}
        ],
        "city": "example",
        "contacts": [
          {}
        ],
        "countryCode": "example",
        "externalId": "example",
        "id": "example",
        "name": "example",
        "shortName": "example",
        "statusActive": true,
        "street": "example",
        "taxNumbers": [
          "example"
        ],
        "url": "example",
        "zipCode": "example"
      }
    ]
  }
}

List tags

List the tags of a legal entity, which add extra dimensions to expenses and invoices.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Dimension codedimension_codetext
Only tags of this dimension.
Activestatus_activetrue/false
Only active (true) or only inactive (false) records.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "itemsPerPage": 1,
    "nextCursor": "example",
    "tags": [
      {
        "code": "example",
        "customInformation": {},
        "dimensionCode": "example",
        "expenseApproverIds": [
          "example"
        ],
        "id": "example",
        "invoiceApproverIds": [
          "example"
        ],
        "name": "example",
        "statusActive": true
      }
    ]
  }
}

List trips

List trips across the organization, optionally by status, user or when they were created or changed.

Inputs

Statusstatustext
Only trips with this status.One of: draft, needsRevision, forApproval, forReview, forExpenseExport, rejected, expenseExported, forTransactionExport, transactionExported, readyForTripSubmission, and 6 more.
Useryokoy_user_idtext
Only this user's trips.
Created aftercreated_afterdate and time
Only records created after this time.
Changed aftermodified_afterdate and time
Only records changed after this time.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "itemsPerPage": 1,
    "nextCursor": "example",
    "trips": [
      {
        "created": "example",
        "currency": "example",
        "customInformation": {},
        "endDatetime": "example",
        "id": "example",
        "lastModified": "example",
        "legalEntityId": "example",
        "name": "example",
        "startDatetime": "example",
        "status": "example",
        "totalClaim": 1,
        "userId": "example"
      }
    ]
  }
}

List users

List the users in your Yokoy organization, optionally by email, legal entity or status.

Inputs

Emailemailtext
Only the user with this email.
Legal entitylegal_entity_idtext
Only users of this legal entity.
Activestatus_activetrue/false
Only active (true) or only inactive (false) records.
Created aftercreated_afterdate and time
Only records created after this time.
Resultscountnumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Next page cursorcursortext
To get the next page, the `nextCursor` value from the previous page.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "itemsPerPage": 1,
    "nextCursor": "example",
    "users": [
      {
        "costCenterId": "example",
        "created": "example",
        "currency": "example",
        "customInformation": {},
        "email": "example",
        "employeeId": "example",
        "firstName": "example",
        "id": "example",
        "language": "example",
        "lastModified": "example",
        "lastName": "example",
        "legalEntityId": "example",
        "lineManagerDelegateId": "example",
        "lineManagerId": "example",
        "policyId": "example",
        "statusActive": true,
        "submissionDelegateId": "example"
      }
    ]
  }
}

Update a cost object

Change a cost object. Fields left empty keep their current value.

Inputs

Legal entitylegal_entity_idtextRequired
The legal entity (company) in Yokoy.
Cost objectcost_center_idtextRequired
The cost object to change.
Namenametext
Name of the cost object.
Codecodetext
The cost object's account code in your ERP.
Descriptiondescriptiontext
Description of the cost object.
Parent cost objectparent_idtext
The parent cost object, for a hierarchy.
Approverapprover_idtext
The user who approves costs on this cost object.
Who can use itaccess_typetext
Who can submit costs to it: everyone, finance only, or specific users.One of: all, finance, specificUsers.
Activestatus_activetrue/false
Whether the cost object can be used.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "accessType": "example",
    "approvalLimit": 1,
    "approverId": "example",
    "autoApprovalLimit": 1,
    "code": "example",
    "customInformation": {},
    "delegateId": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "parentId": "example",
    "scopes": [
      "example"
    ],
    "statusActive": true
  }
}

Update a supplier

Change an organization supplier. Fields left empty keep their current value.

Inputs

Supplier IDsupplier_idtextRequired
The supplier to change.
Namenametext
The supplier's full company name.
Short nameshort_nametext
A short name to show.
Streetstreettext
Street address.
Postal codezip_codetext
Postal code.
Citycitytext
City.
Countrycountry_codetext
Two-letter country code, such as `CH` or `DE`.
Websiteurltext
The supplier's website.
Activestatus_activetrue/false
Whether the supplier can be used.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "bankAccounts": [
      {}
    ],
    "city": "example",
    "contacts": [
      {}
    ],
    "countryCode": "example",
    "externalId": "example",
    "id": "example",
    "name": "example",
    "shortName": "example",
    "statusActive": true,
    "street": "example",
    "taxNumbers": [
      "example"
    ],
    "url": "example",
    "zipCode": "example"
  }
}

Update a user

Change a user's details. Fields left empty keep their current value.

Inputs

Useryokoy_user_idtextRequired
The user to change.
Legal entitylegal_entity_idtext
The legal entity (company) the user belongs to.
First namefirst_nametext
The user's first name.
Last namelast_nametext
The user's last name.
Emailemailtext
The email address the user signs in with. It must be unique in the organization.
Employee IDemployee_idtext
The user's creditor or vendor account number, used to book their privately paid expenses.
Activestatus_activetrue/false
Whether the user is active and can sign in to Yokoy.
Cost objectcost_center_idtext
The user's cost object (cost center).
Line managerline_manager_idtext
The user's line manager, who approves their expenses.
Languagelanguagetext
The language the user sees Yokoy in.One of: en, en-gb, de, de-ch, fr, es, nl, pl, zh, ja.
Currencycurrencytext
The user's currency, as a three-letter code such as `CHF` or `EUR`.

Outputs

dataobject
The response from Yokoy.
Example output
{
  "data": {
    "costCenterId": "example",
    "created": "example",
    "currency": "example",
    "customInformation": {},
    "email": "example",
    "employeeId": "example",
    "firstName": "example",
    "id": "example",
    "language": "example",
    "lastModified": "example",
    "lastName": "example",
    "legalEntityId": "example",
    "lineManagerDelegateId": "example",
    "lineManagerId": "example",
    "policyId": "example",
    "statusActive": true,
    "submissionDelegateId": "example"
  }
}

On this page