In the list below you will find the endpoints related to Voucher Types and the actions related to them:
Detail
This endpoint enables you to show the details of any voucher type.
Uri:
/api/v2/third_party/voucher_types/{id}
Method:
GET
Header:
'X-SIMA-APIKEY: {API-KEY}', 'X-SIMA-SYSTEM-ID: {API-SYSTEM-ID}', 'Accept: application/json', 'Content-Type: application/json'
Parameters:
id: (int) This value is the id of the voucher type you would like to get the details.
Response Example:
{ "id": 7, "description": "Orden de Aplicación" }
List
This endpoint enables you to list all voucher types.
Uri:
/api/v2/third_party/voucher_types
Method:
GET
Header:
'X-SIMA-APIKEY: {API-KEY}', 'X-SIMA-SYSTEM-ID: {API-SYSTEM-ID}', 'Accept: application/json', 'Content-Type: application/json'
Parameters:
page: (int) default value 1 size: (int) default value 10
Response Example:
{ "items": [ { "id": 7, "description": "Orden de Aplicación" }, { "id": 18, "description": "Orden de Fertilización" }, { "id": 19, "description": "Orden de Cosecha" }, { "id": 17, "description": "Orden de Siembra" } ], "current_page": 1, "next_page": 1, "total_pages": 1, "total_items": 4 }