Approvals
Submit an Approval Action
Approve or reject a change request waiting for approval (a transaction, vault, contact, or bank account) with a signed approval message.
Request example
POST
/api/external/change_requests/approvals/{approvalId}/action/
Send the signed approval message from Get Approval Message to approve or reject. See Approvals for the full flow.
Path parameter
string
required
The
approvalId returned by Get Approval Message.Request body
ApprovalAction
required
approve or reject. See ApprovalAction.string
required
Hex-encoded ECDSA (SHA-256) signature of the approval
message, made with your API user’s private key.string
Note recorded with the action. The SDK sends
ok unless you pass another value.Response
Returns an ApprovalActionResponse.boolean
Whether PrimeVault accepted the action.
string
Approval status after the action.
string
ID of the approval record.
string
ID of the transaction, vault, contact, or bank account the action applied to.
After you approve, fetch the entity to confirm its state:
- Transaction: Retrieve a Transaction or webhooks until it reaches
COMPLETED,FAILED, orDECLINED. - Vault: Retrieve a Vault.
- Contact: Retrieve a Contact. Status moves from
PENDINGtoAPPROVEDorDECLINED. - Bank account: Retrieve a Bank Account. Status moves from
PENDINGtoAPPROVEDorDECLINED.
Request example