Get list of purchase invoices

GET /api-v1/purchase-invoice

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • comment string
    • creatorContactId integer
    • currency string
    • date string(date-time)
    • fileExtension string
    • fileId integer
    • flagsAmount integer(int32)
    • hasComments boolean
    • hasWarnings boolean
    • id integer
    • isInWorkflow boolean
    • journalEntryId integer
    • netAmount number
    • organizationId integer
    • payable number
    • reference string
    • shipmentsCount integer
    • status string

      Values are UNPAID, OVERDUE, PAID, PARTIALLY_PAID, WIRED, or DRAFT.

    • supplier string
    • supplierId integer
    • systemValidated boolean
    • totalAmount number
    • validated boolean
    • warnings string
    • workflowPermissions string
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

GET /api-v1/purchase-invoice
curl \
 --request GET 'https://wyzio.app/api-v1/purchase-invoice' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
[
  {
    "comment": "string",
    "creatorContactId": 42,
    "currency": "string",
    "date": "2025-05-04T09:42:00Z",
    "fileExtension": "string",
    "fileId": 42,
    "flagsAmount": 42,
    "hasComments": true,
    "hasWarnings": true,
    "id": 42,
    "isInWorkflow": true,
    "journalEntryId": 42,
    "netAmount": 42.0,
    "organizationId": 42,
    "payable": 42.0,
    "reference": "string",
    "shipmentsCount": 42,
    "status": "UNPAID",
    "supplier": "string",
    "supplierId": 42,
    "systemValidated": true,
    "totalAmount": 42.0,
    "validated": true,
    "warnings": "string",
    "workflowPermissions": "string"
  }
]