AlphaAlpha Docs
API ReferenceAp invoices

Dynamic Search Post_ A P Invoice

POST
/ap-invoices/dynamic-search
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/ap-invoices/dynamic-search" \  -H "Content-Type: application/json" \  -d '{    "filters": {      "property1": null,      "property2": null    },    "page": 0,    "search": [      "string"    ],    "size": 0,    "sort": [      {        "ascending": true,        "field": "string"      }    ]  }'
{
  "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"
}