Skip to main content

Get Purchase Order Audit

curl -X GET "https://api.example.com/api/provisions/purchase/order/audit?TypeFilter=3&Page=1&PagSize=50" \
  -H "Authorization: Basic <base64-credentials>"
Retrieves purchase order audit data from the Auditoría órdenes de compra grid.

Endpoint

GET /api/provisions/purchase/order/audit

Authentication

This endpoint requires authentication via Basic Authentication.

Query Parameters

TypeFilter
integer
required
Type of filter:
  • 1 = Previous day
  • 2 = Previous month
  • 3 = Current month
  • 4 = Previous year
  • 5 = Specific month and year
Month
integer
Specific month to search. Valid range: 1-12. Required when TypeFilter is 5.
Year
integer
Specific year. Valid values from the previous year onwards. Required when TypeFilter is 5.
Page
integer
default:"1"
Page number, starts with 1.
PagSize
integer
Number of records to retrieve per page.

Response

currentPage
integer
The current page number being returned.
gridName
string
Name of the grid (e.g., “AuditoriaOC”).
gridId
integer
Unique identifier for the grid.
totalRecordsReturned
integer
Number of records returned in the current page.
totalPages
integer
Total number of pages available.
totalRecords
integer
Total number of records matching the query.
dataRecord
object
Contains the field definitions and row data.
{
  "currentPage": 1,
  "gridName": "AuditoriaOC",
  "gridId": 12346,
  "totalRecordsReturned": 30,
  "totalPages": 3,
  "totalRecords": 85,
  "dataRecord": {
    "fields": [
      {
        "id": 1,
        "label": "Order Number",
        "name": "orderNumber",
        "order": 1,
        "type": "string",
        "visible": true,
        "width": 150
      },
      {
        "id": 2,
        "label": "Audit Date",
        "name": "auditDate",
        "order": 2,
        "type": "date",
        "visible": true,
        "width": 120
      },
      {
        "id": 3,
        "label": "Status",
        "name": "status",
        "order": 3,
        "type": "string",
        "visible": true,
        "width": 100
      }
    ],
    "rows": [
      {
        "orderNumber": "PO-2026-001",
        "auditDate": "2026-03-01T10:30:00Z",
        "status": "Approved"
      },
      {
        "orderNumber": "PO-2026-002",
        "auditDate": "2026-03-02T14:15:00Z",
        "status": "Pending"
      }
    ]
  }
}

Response Codes

  • 200 OK: Successfully retrieved purchase order audit data
  • 401 Unauthorized: Missing or invalid authentication token
  • 500 Internal Server Error: Server error occurred while processing the request

Caching

This endpoint is cached for 900 seconds (15 minutes).

Get Purchase Order Finance View

curl -X GET "https://api.example.com/api/provisions/view/purchase/order?TypeFilter=3&Page=1&PagSize=50" \
  -H "Authorization: Basic <base64-credentials>"
Retrieves purchase order data from the finance view (Vista finanzas OC grid).

Endpoint

GET /api/provisions/view/purchase/order

Authentication

This endpoint requires authentication via Basic Authentication.

Query Parameters

TypeFilter
integer
required
Type of filter:
  • 1 = Previous day
  • 2 = Previous month
  • 3 = Current month
  • 4 = Previous year
  • 5 = Specific month and year
Month
integer
Specific month to search. Valid range: 1-12. Required when TypeFilter is 5.
Year
integer
Specific year. Valid values from the previous year onwards. Required when TypeFilter is 5.
Page
integer
default:"1"
Page number, starts with 1.
PagSize
integer
Number of records to retrieve per page.

Response

currentPage
integer
The current page number being returned.
gridName
string
Name of the grid (e.g., “VistaFinanzasOC”).
gridId
integer
Unique identifier for the grid.
totalRecordsReturned
integer
Number of records returned in the current page.
totalPages
integer
Total number of pages available.
totalRecords
integer
Total number of records matching the query.
dataRecord
object
Contains the field definitions and row data.
{
  "currentPage": 1,
  "gridName": "VistaFinanzasOC",
  "gridId": 12347,
  "totalRecordsReturned": 20,
  "totalPages": 5,
  "totalRecords": 95,
  "dataRecord": {
    "fields": [
      {
        "id": 1,
        "label": "Order Number",
        "name": "orderNumber",
        "order": 1,
        "type": "string",
        "visible": true,
        "width": 150
      },
      {
        "id": 2,
        "label": "Amount",
        "name": "amount",
        "order": 2,
        "type": "decimal",
        "visible": true,
        "width": 120
      },
      {
        "id": 3,
        "label": "Currency",
        "name": "currency",
        "order": 3,
        "type": "string",
        "visible": true,
        "width": 80
      },
      {
        "id": 4,
        "label": "Supplier",
        "name": "supplier",
        "order": 4,
        "type": "string",
        "visible": true,
        "width": 200
      }
    ],
    "rows": [
      {
        "orderNumber": "PO-2026-001",
        "amount": 15000.50,
        "currency": "USD",
        "supplier": "ABC Corporation"
      },
      {
        "orderNumber": "PO-2026-002",
        "amount": 8500.00,
        "currency": "USD",
        "supplier": "XYZ Industries"
      }
    ]
  }
}

Response Codes

  • 200 OK: Successfully retrieved purchase order finance view data
  • 401 Unauthorized: Missing or invalid authentication token
  • 500 Internal Server Error: Server error occurred while processing the request

Caching

This endpoint is cached for 900 seconds (15 minutes).

Build docs developers (and LLMs) love