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
Type of filter:
1 = Previous day
2 = Previous month
3 = Current month
4 = Previous year
5 = Specific month and year
Specific month to search. Valid range: 1-12. Required when TypeFilter is 5.
Specific year. Valid values from the previous year onwards. Required when TypeFilter is 5.
Page number, starts with 1.
Number of records to retrieve per page.
Response
The current page number being returned.
Name of the grid (e.g., “AuditoriaOC”).
Unique identifier for the grid.
Number of records returned in the current page.
Total number of pages available.
Total number of records matching the query.
Contains the field definitions and row data.Show dataRecord properties
Array of field definitions.
Display label for the field.
Display order of the field.
Whether the field is visible by default.
Display width of the field.
Array of data rows, each represented as a dictionary with field names as keys.
{
"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
Type of filter:
1 = Previous day
2 = Previous month
3 = Current month
4 = Previous year
5 = Specific month and year
Specific month to search. Valid range: 1-12. Required when TypeFilter is 5.
Specific year. Valid values from the previous year onwards. Required when TypeFilter is 5.
Page number, starts with 1.
Number of records to retrieve per page.
Response
The current page number being returned.
Name of the grid (e.g., “VistaFinanzasOC”).
Unique identifier for the grid.
Number of records returned in the current page.
Total number of pages available.
Total number of records matching the query.
Contains the field definitions and row data.Show dataRecord properties
Array of field definitions.
Display label for the field.
Display order of the field.
Whether the field is visible by default.
Display width of the field.
Array of data rows, each represented as a dictionary with field names as keys.
{
"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).