Document Lines
Retrieves the lines of the document during the authorization workflow
This API resource is only available to Premium APPs.
GET /authorization/:documentId/lines
Collection properties
Property | Type | Description |
---|---|---|
lines | Array | A list of the document's lines |
_links | Array | A list of useful preconfigured URI's a client app can use to navigate this resource collection. |
_metadata | Complex object | Optional object with additional information concerning the current returned result. |
Line
Property | Type | Description |
---|---|---|
index | integer | Index number. |
accountCode | string | Account code. |
accountName | string | Account name. |
amount | decimal | Line amount. |
project | string | Project name. |
costCenter | string | Cost center name. |
costUnit | string |
Cost unit name.
Note: currently, supported only on Unit4 companies. |
description | string | Description of the transaction line. |
Example response
{ "lines":[ { "index": 0, "accountCode": "AccountCode1", "accountName": "AccountName1", "amount": 10.00, "project": "Project1", "costCenter": "CostCenter1", "costUnit": "CostUnit1", "description": "Description1" }, { "index": 1, "accountCode": "AccountCode2", "accountName": "AccountName2", "amount": 5, "project": "Project2", "costCenter": null, "costUnit": "CostUnit2", "description": "Description2" } ], "_metadata": { "total": 2, "count": 2 }, "_links": [ { "rel": "self", "href": "https://api.basecone.com/authorization/65cd4649-29f7-4c5b-9b61-f1fb4551ff63/lines?limit=20&offset=0" } ] }