API ReferenceAp invoices
Get page by page number and size with optional sorting based on field to sortBy and direction
AuthorizationBearer <token>
In: header
Query Parameters
pageNumber?integer
Format
int32pageSize?integer
Format
int32sortBy?string
direction?string
Value in
"ASC" | "DESC"search?string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:18080/api/v1/ap-invoices/page"{
"content": [
{
"attachments": [
{
"blobId": "string",
"created": "2019-08-24T14:15:22Z",
"extension": "string",
"fileSize": 0,
"name": "string",
"type": "IMAGE"
}
],
"classification": {
"category": "string",
"costCenterId": "string",
"glAccountId": "string",
"projectId": "string",
"subcategory": "string"
},
"classificationMethod": "MANUAL",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"currency": "string",
"dueDate": "2019-08-24T14:15:22Z",
"events": [
{
"authorId": "string",
"date": "2019-08-24T14:15:22Z",
"description": "string",
"id": "string",
"type": "CREATE"
}
],
"id": "string",
"invoiceDate": "2019-08-24T14:15:22Z",
"invoiceNumber": "string",
"linkedPurchaseOrders": [
{
"allocatedAmount": 0.1,
"costType": "PRODUCT",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"purchaseOrderId": "string",
"stockAdjustmentApplied": true
}
],
"note": "string",
"number": "string",
"outstandingAmount": 0.1,
"paidAmount": 0.1,
"paidDate": "2019-08-24T14:15:22Z",
"paymentStatus": "UNPAID",
"payments": [
{
"amount": 0.1,
"bankTransactionId": "string",
"created": "2019-08-24T14:15:22Z",
"createdBy": "string",
"date": "2019-08-24T14:15:22Z",
"id": "string",
"note": "string",
"paymentMethod": "BANK_TRANSFER",
"reference": "string"
}
],
"pdf": {
"blobId": "string",
"created": "2019-08-24T14:15:22Z",
"extension": "string",
"fileSize": 0,
"name": "string",
"type": "IMAGE"
},
"receivedDate": "2019-08-24T14:15:22Z",
"referenceNumber": "string",
"rows": [
{
"description": "string",
"glAccountId": "string",
"id": "string",
"productId": "string",
"quantity": 0.1,
"taxAmount": 0.1,
"taxRate": 0.1,
"total": 0.1,
"totalWithTax": 0.1,
"unitPrice": 0.1
}
],
"status": "DRAFT",
"subsidiaryId": "string",
"subtotal": 0.1,
"supplierId": "string",
"supplierName": "string",
"taxAmount": 0.1,
"tenantId": "string",
"totalAmount": 0.1,
"totalLinkedAmount": 0.1,
"unlinkedAmount": 0.1,
"updated": "2019-08-24T14:15:22Z",
"updatedBy": "string"
}
],
"empty": true,
"first": true,
"last": true,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 0,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 0,
"totalPages": 0
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}{
"detail": "string",
"time": "2019-08-24T14:15:22Z",
"title": "string"
}