AlphaAlpha Docs

P O Approval Settings

API calls for managing purchase order approval rules

Get PO approval settings

GET
/purchase-orders/approval-settings
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/purchase-orders/approval-settings"
{
  "enabled": true,
  "globalApproverUserIds": [
    "string"
  ],
  "id": "string",
  "rules": [
    {
      "amountThreshold": 0.1,
      "approvalMode": "ANY",
      "approverUserIds": [
        "string"
      ],
      "id": "string",
      "subsidiaryId": "string",
      "supplierId": "string"
    }
  ],
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Update PO approval settings

PATCH
/purchase-orders/approval-settings
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/purchase-orders/approval-settings" \  -H "Content-Type: application/json" \  -d '{}'
{
  "enabled": true,
  "globalApproverUserIds": [
    "string"
  ],
  "id": "string",
  "rules": [
    {
      "amountThreshold": 0.1,
      "approvalMode": "ANY",
      "approverUserIds": [
        "string"
      ],
      "id": "string",
      "subsidiaryId": "string",
      "supplierId": "string"
    }
  ],
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}