Electronic receipt lines

Details for each electronic receipt line on the electronic receipt.

List electronic receipt lines

get/objects/expenses/electronic-receipt-line

Returns a collection with a key, ID, and link for each electronic receipt line.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "100",
      • "id": "100",
      • "href": "/objects/expenses/electronic-receipt-line/100"
      },
    • {
      • "key": "101",
      • "id": "101",
      • "href": "/objects/expenses/electronic-receipt-line/101"
      },
    • {
      • "key": "102",
      • "id": "102",
      • "href": "/objects/expenses/electronic-receipt-line/102"
      }
    ],
  • "ia::meta": {
    • "totalCount": 3,
    • "start": 1,
    • "pageSize": 5,
    • "next": 0,
    • "previous": 0
    }
}

Get an electronic receipt line

get/objects/expenses/electronic-receipt-line/{key}

Returns detailed information for a specified electronic receipt line.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the electronic receipt line.

Example: 7
Responses
200

OK

400

Bad Request

Request samples
Response samples
application/json
{
  • "ia::result": {
    • "key": "312",
    • "id": "312",
    • "electronic-receipt": {
      • "id": "136",
      • "key": "136",
      • "href": "/objects/expenses/electronic-receipt/136"
      },
    • "glAccount": {
      • "key": "158",
      • "id": "6775.30",
      • "name": "Travel",
      • "href": "/objects/gl-account/account/158"
      },
    • "entryDate": "2021-03-11",
    • "paidTo": "Stella Johnson",
    • "paidFor": "Hotel stay",
    • "dimensions": {
      • "location": {
        },
      • "department": {
        },
      • "class": {
        },
      • "item": {
        },
      • "employee": {
        },
      • "vendor": {
        },
      • "customer": {
        },
      • "project": {
        },
      • "task": {
        },
      • "warehouse": {
        }
      },
    • "lineNumber": 1,
    • "expenseType": {
      • "key": "Meals",
      • "id": "6000"
      },
    • "state": "draft",
    • "quantity": "5",
    • "unitRate": "20",
    • "currency": "USD",
    • "txnAmount": "100",
    • "href": "/objects/expenses/electronic-receipt-line/312"
    },
  • "ia::meta": {
    • "totalCount": 1
    }
}

Query electronic receipt lines

post/services/core/query

Use the query service to find electronic receipt lines that meet certain criteria and to specify the properties that are returned.

SecurityOAuth2
Responses
200

OK

Request samples