Returns a collection with a key, ID, and link for each electronic receipt.
OK
Bad Request
{- "ia::result": [
- {
- "key": "84",
- "id": "EXP-00001",
- "href": "/objects/expenses/electronic-receipt/84"
}, - {
- "key": "85",
- "id": "EXP-00002",
- "href": "/objects/expenses/electronic-receipt/85"
}, - {
- "key": "60",
- "id": "EXP-00003",
- "href": "/objects/expenses/electronic-receipt/60"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 5,
- "next": 0,
- "previous": 0
}
}
Creates a new electronic receipt.
You must specify a unique electronic receipt ID when creating an electronic receipt unless document sequencing is configured, in which case the ID is auto-generated.
Creates an electronic receipt
required | object Employee that incurred the expense. | ||||||||||||||||||||
| |||||||||||||||||||||
createdDate required | string <date> Date the electronic receipt was created. Example: "2021-01-23" | ||||||||||||||||||||
state | string Default: "draft" Status of the electronic receipt. Example: "draft" | ||||||||||||||||||||
receiptNumber | string Number associated with the electronic receipt. Example: "EXP-00001" | ||||||||||||||||||||
description | string Reason for the receipt. Example: "Supplies for customer training" | ||||||||||||||||||||
object An attachment for electronic receipts could be scanned or digital receipts. | |||||||||||||||||||||
| |||||||||||||||||||||
Array of objects Line items of the electronic receipt. | |||||||||||||||||||||
Array
|
Created
Bad Request
{- "state": "draft",
- "receiptNumber": "EXP-00001",
- "employee": {
- "key": "10"
}, - "createdDate": "2021-03-11",
- "description": "Travel expense",
- "memo": "Paid to employee",
- "lines": [
- {
- "glAccount": {
- "id": "6775.30"
}, - "paidTo": "Stella Johnson",
- "paidFor": "Hotel stay",
- "quantity": "10",
- "unitRate": "20",
- "currency": "INR",
- "txnAmount": "100",
- "dimensions": {
- "location": {
- "id": "1"
}, - "department": {
- "id": "1"
}, - "class": {
- "id": "REST_CLS_001"
}, - "item": {
- "id": "Case 13"
}, - "employee": {
- "key": "10"
}, - "vendor": {
- "id": "1605212096809"
}, - "customer": {
- "id": "113"
}, - "project": {
- "id": "NET-XML30-2"
}, - "warehouse": {
- "id": "WH01"
}, - "task": {
- "id": "tet"
}
}
}
]
}
{- "ia::result": {
- "key": "124",
- "id": "124",
- "href": "/objects/expenses/electronic-receipt/124"
}, - "ia::meta": {
- "totalCount": 1
}
}
Returns detailed information for a specified electronic receipt.
key required | string System-assigned key for the electronic-receipt. Example: 6 |
OK
Bad Request
{- "ia::result": {
- "receiptNumber": "ER-0152",
- "employee": {
- "id": "EMP8",
- "key": "10",
- "href": "/objects/company-config/employee/10"
}, - "employeeContact": {
- "key": "977",
- "id": "Thomas, Glenn",
- "firstName": "Glenn",
- "lastName": "Thomas",
- "href": "/objects/company-config/employee/10"
}, - "key": "124",
- "id": "124",
- "createdDate": "2021-03-11",
- "state": "draft",
- "totalAmount": "1000",
- "currency": "USD",
- "baseCurrency": "USD",
- "baseAmount": "120",
- "description": "Supplies for customer training",
- "lines": [
- {
- "key": "288",
- "id": "288",
- "electronicReceipt": {
- "id": "124",
- "key": "124",
- "href": "/objects/expenses/electronic-receipt/124"
}, - "quantity": "10",
- "glAccount": {
- "key": "158",
- "id": "6775.30",
- "name": "Travel",
- "href": "/objects/general-ledger/account/158"
}, - "entryDate": "2021-03-11",
- "paidTo": "Stella Johnson",
- "paidFor": "Hotel stay",
- "expenseType": {
- "key": "Meals",
- "id": "6000"
}, - "state": "draft",
- "unitRate": "100",
- "lineNumber": 1,
- "currency": "INR",
- "txnAmount": "1000",
- "attachment": {
- "key": "1",
- "id": "1",
- "href": "/objects/company-config/attachment/12345"
}, - "dimensions": {
- "location": {
- "key": "1",
- "id": "1",
- "name": "USA",
- "href": "/objects/company-config/location/1"
}, - "department": {
- "key": "1",
- "id": "1",
- "name": "IT",
- "href": "/objects/company-config/department/1"
}, - "class": {
- "key": "731",
- "id": "REST_CLS_001",
- "name": "Education",
- "href": "/objects/company-config/class/731"
}, - "item": {
- "key": "13",
- "id": "13",
- "name": "Support",
- "href": "/objects/inventory-control/item/13"
}, - "employee": {
- "key": "10",
- "id": "EMP8",
- "name": "Thomas, Glenn",
- "href": "/objects/company-config/employee/10"
}, - "vendor": {
- "key": "357",
- "id": "1605212096809",
- "name": "Boston Properties",
- "href": "/objects/accounts-payable/vendor/357"
}, - "customer": {
- "key": "13",
- "id": "113",
- "name": "Jack In the Box",
- "href": "/objects/accounts-payable/customer/13"
}, - "project": {
- "key": "2",
- "id": "NET-XML30-2",
- "name": "Binford Implementation",
- "href": "/objects/projects/project/2"
}, - "task": {
- "key": "2",
- "id": "tet",
- "name": "Implementation services",
- "href": "/objects/projects/task/2"
}, - "warehouse": {
- "key": "6",
- "id": "WH01",
- "name": "WH01 Name",
- "href": "/objects/inventory-control/warehouse/6"
}
}, - "href": "/objects/expenses/electronic-receipt-line/288"
}
], - "memo": "Covered by customer",
- "href": "/objects/expenses/electronic-receipt/124"
}, - "ia::meta": {
- "totalCount": 1
}
}
Updates an existing electronic receipt by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the electronic-receipt. Example: 6 |
state | string Default: "draft" Status of the electronic receipt. Example: "draft" | ||||||||||||||||||||
receiptNumber | string Number associated with the electronic receipt. Example: "EXP-00001" | ||||||||||||||||||||
description | string Reason for the receipt. Example: "Supplies for customer training" | ||||||||||||||||||||
object An attachment for electronic receipts could be scanned or digital receipts. | |||||||||||||||||||||
| |||||||||||||||||||||
Array of objects Line items of the electronic receipt. | |||||||||||||||||||||
Array
|
OK
Bad Request
{- "memo": "Covered by customer"
}
{- "ia::result": {
- "key": "124",
- "id": "124",
- "href": "/objects/expenses/electronic-receipt/124"
}, - "ia::meta": {
- "totalCount": 1
}
}
Deletes an electronic receipt.
key required | string System-assigned key for the electronic-receipt. Example: 6 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find electronic receipts that meet certain criteria and to specify the properties that are returned.
OK