Endpoints |
|
GET /ping | In
the ApprovalMax Public API, the GET /ping endpoint is a simple endpoint used
for checks the overall availability and responsiveness of the ApprovalMax
Public API. When a GET request is made to the /ping endpoint, the API will respond with a success status code (e.g., 200 OK) and a simple message indicating that the API is available and operational. |
GET /api/v1/companies | The GET /api/v1/companies endpoint in the ApprovalMax API allows you to retrieve information about the Organisations embedded in token. When a GET request is made to this endpoint, the API returns a response containing a list of Organisations: name and companyId. |
GET /api/v1/companies/:companyId/xero/purchase-orders/:requestId | This endpoint allows you to retrieve specific Purchase Order details for a particular Organisation you have provided access to. To use this endpoint, you will need to replace :companyId with the unique identifier of the Organisation and :requestId with the unique identifier of the Purchase Order you are interested in. When a GET request is made to this endpoint, the API will return a response containing the details of the Purchase Order. The response includes information such as the Purchase Order number, date, item details, quantities, and any additional relevant data related to the Purchase Order. |
GET /api/v1/companies/:companyId/xero/purchase-orders | This endpoint allows you to retrieve a list of Purchase Orders associated with a specific Organisation in Xero you have provided access to. To use this endpoint, you will need to replace :companyId with the unique identifier of the Organisation you are interested in, and, optionally, select the request status, specify dates, select the preferred sorting, input pagination and number of the request per page. When a GET request is made to this endpoint, the API will return a response containing a list of Purchase Orders with selected parameters associated with the specified Organisation. |
GET api/v1/companies/:companyId/xero/bills/:requestId | This endpoint allows you to retrieve specific Bill details for a particular Organisation you have provided access to. To use this endpoint, you will need to replace :companyId with the unique identifier of the Organisation and :requestId with the unique identifier of the Bill you are interested in. When a GET request is made to this endpoint, the API will return a response containing the details of the Bill. The response includes information such as the Bill number, date, item details, quantities, and any additional relevant data related to the Bill. |
GET /api/v1/companies/:companyId/xero/bills | This endpoint allows you to retrieve a list of Bills associated with a specific Organisation in Xero you have provided access to. To use this endpoint, you will need to replace :companyId with the unique identifier of the Organisation you are interested in, and, optionally, select the request status, specify dates, select the preferred sorting, input pagination and number of the request per page. When a GET request is made to this endpoint, the API will return a response containing a list of Bills with selected parameters associated with the specified Organisation. |
GET api/v1/companies/:companyId/xero/batch-payment/:requestId | This endpoint allows you to retrieve specific Batch Payment details for a particular Organisation you have provided access to. To use this endpoint, you will need to replace :companyId with the unique identifier of the Organisation and :requestId with the unique identifier of the Batch Payment you are interested in. When a GET request is made to this endpoint, the API will return a response containing the details of the Batch Payment. The response includes information such as the Batch Payment number, date, item details, quantities, and any additional relevant data related to the Batch Payment. |
GET /api/v1/companies/:companyId/xero/batch-payment | This endpoint allows you to retrieve a list of Batch Payments associated with a specific Organisation in Xero you have provided access to. To use this endpoint, you will need to replace :companyId with the unique identifier of the Organisation you are interested in, and, optionally, select the request status, specify dates, select the preferred sorting, input pagination and number of the request per page. When a GET request is made to this endpoint, the API will return a response containing a list of Batch Payments with selected parameters associated with the specified Organisation. |