Requests

Approve Request

Changed on

Endpoint to approve an Request by ID. Payload depends on the request type (GOODS_OR_SERVICES, FUNDS, TRIP).

put/business/v2/requests/{requestId}/approve

Request

Path parameters

requestIdstring required

The Request ID.

Example:7bf79328-a7ae-4222-aa54-091ff7f429a7

Request body

notestring

The supervisor's note of the Request.

approverstring required

The requester's note of the Request .

type'GOODS_OR_SERVICES' | 'FUNDS' | 'TRIP' required
wallet_idstring required

The ID of the Wallet of Request, the request type is Funds or BusinessTrip.

Example request

{
  "note": "Requester note",
  "approver": "XMPL1234-000001",
  "wallet_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7"
}

Response

No content as result.

Changes

    • breaking

      added the new required request property

    • breaking

      removed the enum value GOODS_OR_SERVICES of the request property

    • warning

      removed the request property

    • info

      added FUNDS GOODS_OR_SERVICES TRIP mapping keys to the request discriminator

    • info

      added the new GOODS_AND_SERVICES enum value to the request property

    • info

      endpoint added