Yokoy
App · 25 actions
Work with expenses, trips, supplier invoices, users and cost objects in Yokoy.
Actions
| Action | What it does |
|---|---|
| Create a cost object | Create a cost object (cost center) in a legal entity. |
| Create a supplier | Add a supplier for the whole organization. |
| Create a tag | Create a tag in one of a legal entity's tag dimensions. |
| Create a user | Add a user to your Yokoy organization, optionally sending them an invitation to sign in. |
| Delete a cost object | Delete a cost object (cost center) from a legal entity. |
| Delete a tag | Delete a tag from a legal entity. |
| Delete a user | Delete a user from your Yokoy organization. |
| Get a card transaction | Get a company card transaction and the expense it is matched to. |
| Get a cost object | Get a cost object (cost center) of a legal entity. |
| Get a trip | Get a trip with its dates, status and total claim. |
| Get a user | Get a user's details. |
| Get an expense | Get an expense with its amounts, taxes, cost objects and approvers. |
| Get an invoice | Get a supplier invoice with its line items, amounts and status. |
| List card transactions | List company card transactions, optionally only those created after a time. |
| List cost objects | List the cost objects (cost centers) of a legal entity, optionally by code or status. |
| List expenses | List expenses across the organization, optionally by status, user, legal entity, expense date or when they were created or changed. |
| List invoices | List a legal entity's supplier invoices, optionally by status or when they were created or changed. |
| List legal entities | List the legal entities (companies) in your Yokoy organization, with their categories, policies and tax rates. |
| List suppliers | List the suppliers shared across your organization, optionally by external ID or status. |
| List tags | List the tags of a legal entity, which add extra dimensions to expenses and invoices. |
| List trips | List trips across the organization, optionally by status, user or when they were created or changed. |
| List users | List the users in your Yokoy organization, optionally by email, legal entity or status. |
| Update a cost object | Change a cost object. |
| Update a supplier | Change an organization supplier. |
| Update a user | Change a user's details. |
Create a cost object
Create a cost object (cost center) in a legal entity.
Inputs
- Legal entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Name
nametextRequired - Name of the cost object.
- Code
codetextRequired - The cost object's account code in your ERP.
- Description
descriptiontext - Description of the cost object.
- Parent cost object
parent_idtext - The parent cost object, for a hierarchy.
- Approver
approver_idtext - The user who approves costs on this cost object.
- Who can use it
access_typetext - Who can submit costs to it: everyone, finance only, or specific users.One of:
all,finance,specificUsers. - Active
status_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 ID
external_idtextRequired - Your own ID for the supplier, such as its ERP vendor number. It must be unique and can't be changed later.
- Name
nametextRequired - The supplier's full company name.
- Short name
short_nametext - A short name to show.
- Street
streettext - Street address.
- Postal code
zip_codetext - Postal code.
- City
citytext - City.
- Country
country_codetext - Two-letter country code, such as `CH` or `DE`.
- Website
urltext - The supplier's website.
- Active
status_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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Name
nametextRequired - Name of the tag.
- Code
codetextRequired - The tag's reference in your ERP. It can be the same as the dimension code.
- Dimension code
dimension_codetextRequired - The code of the tag dimension the tag belongs to.
- Active
status_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 entity
legal_entity_idtextRequired - The legal entity (company) the user belongs to.
- First name
first_nametextRequired - The user's first name.
- Last name
last_nametextRequired - The user's last name.
- Email
emailtextRequired - The email address the user signs in with. It must be unique in the organization.
- Employee ID
employee_idtextRequired - The user's creditor or vendor account number, used to book their privately paid expenses.
- Active
status_activetrue/falseRequired - Whether the user is active and can sign in to Yokoy.
- Cost object
cost_center_idtext - The user's cost object (cost center).
- Line manager
line_manager_idtext - The user's line manager, who approves their expenses.
- Language
languagetext - The language the user sees Yokoy in.One of:
en,en-gb,de,de-ch,fr,es,nl,pl,zh,ja. - Currency
currencytext - The user's currency, as a three-letter code such as `CHF` or `EUR`.
- Send invitation
send_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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Cost object
cost_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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Tag ID
tag_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
- User
yokoy_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 ID
transaction_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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Cost object
cost_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 ID
trip_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
- User
yokoy_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 ID
expense_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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Invoice ID
invoice_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 after
created_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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Code
codetext - Only the cost object with this code.
- Active
status_activetrue/false - Only active (true) or only inactive (false) records.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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
- Status
statustext - Only expenses with this status.One of:
draft,needsRevision,forApproval,forReview,forExpenseExport,rejected,expenseExported,forTransactionExport,transactionExported,readyForTripSubmission,travelDraft. - User
yokoy_user_idtext - Only this user's expenses.
- Legal entity
legal_entity_idtext - Only expenses of this legal entity.
- Expense date from
expense_date_fromdate - Only expenses dated on or after this day.
- Expense date to
expense_date_todate - Only expenses dated on or before this day.
- Created after
created_afterdate and time - Only records created after this time.
- Changed after
modified_afterdate and time - Only records changed after this time.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Status
statustext - Only invoices with this status.One of:
Draft,Needs revision,In approval,In review,Ready for export,Rejected,Exported,New. - Created after
created_afterdate and time - Only records created after this time.
- Changed after
modified_afterdate and time - Only records changed after this time.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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 legal entities
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 ID
external_idtext - Only the supplier with this external ID.
- Active
status_activetrue/false - Only active (true) or only inactive (false) records.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Dimension code
dimension_codetext - Only tags of this dimension.
- Active
status_activetrue/false - Only active (true) or only inactive (false) records.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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
- Status
statustext - Only trips with this status.One of:
draft,needsRevision,forApproval,forReview,forExpenseExport,rejected,expenseExported,forTransactionExport,transactionExported,readyForTripSubmission, and 6 more. - User
yokoy_user_idtext - Only this user's trips.
- Created after
created_afterdate and time - Only records created after this time.
- Changed after
modified_afterdate and time - Only records changed after this time.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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
- Email
emailtext - Only the user with this email.
- Legal entity
legal_entity_idtext - Only users of this legal entity.
- Active
status_activetrue/false - Only active (true) or only inactive (false) records.
- Created after
created_afterdate and time - Only records created after this time.
- Results
countnumber - How many results to return, up to 100. Leave empty for 100.From 1 to 100.
- Next page cursor
cursortext - 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 entity
legal_entity_idtextRequired - The legal entity (company) in Yokoy.
- Cost object
cost_center_idtextRequired - The cost object to change.
- Name
nametext - Name of the cost object.
- Code
codetext - The cost object's account code in your ERP.
- Description
descriptiontext - Description of the cost object.
- Parent cost object
parent_idtext - The parent cost object, for a hierarchy.
- Approver
approver_idtext - The user who approves costs on this cost object.
- Who can use it
access_typetext - Who can submit costs to it: everyone, finance only, or specific users.One of:
all,finance,specificUsers. - Active
status_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 ID
supplier_idtextRequired - The supplier to change.
- Name
nametext - The supplier's full company name.
- Short name
short_nametext - A short name to show.
- Street
streettext - Street address.
- Postal code
zip_codetext - Postal code.
- City
citytext - City.
- Country
country_codetext - Two-letter country code, such as `CH` or `DE`.
- Website
urltext - The supplier's website.
- Active
status_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
- User
yokoy_user_idtextRequired - The user to change.
- Legal entity
legal_entity_idtext - The legal entity (company) the user belongs to.
- First name
first_nametext - The user's first name.
- Last name
last_nametext - The user's last name.
- Email
emailtext - The email address the user signs in with. It must be unique in the organization.
- Employee ID
employee_idtext - The user's creditor or vendor account number, used to book their privately paid expenses.
- Active
status_activetrue/false - Whether the user is active and can sign in to Yokoy.
- Cost object
cost_center_idtext - The user's cost object (cost center).
- Line manager
line_manager_idtext - The user's line manager, who approves their expenses.
- Language
languagetext - The language the user sees Yokoy in.One of:
en,en-gb,de,de-ch,fr,es,nl,pl,zh,ja. - Currency
currencytext - 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"
}
}