Export Expenses

Retrieve all expense information

{
  "data": [
    {
      "exportedAt": "2021-01-22T13:45:09Z",
      "expenseId": "e5b1dec2-afec-4201-8c93-09ffa479418c",
      "refId": "XPD012216312",
      "type": "RegularExpense",
      "amount": 1120,
      "netAmount": 1000,
      "currency": "EUR",
      "expenseDate": "2021-01-02",
      "merchant": "Four Seasons",
      "merchantEnterpriseNumber": "58325",
      "comment": null,
      "expenseStatus": "Approved",
      "isReimbursable": false,
      "image": {
        "url": "https://streaming.rydoo.com/Receipt/original/9c843341-af19-4003-84bb-a1d29197beaa/9c843341-af19-4003-84bb-a1d29197beaa/1b43875e-633e-43ac-8a1c-ad1fd023c490"
      },
      "numberOfAttendees": 3,
      "ownerExcluded": false,
      "amountPerAttendee": 373.3,
      "attachments": [
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/e8704947-9d56-462b-ae4a-7c1a5a2ff7da/download/false/Expense?d=24032021121727"
        },
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/f7f5fd35-5fd0-4b28-adc2-d518fadc0fbc/download/false/Expense?d=21122021121616"
        }
      ],
      "attendees": [
       {
         "id": "eeb86106-57a2-4c2e-8dc5-0e3e704eb880",
         "fullName": "Amalia Claupfer",
         "email": "[email protected]",
         "type": "Guest"
        },
        {
         "id": "67e2d9b4-6be1-44e9-a38d-469f96b6a2b3",
         "fullName": "Sandra Malcory",
         "email": "[email protected]",
         "type": "User"
        }
      ],
      "branch": {
        "branchId": "1f0ee19a-b40d-e711-81fc-005156bf1aff",
        "refId": "110",
        "name": "ACMECorp Canada",
        "enterpriseNumber": "110",
        "currency": "CAD",
        "amount": 1756.51,
        "netAmount": 1568.31,
        "taxAmount": 188.2
      },
      "group": {
        "groupId": "ed82ege0-696a-4739-bfd6-cau25b5249ea",
        "refId": "2105645",
        "name": "2105645 Reporting Department"
      },
      "user": {
        "userId": "77738a64-a25d-438f-98d5-5431ee47d84b",
        "refId": "123456",
        "firstName": "Kate",
        "lastName": "Friedman",
        "email": "[email protected]",
        "iban": "BE123145678901"
      },
      "category": {
        "categoryId": "b5a46e5c-1886-4177-81c3-2ce1114be869",
        "name": "Hotels (employees)",
        "isActive": true,
        "accountingCode": null,
        "secondaryCode": null
      },
      "customFields": [
        {
          "customFieldId": "3c0f8d45-bbd1-4c16-89c8-75cf8d9d7ea9",
          "name": "Office location",
          "isRequired": true,
          "isEnabled": true,
          "value": "Toronto",
          "code": "490"
        }
      ],
      "project": {
        "projectId": "db797814-aed2-46d8-9ad6-7e818caa815a",
        "refId": "1100056111",
        "name": "ACMECorp Reports"
      },
      "trip": null,
      "invoice": {
        "isInvoice": true,
        "invoiceNumber": "PL68392"
      },
      "meansOfPayment": {
        "paymentMethodId": "fe5hc4b3-9767-4ebf-1084-2ebba4771ede",
        "paymentMethod": "CreditCard",
        "name": "CompanyCreditCard",
        "cardOwnership": "CompanyCard",
        "cardNumber": "5032",
        "accountNumber": "0532013000",
        "travellerId": null,
        "matchStatus": "Confirmed",
        "transactions": [
          {
            "processorTransactionId": "111-9000474744547474",
            "mcFinancialTransactionId": "0446576452083664145840"
          }
        ]
      },
      "calculatedCurrencies": [
        {
          "amount": 1312.68,
          "netAmount": 1172.04,
          "currency": "USD",
          "taxAmount": 140.64
        },
        {
          "amount": 28809.4,
          "netAmount": 25722.68,
          "currency": "MXN",
          "taxAmount": 3086.72
        }
      ],
      "taxRate": {
        "taxAmount": 120,
        "taxRate": 12,
        "taxCode": "CAN Purchases 12%",
        "subRates": [
          {
            "amount": 50,
            "rate": 5,
            "name": "GST"
          },
          {
            "amount": 70,
            "rate": 7,
            "name": "PST"
          }
        ]
      },
      "hotel": {
        "checkIn": "2021-01-01T10:00:00",
        "checkOut": "2021-01-02T10:00:00",
        "numberOfNights": 1
      },
      "location": {
        "countryCode": "CA",
        "country": "Canada",
        "region": "Ontario",
        "city": "Toronto"
      },
      "linkTravel": null,
      "perDiem": null,
      "mileage": null,
      "history": {
        "submittedAt": "2021-01-02T10:00:00",
        "approvedAt": "2021-01-04T11:06:12.793",
        "approvedBy": "[email protected]",
        "controlledAt": null,
        "controlledBy": null
      },
      "rejectReasons": [
        {
          "title": "Duplicated expense",
          "type": "Duplicate"
        }
      ],
      "countrySpecific": null,
      "parentExpenseId": "ac20133e-ddc7-44a9-b78c-ef7247ce8405",
      "hasChildren": false
    },
    {
      "exportedAt": "2021-01-03T15:23:03Z",
      "expenseId": "9e237a2c-0580-4c9e-9b87-7ff2a070ab84",
      "refId": "XPD012216312",
      "type": "Mileage",
      "amount": 82.75,
      "netAmount": 78,
      "currency": "MXN",
      "expenseDate": "2021-01-06",
      "merchant": null,
      "merchantEnterpriseNumber": null,
      "comment": null,
      "expenseStatus": "Controlled",
      "isReimbursable": true,
      "image": null,
      "numberOfAttendees": 1,
      "ownerExcluded": false,
      "amountPerAttendee": 82.75,
      "attachments": [
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/e8704947-9d56-462b-ae4a-7c1a5a2ff7da/download/false/Expense?d=24032021121727"
        },
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/f7f5fd35-5fd0-4b28-adc2-d518fadc0fbc/download/false/Expense?d=21122021121616"
        }
      ],
      "attendees": [],
      "branch": {
        "branchId": "5c5d9e27-b33b-4bfb-b585-1cbcda0f1443",
        "refId": "113",
        "name": "ACMECorp Mexico",
        "enterpriseNumber": "113",
        "currency": "MXN",
        "amount": 82.75,
        "netAmount": 78,
        "taxAmount": 4.75
      },
      "group": {
        "groupId": "ed82ege0-696a-4739-bfd6-cau25b5249ea",
        "refId": "2105645",
        "name": "2105645 Reporting Department"
      },
      "user": {
        "userId": "10b2bd0f-723b-44e9-a392-f35462827fbc",
        "refId": "654321",
        "firstName": "John",
        "lastName": "Smith",
        "email": "[email protected]",
        "iban": "BE123145671457"
      },
      "category": {
        "categoryId": "046fbf87-4d67-4db0-84ab-cd66f835611f",
        "name": "Mileage (employees)",
        "isActive": true,
        "accountingCode": null,
        "secondaryCode": null
      },
      "customFields": [],
      "project": {
        "projectId": "db797814-aed2-46d8-9ad6-7e818caa815a",
        "refId": "1100056111",
        "name": "ACMECorp Reports"
      },
      "trip": null,
      "invoice": {
        "isInvoice": false,
        "invoiceNumber": null
      },
      "meansOfPayment": {
        "paymentMethodId": null,
        "paymentMethod": null,
        "name": null,
        "cardOwnership": null,
        "cardNumber": null,
        "accountNumber": null,
        "travellerId": null,
        "matchStatus": "None",
        "transactions": []
      },
      "calculatedCurrencies": [],
      "taxRate": {
        "taxAmount": 4.75,
        "taxRate": 6.0906,
        "taxCode": "MXN Mileage",
        "subRates": []
      },
      "hotel": null,
      "location": {
        "countryCode": "MX",
        "country": "Mexico",
        "region": "Mexico",
        "city": "Mexico City"
      },
      "linkTravel": null,
      "perDiem": null,
      "mileage": {
        "mileageRateName": "Own car (domestic and abroad) 2,50 MXN/km",
        "from": "Mexico City, Mexico",
        "to": "Toxcuca, Mexico",
        "distance": 33.1,
        "isBackAndForth": false,
        "distanceUnit": "km",
        "mileageRates": {
          "mainRate": {
            "rate": 2.5,
            "code": "135-0000296",
            "distance": 33.1
          },
          "subRates": [
            {
              "rate": 1.4252,
              "code": "S20",
              "distance": 10
            },
            {
              "rate": 3,
              "code": "S30",
              "distance": 270
            }
          ]
        }
      },
      "history": {
        "submittedAt": "2021-01-07T12:00:00",
        "approvedAt": "2021-01-07T17:21:56.128",
        "approvedBy": "[email protected]",
        "controlledAt": "2021-01-08T17:21:56.128",
        "controlledBy": "[email protected]"
      },
      "rejectReasons": [],
      "countrySpecific": {
        "mexico": {
          "validationStatus": "Valid",
          "cfdiGuid": "318b0fe6-235f-499d-adbb-e517b24c6ckd",
          "rfcNumber": "RCS070607MF9",
          "invalidReason": null
        }
      },
      "parentExpenseId": null,
      "hasChildren": false
    },
    {
      "exportedAt": "2021-01-03T15:23:03Z",
      "expenseId": "020c3bd9-1aac-42ac-973a-6ebbfab7bef4", 
      "type": "PerDiem",
      "amount": 55,
      "netAmount": 52.04,
      "currency": "NOK",
      "expenseDate": "2021-01-03",
      "merchant": "Oslo trip",
      "merchantEnterpriseNumber": null,
      "comment": "Business trip",
      "expenseStatus": "Controlled",
      "isReimbursable": true,
      "image": null,
      "numberOfAttendees": 1,
      "ownerExcluded": false,
      "amountPerAttendee": 55,
      "attachments": [],
      "attendees": [],
      "branch": {
        "branchId": "1f0ee19a-b40d-e711-81fc-005156bf1aff",
        "refId": "111",
        "name": "ACMECorp Norway",
        "enterpriseNumber": "111",
        "currency": "NOK",
        "amount": 55,
        "netAmount": 52.04,
        "taxAmount": 2.96
      },
      "group": {
        "groupId": "ed82ege0-696a-4739-bfd6-cau25b5249ea",
        "refId": "2105645",
        "name": "2105645 Reporting Department"
      },
      "user": {
        "userId": "10b2bd0f-723b-44e9-a392-f35462827fbc",
        "refId": "654321",
        "firstName": "John",
        "lastName": "Smith",
        "email": "[email protected]",
        "iban": "BE123145671457"
      },
      "category": {
        "categoryId": "9e1f22f5-b96f-47de-9bcf-cc2cb54d6477",
        "name": "Per Diem (employees)",
        "isActive": true,
        "accountingCode": null,
        "secondaryCode": null
      },
      "customFields": [],
      "project": {
        "projectId": "db797814-aed2-46d8-9ad6-7e818caa815a",
        "refId": "1100056111",
        "name": "ACMECorp Reports"
      },
      "trip": {
        "tripId": "1e99a49a-1091-4c7f-55fa-61503f5bd560",
        "refId": "TRP013156185",
        "name": "Oslo trip",
        "startDate": "2021-01-02T20:00:00",
        "endDate": "2021-01-03T12:00:00"
      },
      "invoice": {
        "isInvoice": false,
        "invoiceNumber": null
      },
      "meansOfPayment": {
        "paymentMethodId": "52d30509-57b0-44b2-af46-4293fae39fbd",
        "paymentMethod": "Per Diem",
        "name": "Oslo trip",
        "cardOwnership": null,
        "cardNumber": null,
        "accountNumber": null,
        "travellerId": null,
        "matchStatus": "None",
        "transactions": []
      },
      "calculatedCurrencies": [],
      "taxRate": {
        "taxAmount": 2.96,
        "taxRate": 5.69,
        "taxCode": "NOK Per Diem",
        "subRates": []
      },
      "hotel": null,
      "location": {
        "countryCode": "NO",
        "country": "Norway",
        "region": "Norway",
        "city": "Oslo"
      },
      "linkTravel": {
        "linkId": "605320",
        "linkCode": "8LOJSF",
        "bookingId": "2121324"
      },
      "perDiem": {
        "rate": {
          "amount": 55,
          "name": "Allowance with overnight stay",
          "code": "111-0000111"
        },
        "duration": "16:00",
        "region": "Norway",
        "currency": "NOK",
        "deductions": [
          {
            "name": "Lunch",
            "code": "222-0000222",
            "amount": 8.2
          }
        ],
        "supplements": [
          {
            "name": "Overnight",
            "code": "OVE",
            "amount": 30
          }
        ]
      },
      "mileage": null,
      "history": {
        "submittedAt": "2021-01-03T12:00:00",
        "approvedAt": "2021-01-05T17:21:56.128",
        "approvedBy": "[email protected]",
        "controlledAt": "2021-01-06T17:21:56.128",
        "controlledBy": "[email protected]"
      },
      "rejectReasons": [],
      "countrySpecific": null,
      "parentExpenseId": null,
      "hasChildren": false
    }
  ],
  "links": {
    "next": "/v3/expenses/exported?exportedAtStartDate=2021-01-01T00%3A00%3A00Z&exportedAtEndDate=2021-02-01T00%3A00%3A00Z&limit=1000&startingAfter=48211"
  }
}

The Rydoo Expense Export API allows customers and partners to export all information related to the expenses created in your company's account. It allows for synchronizing and reconciliation of expense-related information with your ERP system, reimbursement, and reporting tools.
Depending on the configuration of your account, every hour expenses that went through the approval flow will be set as reported. Those reported expenses can then be retrieved via this endpoint.

Note that this endpoint can ONLY be used to retrieve expenses that are with reported status (other status like to submit or waiting for approval status are not exported). Please consult with your technical success manager if you have further questions or need further assistance.

The attendees field will be available from 23th of September 2026.

Endpoint: https://api.rydoo.com/v2/expenses/exported
Endpoint Sandbox (testing environment): https://sandbox-api.rydoo.com/v2/expenses/exported


Multiple VAT feature in API export

Rydoo supports the possibility to assign multiple VAT rates to a single expense. Below is a high-level overview of what happens when this feature is enabled:

  • Rydoo behavior: a single expense can have multiple VAT rates. When multiple VAT rates are applied, Rydoo creates multiple child expenses (one per VAT rate) linked to a single parent expense in the back-end. While users will still only see the main expense (=parent expense) in Rydoo UI, the database will actually contain multiple child expenses, one per VAT rate, with all other expense data still the same.
  • Integration behavior: The API response will by default contain only the child expenses (split per VAT rate). Integrations will then only process the children.

2 properties are part of the response to identify parent expense and child expense:

  • parentExpenseIdwill be null for parent expense and will contain the guid of the parent expense for child expenses with the single VAT rate.
  • hasChildrenwill be true for a parent expense with multiple VAT rates and false for a child expense with its single VAT rate or any other regular expense/mileage expense/per diem expense. Query parameter includeMultipleVatParent is an optional additional parameter allowing you to force the response to also include the ParentExpense.

When there's an expense with 2 VAT rates, you'll see 2 expenses in the default API response, if parameter includeMultipleVatParent is not used or set to false: 

  • 2 Child expenses with
"parentExpenseId": "expenseGuid of the parent expense",
"hasChildren": false

If query parameter includeMultipleVatParent is set to true in the request, the response will contain 3 expenses:

  • 1 Parent expense with
"parentExpenseId": null,
"hasChildren": true
  • 2 Child expenses with
"parentExpenseId": "expenseGuid of the parent expense",
"hasChildren": false

Best practice

If you want to process VAT as single line items (one posting per VAT rate), no adjustments will be required: Rydoo will publish only the child expenses (one per VAT rate) to the API. If you wish to also include the parent Expense with the total amount and both VAT rates, you can make use of query parameter includeMultipleVatParent to also have the response include the parent expense.

To activate the “Multiple VAT” feature in your Rydoo account, please contact your customer success manager.


Request parameters

NameDescriptionFormat
exportedAtStartDateThe start of the date time range for filtering expenses by export date. This filter expects a date time parameter like 2021-02-20T13:45:09Z. Expenses that are exported on the exportedAtStartDate filter datetime are returned. Timezone is in UTC.query parameter
exportedAtEndDateThe end of the date time range for filtering expenses by export date. This filter expects a date time parameter like 2021-02-21T13:45:09Z. Expenses that are exported on the exportedAtEndDate filter datetime are not returned. Timezone is in UTC.query parameter
limitMaximum number of expenses that will be returned. Default limit is 1000 expenses.query parameter
branchIdFilter to only retrieve the expenses for 1 specific branch. The branchId can be retrieved via the GET /v2/branches endpoint. Only one of userId, groupId, branchId, tripId may be used per request.query parameter
groupIdFilter to only retrieve the expenses for 1 specific group. The groupId can be retrieved via the GET /v2/groups endpoint. Only one of userId, groupId, branchId, tripId may be used per request.query parameter
userIdFilter to only retrieve the expenses of 1 specific user. The userId can be retrieved via the GET /v2/users endpoint. Only one of userId, groupId, branchId, tripId may be used per request.query parameter
tripIdFilter to only retrieve the expenses of 1 specific trip. The tripId can be retrieved from GET /v2/trips endpoint. Only one of userId, groupId, branchId, tripId may be used per request.query parameter
onlyLatestVersionsExpenses can be unreported from the Rydoo tool. If the same expense gets approved and controlled for a second time then this expense would appear again in the export over API. This filter allows you to only retrieve the latest version of the expense. This filter is typically set to true when performing a bulk exports to a reporting tool. Default of this filter is set to false.query parameter (true / false)
startingAfterCursor used for paging. It points to the last entry returned by the previous call, so the next call continues right after it. You don't build this value yourself: it is already included in the links.next URL of every response that has a next page.

Paging

The export endpoint uses cursor-based paging. You never have to calculate page positions yourself — just follow the URL the API gives you.

Make the first call with your filters and, optionally, a limit (default and maximum 1000).
Read links.next from the response and call that URL to get the next page. It already contains all your original filters plus the cursor (startingAfter).
Repeat until the response no longer contains links.next. That means you have retrieved all expenses matching your filters.
links.next is a relative path, so prepend the API host (https://api.rydoo.com, or https://sandbox-api.rydoo.com on the testing environment).


Body response regular expenses

Object name in JSONExampleDescriptionTypeLength (Characters)
exportedAt2021-01-31T12:15:00Date and time at which expense is made available for export. The exportedAtStartDate and exportedAtEndDate filter use this date time value. Timezone is in UTC.datetime
expenseId1b43875e-633e-43ac-8a1c-ad1fd023c490Used to identify the expense within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
refIdXPD012216312Unique reference number of an expense and can be used by the accounting team of the company to search for an expense in Rydoo.string50
typeregularExpense, PerDiem, MileageType of expense. Only 3 options available: regularExpense, PerDiem, Mileagestring14
amount63.00Expense amount (in the original currency)decimal17
netAmount55.00Net amount of the expense. amount - tax amount (in the original currency)decimal17
currencyDKKOriginal currency of the receipt/expense3
expenseDate2018-01-31T00:00:00Date when the expense incurreddatetime
merchantStarbucksMerchant, name of the receipt issuer like Uber, Starbucks, etc.string100
merchantEnterpriseNumberNIF66666Merchant Enterprise numberstring
commentCoffee with ClientValue of the comment field linked to the expensestring750
expenseStatusPossible values: Reported, Approved, Controlled (depends on how approval flow and export to SFTP is set up)Status possibilities: see manuals: http://help.rydoo.com/en/articles/3665677-status-of-an-expensestring10
isReimbursableTRUE if personal Expense, FALSE if company ExpenseLinked to ownership payment method. To be used if an expense is reimbursable or not. Cash payment - reimbursable Company Credit Card - Not Reimbursableboolean
image.urlhttps://streaming.rydoo.com/Receipt/original/9c..Streaming link of the scanned image. The image is not returned via API but can be accessed and downloaded via URL.string155
numberOfAttendees3The number of attendeesintiger
ownerExcludedfalseWas the expense owner excluded from the number of attendees?boolean
amountPerAttendee21Amount per attendeesdecimal
attachments.urlhttps://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/e8704947-9d56-462b-ae4a-7c1a5a2ff7da/download/false/Expense?d=24032021121727Streaming link of the attachment. The attachment is not returned via API but can be accessed and downloaded via URL.string
attendees.ideeb86106-57a2-4c2e-8dc5-0e3e704eb880Used to identify the attendee.
attendees.fullNameAmalia ClaupferFull name of the attendee.
attendees.email[email protected]Email address of the attendee.
attendees.typeGuestType of the attendee (Guest or User)
branch.branchId1f0ee19a-b40d-e711-81fc-005156bf1affUsed to identify a branch within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
branch.refId110Branch ID (chosen/setup by admin in Rydoo)string100
branch.nameMyCompany Denmark BranchName of the branch (Legal Entity)string50
branch.enterpriseNumberDK12345678Enterprise number or VAT number of the branchstring50
branch.currencyDKKCode of the branch's currencystring3
branch.amount63.01Calculated expense amount in branch currencydecimal17
branch.netAmount59.3Calculated expense net amount in branch currencydecimal17
branch.taxAmount3.71Calculated expense amount of VAT in the branch currencydecimal17
group.groupIded82ege0-696a-4739-bfd6-cau25b5249eaUsed to identify a group within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
group.refId2105645Group ID (chosen/setup by admin in Rydoo)string50
group.name2105645 Construction DepartmentName of the group50
user.userId9c843341-af19-4003-84bb-a1d29197beaaUsed to identify a user within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
user.refId123456User ID (chosen/setup in Rydoo, often Vendor number or HR number)string100
user.firstNameJohnFirst name of the user who created the expense.string
user.lastNameAppleseedLaste name of the user who created the expense.string
user.email[email protected]Email address of the user who created the expense.string100
user.ibanBE00000000000001IBAN number of account for reimbursementstring50
category.categoryIdb5a46e5c-1886-4177-81c3-2ce1114be869Used to identify a category within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
category.nameFood and beveragesName of the category (GL account)string50
category.isActiveTRUE or FALSEIndicates if a category is active or not.boolean5
category.accountingcode65001Accounting number or GL codestring50
category.secondaryCode60000Extra accounting number for GL information on Category and can be made available through Advance Settings - Enable secondary category number.string50
customFields.customFieldId990f0bb7-25e1-4fe2-a7d8-2c83b90d138dUsed to identify a custom field within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
customFields.nameCustom field AName of custom field
customFields.isRequiredTRUE or FALSEIndicates if custom field is requiredboolean
customFields.isEnabledTRUE or FALSEIndicates if custom field is enabledboolean
customFields.value490Value of custom field that was selected by the user.
customFields.code490Unique code linked to the custom field value, the data comes from your ERP system
project.projectIddb797814-aed2-46d8-9ad6-7e818caa815aUsed to identify a project within Rydoo and with other API endpoints. Not visible or editable, located in rydoo database.guid36
project.refId1100056111Project ID (chosen/setup by admin in Rydoo)
project.name1100056111 Name of the projectName of the project
trip.tripId1e99a49a-1091-4c7f-55fa-61503f5bd560Used to identify a trip within Rydoo and with other API endpoints. Not visible or editable, located in Rydoo database.guid36
trip.nameTrip to ParisName of the tripstring100
trip.startDate2020-01-31T07:45:00Start date of the tripdatetime
trip.endDate2020-02-12T16:45:00End date of the tripdatetime
trip.refIdTRP013156185System generated ID and is a unique identifier once the trip has been createdstring50
invoice.isInvoiceTRUE or FALSEIndicates the state of the invoice checkboxboolean
invoice.invoiceNumberINV627666Invoice number associated with the expensestring
meansOfPayment.paymentMethodIdfe5hc4b3-9767-4ebf-1084-2ebba4771edeUsed to identify a payment method within Rydoo and with other API endpoints. Not visible or editable, located in Rydoo database.guid
meansOfPayment.paymentMethodCash, Per Diem, Advance, Credit Card, Debit Card, Paypal Account, Transfer, Prepaid Card, Cheque, American Express, Logde Card, Kbc, RydooUser's payment method
meansOfPayment.nameCash, DebitCard, CreditCard, Per Diem, TransferName of the payment method under the User's profile
meansOfPayment.cardOwnershipCompany card or PersonalOwnership of the payment method to see if it is a company card or personaldatetime
meansOfPayment.cardNumber5021 or xxxxLast 4 or 5 digits of Credit Card number. Only present if paid by cardstring19
meansOfPayment.travellerIdDP1201Profile ID if Travel is activated. Note: Lodge Card is necessary.
meansOfPayment.matchStatusNone (no match found or no credit card expense available) / Found (match found but not confirmed yet) / Confirmed (user confirmed the match proposal between the transaction and the ExpenseMatching status of the Expense, Rydoo can be automatically match/reconcile an Expense receipt with a bank transactionstring50
meansOfPayment.transactions.processorTransactionId0843274372984739Transaction reference from bank transaction feedstring
meansOfPayment.transactions.mcFinancialTransactionId9038438095849038Unique transaction id supplied by the bank for this transactionstring
meansOfPayment.transactions.accountNumber123456789Account number associated with the payment methodstring
calculatedCurrencies.amount7.54Expense amount in converted currencydecimal
calculatedCurrencies.netAmount7.10Net amount of expense in converted currencydecimal
calculatedCurrencies.currencyGBPCurrency of converted currency
calculatedCurrencies.taxAmount0.44Tax amount in converted currencydecimal
taxRate.taxAmount3.71Tax amount included in the total expense amount.decimal14
taxRate.taxRate6.25Tax percentagedecimal5
taxRate.taxCodeDK Purchases 6,25%Tax code set up in Rydoo account by adminstring50
taxRate.subRates.amount50Tax amount of the sub rate associated with the expense.decimal
taxRate.subRates.rate5Tax percentage of the sub ratedecimal
taxRate.subRates.nameGSTName of the sub rate set up in Rydoo account by adminstring
hotel.checkIn2020-01-28T00:00:00Check-in date in case of hotel expensedatetime
hotel.checkOut2020-01-31T00:00:00Check-out date in case of hotel expensedatetime
hotel.numberOfNights3Number of nights in case of hotel expensedecimal
location.countryCodeDKCode for country of expense according to ISO 3166-2string2
location.countryDenmarkCountry of the expensestring50
location.regionCapital Region of DenmarkRegion of the Country where expense was incurredstring50
location.cityCopenhagenCity where the expense incurredstring50
linkTravel.linkId605430string50
linkTravel.linkCode8LOJSFstring50
linkTravel.bookingId2121324string50
history.submittedAt2020-01-31T10:30:40.753Date when expense was submitteddatetime
history.approvedAt2020-01-31T11:06:12.793Date when expense was approveddatetime
history.approvedBy[email protected]Email address of the approverstring100
history.controlledAt2020-01-31T16:06:12.793Date when expense was controlleddatetime
history.controlledBy[email protected]Email address of the controllerstring100
rejectReasons.titleDuplicated expense, No receipt, etcTitle of the reject reason
rejectReasons.typeDuplicate, No receiptType of reject reason
countrySpecific.mexico.validationStatusValid or InvalidOnly used for Mexican entities. Rules need to be validated by the government first through e-receiptstring
countrySpecific.mexico.cfdiGuid318b0fe6-235f-499d-adbb-e517b24c6ckdWill be available if ValidationStatus is successfulguid36
countrySpecific.mexico.rfcNumberRCS070607MF9Registro Federal de Contribuyentes: RFC is a tax I.D. number for Mexico.string
countrySpecific.mexico.invalidReasonEl Sello del Pac no coincideIndicates the invalid reason when XML validation returns invalidstring
parentExpenseIdac20133e-ddc7-44a9-b78c-ef7247ce8405ID of the parent expense. Only applicable for a VAT entry.guid
hasChildrenfalseIndicates if expense has VAT entriesboolean
{
  "data": [
    {
      "exportedAt": "2021-01-22T13:45:09Z",
      "expenseId": "e5b1dec2-afec-4201-8c93-09ffa479418c",
      "refId": "XPD012216312",
      "type": "RegularExpense",
      "amount": 1120,
      "netAmount": 1000,
      "currency": "EUR",
      "expenseDate": "2021-01-02",
      "merchant": "Four Seasons",
      "merchantEnterpriseNumber": "58325",
      "comment": null,
      "expenseStatus": "Approved",
      "isReimbursable": false,
      "image": {
        "url": "https://streaming.rydoo.com/Receipt/original/9c843341-af19-4003-84bb-a1d29197beaa/9c843341-af19-4003-84bb-a1d29197beaa/1b43875e-633e-43ac-8a1c-ad1fd023c490"
      },
      "numberOfAttendees": 3,
      "ownerExcluded": false,
      "amountPerAttendee": 373.3,
      "attachments": [
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/e8704947-9d56-462b-ae4a-7c1a5a2ff7da/download/false/Expense?d=24032021121727"
        },
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/f7f5fd35-5fd0-4b28-adc2-d518fadc0fbc/download/false/Expense?d=21122021121616"
        }
      ],
      "attendees": [
       {
         "id": "eeb86106-57a2-4c2e-8dc5-0e3e704eb880",
         "fullName": "Amalia Claupfer",
         "email": "[email protected]",
         "type": "Guest"
        },
        {
         "id": "67e2d9b4-6be1-44e9-a38d-469f96b6a2b3",
         "fullName": "Sandra Malcory",
         "email": "[email protected]",
         "type": "User"
        }
      ],
      "branch": {
        "branchId": "1f0ee19a-b40d-e711-81fc-005156bf1aff",
        "refId": "110",
        "name": "ACMECorp Canada",
        "enterpriseNumber": "110",
        "currency": "CAD",
        "amount": 1756.51,
        "netAmount": 1568.31,
        "taxAmount": 188.2
      },
      "group": {
        "groupId": "ed82ege0-696a-4739-bfd6-cau25b5249ea",
        "refId": "2105645",
        "name": "2105645 Reporting Department"
      },
      "user": {
        "userId": "77738a64-a25d-438f-98d5-5431ee47d84b",
        "refId": "123456",
        "firstName": "Kate",
        "lastName": "Friedman",
        "email": "[email protected]",
        "iban": "BE123145678901"
      },
      "category": {
        "categoryId": "b5a46e5c-1886-4177-81c3-2ce1114be869",
        "name": "Hotels (employees)",
        "isActive": true,
        "accountingCode": null,
        "secondaryCode": null
      },
      "customFields": [
        {
          "customFieldId": "3c0f8d45-bbd1-4c16-89c8-75cf8d9d7ea9",
          "name": "Office location",
          "isRequired": true,
          "isEnabled": true,
          "value": "Toronto",
          "code": "490"
        }
      ],
      "project": {
        "projectId": "db797814-aed2-46d8-9ad6-7e818caa815a",
        "refId": "1100056111",
        "name": "ACMECorp Reports"
      },
      "trip": null,
      "invoice": {
        "isInvoice": true,
        "invoiceNumber": "PL68392"
      },
      "meansOfPayment": {
        "paymentMethodId": "fe5hc4b3-9767-4ebf-1084-2ebba4771ede",
        "paymentMethod": "CreditCard",
        "name": "CompanyCreditCard",
        "cardOwnership": "CompanyCard",
        "cardNumber": "5032",
        "accountNumber": "0532013000",
        "travellerId": null,
        "matchStatus": "Confirmed",
        "transactions": [
          {
            "processorTransactionId": "111-9000474744547474",
            "mcFinancialTransactionId": "0446576452083664145840"
          },
          {
            "processorTransactionId": "132-900084721974474",
            "mcFinancialTransactionId": "0474892346123740571840"
          }
        ]
      },
      "calculatedCurrencies": [
        {
          "amount": 1312.68,
          "netAmount": 1172.04,
          "currency": "USD",
          "taxAmount": 140.64
        },
        {
          "amount": 28809.4,
          "netAmount": 25722.68,
          "currency": "MXN",
          "taxAmount": 3086.72
        }
      ],
      "taxRate": {
        "taxAmount": 120,
        "taxRate": 12,
        "taxCode": "CAN Purchases 12%",
        "subRates": [
          {
            "amount": 50,
            "rate": 5,
            "name": "GST"
          },
          {
            "amount": 70,
            "rate": 7,
            "name": "PST"
          }
        ]
      },
      "hotel": {
        "checkIn": "2021-01-01T10:00:00",
        "checkOut": "2021-01-02T10:00:00",
        "numberOfNights": 1
      },
      "location": {
        "countryCode": "CA",
        "country": "Canada",
        "region": "Ontario",
        "city": "Toronto"
      },
      "linkTravel": null,
      "perDiem": null,
      "mileage": null,
      "history": {
        "submittedAt": "2021-01-02T10:00:00",
        "approvedAt": "2021-01-04T11:06:12.793",
        "approvedBy": "[email protected]",
        "controlledAt": null,
        "controlledBy": null
      },
      "rejectReasons": [
        {
          "title": "Duplicated expense",
          "type": "Duplicate"
        }
      ],
      "countrySpecific": null,
      "parentExpenseId": "ac20133e-ddc7-44a9-b78c-ef7247ce8405",
      "hasChildren": false
    }
  ],
  "links": {
    "next": "/v3/expenses/exported?exportedAtStartDate=2021-01-01T00%3A00%3A00Z&exportedAtEndDate=2021-02-01T00%3A00%3A00Z&startingAfter=48211"
  }
}

Body response mileage expenses

The specific details of mileage expenses are returned in the mileage object which is part of the main expense object.

Object name in JSONExampleDescriptionTypeLength (Characters)
mileageRateNameOwn car (domestic and abroad) 3,90 NOK/kmName of the mileage ratestring100
fromBergen, NorwayFrom address (starting point)string100
toHauglandshella, NorwayTo address (arrival point)string100
distance52.40Distance of the mileage expense according to distance unit of the user OR in case of expenses submitted from mobile distance unit in KMstring13
isBackAndForthTRUE or FALSEIs the mileage expense back and forth?string5
distanceUnitkm or miKilometer or Mile according to distance unit of the user OR in case of expenses submitted from mobile distance unit in KMstring2
mileageRates.mainRate.rate3.90Actual rate per km or mi. Rate set up in Rydoo account by admin.decimal17
mileageRates.mainRate.code135-0000296Code of rate set up in Rydoo account by adminstring50
mileageRates.mainRate.distance52.40Distance of the mileage expense in mileage rate distance unit (Advised to use when mapping)string13
mileageRates.subRates.rate3.90Sub-rate applicable after certain amount of km/mi reached by user.decimal17
mileageRates.subRates.code135-0000296Code of sub-rate set up in Rydoo account by adminstring50
mileageRates.subRates.distance52.40Distance applicable to the sub-rate in distance unit of the mileage expensestring13
{
  "data": [
    {
      "exportedAt": "2021-01-03T15:23:03Z",
      "expenseId": "9e237a2c-0580-4c9e-9b87-7ff2a070ab84",
      "refId": "XPD012216312",
      "type": "Mileage",
      "amount": 82.75,
      "netAmount": 78,
      "currency": "MXN",
      "expenseDate": "2021-01-06",
      "merchant": null,
      "merchantEnterpriseNumber": null,
      "comment": null,
      "expenseStatus": "Controlled",
      "isReimbursable": true,
      "image": null,
      "numberOfAttendees": 1,
      "ownerExcluded": false,
      "amountPerAttendee": 82.75,
      "attachments": [
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/e8704947-9d56-462b-ae4a-7c1a5a2ff7da/download/false/Expense?d=24032021121727"
        },
        {
          "url": "https://streaming.rydoo.com/attachment/fe8e2033-4c60-470c-aad0-c7ab7bcca620/fe8e2033-4c60-470c-aad0-c7ab7bcca620/f7f5fd35-5fd0-4b28-adc2-d518fadc0fbc/download/false/Expense?d=21122021121616"
        }
      ],
      "attendees": [],
      "branch": {
        "branchId": "5c5d9e27-b33b-4bfb-b585-1cbcda0f1443",
        "refId": "113",
        "name": "ACMECorp Mexico",
        "enterpriseNumber": "113",
        "currency": "MXN",
        "amount": 82.75,
        "netAmount": 78,
        "taxAmount": 4.75
      },
      "group": {
        "groupId": "ed82ege0-696a-4739-bfd6-cau25b5249ea",
        "refId": "2105645",
        "name": "2105645 Reporting Department"
      },
      "user": {
        "userId": "10b2bd0f-723b-44e9-a392-f35462827fbc",
        "refId": "654321",
        "firstName": "John",
        "lastName": "Smith",
        "email": "[email protected]",
        "iban": "BE123145671457"
      },
      "category": {
        "categoryId": "046fbf87-4d67-4db0-84ab-cd66f835611f",
        "name": "Mileage (employees)",
        "isActive": true,
        "accountingCode": null,
        "secondaryCode": null
      },
      "customFields": [],
      "project": {
        "projectId": "db797814-aed2-46d8-9ad6-7e818caa815a",
        "refId": "1100056111",
        "name": "ACMECorp Reports"
      },
      "trip": null,
      "invoice": {
        "isInvoice": false,
        "invoiceNumber": null
      },
      "meansOfPayment": {
        "paymentMethodId": null,
        "paymentMethod": null,
        "name": null,
        "cardOwnership": null,
        "cardNumber": null,
        "accountNumber": null,
        "travellerId": null,
        "matchStatus": "None",
        "transactions": []
      },
      "calculatedCurrencies": [],
      "taxRate": {
        "taxAmount": 4.75,
        "taxRate": 6.0906,
        "taxCode": "MXN Mileage",
        "subRates": []
      },
      "hotel": null,
      "location": {
        "countryCode": "MX",
        "country": "Mexico",
        "region": "Mexico",
        "city": "Mexico City"
      },
      "linkTravel": null,
      "perDiem": null,
      "mileage": {
        "mileageRateName": "Own car (domestic and abroad) 2,50 MXN/km",
        "from": "Mexico City, Mexico",
        "to": "Toxcuca, Mexico",
        "distance": 33.1,
        "isBackAndForth": false,
        "distanceUnit": "km",
        "mileageRates": {
          "mainRate": {
            "rate": 2.5,
            "code": "135-0000296",
            "distance": 33.1
          },
          "subRates": [
            {
              "rate": 1.4252,
              "code": "S20",
              "distance": 10
            },
            {
              "rate": 3,
              "code": "S30",
              "distance": 270
            }
          ]
        }
      },
      "history": {
        "submittedAt": "2021-01-07T12:00:00",
        "approvedAt": "2021-01-07T17:21:56.128",
        "approvedBy": "[email protected]",
        "controlledAt": "2021-01-08T17:21:56.128",
        "controlledBy": "[email protected]"
      },
      "rejectReasons": [],
      "countrySpecific": {
        "mexico": {
          "validationStatus": "Valid",
          "cfdiGuid": "318b0fe6-235f-499d-adbb-e517b24c6ckd",
          "rfcNumber": "RCS070607MF9",
          "invalidReason": null
        }
      },
      "parentExpenseId": null,
      "hasChildren": false
    }
  ],
  "links": {
    "next": "/v3/expenses/exported?branchId=1f0ee19a-b40d-e711-81fc-005156bf1aff&onlyLatestVersions=true&limit=500&startingAfter=48711"
  }
}

Body response per diem expenses

Object name in JSONExampleDescriptionTypeLength (Characters)
rate.amount111.00Amount of the per diemsdecimal17
rate.nameAllowance without overnight stay 6-12 hName of the per diem rate set up in Rydoostring50
rate.code111-0000111Rate of the per diem set up in Rydoostring50
duration9:00Duration of the per diemdatetime22
regionNorwayRegion where the per diem was applicablestring50
currencyNOKCurrency of the per diem ratestring3
deductions.nameLunchName of deduction. Only present if specified for certain ratestring50
deductions.code222-0000222Code of deductionstring50
deductions.amount226.2Amount of deductiondecimal17
supplements.nameOvernightName of supplement. Only present if specified for certain ratestring50
supplements.codeOVECode of the supplementstring50
supplements.amount100.00Amount of the supplementdecimal17
{
  "data": [
    {
      "exportedAt": "2021-01-03T15:23:03Z",
      "expenseId": "020c3bd9-1aac-42ac-973a-6ebbfab7bef4",
      "refId": "XPD012216312",
      "type": "PerDiem",
      "amount": 55,
      "netAmount": 52.04,
      "currency": "NOK",
      "expenseDate": "2021-01-03",
      "merchant": null,
      "merchantEnterpriseNumber": null,
      "comment": "Business trip",
      "expenseStatus": "Controlled",
      "isReimbursable": true,
      "image": null,
      "numberOfAttendees": 1,
      "ownerExcluded": false,
      "amountPerAttendee": 55,
      "attachments": [],
      "attendees": [],
      "branch": {
        "branchId": "1f0ee19a-b40d-e711-81fc-005156bf1aff",
        "refId": "111",
        "name": "ACMECorp Norway",
        "enterpriseNumber": "111",
        "currency": "NOK",
        "amount": 55,
        "netAmount": 52.04,
        "taxAmount": 2.96
      },
      "group": {
        "groupId": "ed82ege0-696a-4739-bfd6-cau25b5249ea",
        "refId": "2105645",
        "name": "2105645 Reporting Department"
      },
      "user": {
        "userId": "10b2bd0f-723b-44e9-a392-f35462827fbc",
        "refId": "654321",
        "firstName": "John",
        "lastName": "Smith",
        "email": "[email protected]",
        "iban": "BE123145671457"
      },
      "category": {
        "categoryId": "9e1f22f5-b96f-47de-9bcf-cc2cb54d6477",
        "name": "Per Diem (employees)",
        "isActive": true,
        "accountingCode": null,
        "secondaryCode": null
      },
      "customFields": [],
      "project": {
        "projectId": "db797814-aed2-46d8-9ad6-7e818caa815a",
        "refId": "1100056111",
        "name": "ACMECorp Reports"
      },
      "trip": {
        "tripId": "1e99a49a-1091-4c7f-55fa-61503f5bd560",
        "refId": "TRP013156185",
        "name": "Oslo trip",
        "startDate": "2021-01-02T20:00:00",
        "endDate": "2021-01-03T12:00:00"
      },
      "invoice": {
        "isInvoice": false,
        "invoiceNumber": null
      },
      "meansOfPayment": {
        "paymentMethodId": null,
        "paymentMethod": null,
        "name": null,
        "cardOwnership": null,
        "cardNumber": null,
        "accountNumber": null,
        "travellerId": null,
        "matchStatus": "None",
        "transactions": []
      },
      "calculatedCurrencies": [],
      "taxRate": {
        "taxAmount": 2.96,
        "taxRate": 5.69,
        "taxCode": "NOK Per Diem",
        "subRates": []
      },
      "hotel": null,
      "location": {
        "countryCode": "NO",
        "country": "Norway",
        "region": "Norway",
        "city": "Oslo"
      },
      "linkTravel": {
        "linkId": "605320",
        "linkCode": "8LOJSF",
        "bookingId": "2121324"
      },
      "perDiem": {
        "rate": {
          "amount": 55,
          "name": "Allowance with overnight stay",
          "code": "111-0000111"
        },
        "duration": "16:00",
        "region": "Norway",
        "currency": "NOK",
        "deductions": [
          {
            "name": "Lunch",
            "code": "222-0000222",
            "amount": 8.2
          }
        ],
        "supplements": [
          {
            "name": "Overnight",
            "code": "OVE",
            "amount": 30
          }
        ]
      },
      "mileage": null,
      "history": {
        "submittedAt": "2021-01-03T12:00:00",
        "approvedAt": "2021-01-05T17:21:56.128",
        "approvedBy": "[email protected]",
        "controlledAt": "2021-01-06T17:21:56.128",
        "controlledBy": "[email protected]"
      },
      "rejectReasons": [],
      "countrySpecific": null,
      "parentExpenseId": null,
      "hasChildren": false
    }
  ],
  "links": {}
}