latestOpenAPI 3.0.32026-08-224982,0272.8 MB

e445c15e5bee

Pending approval

List pending approvals

get/api/v2/pendingApprovals

Query parameters

prevIdstring
Example:59cd72485007a239fb00282ed480da1f

Return the next batch of results, based on the nextBatchPrevId value from the previous batch.

limitinteger

Maximum number of results to return. If the result set is truncated, use the nextBatchPrevId value to get the next batch.

coinCoin[]

Filter by coin

[
  "btc"
]
enterpriseIdstring
Example:59cd72485007a239fb00282ed480da1f

Filter by enterprise

organizationIdstring
Example:59cd72485007a239fb00282ed480da1f

Filter by organization

requestType'enterpriseInviteRequest' | 'genericRequest' | 'policyRuleRequest' | 'transactionRequest' | 'transactionRequestFull' | 'updateApprovalsRequiredRequest' | 'updateEnterpriseRequest' | 'updateOrganizationRequest' | 'userChangeRequest'

Filter by request type. The default behavior is to return all request types.

statePendingApprovalStatePending1[]

Filter by state. The default behavior is to return objects where state is awaitingSignature, pending, or pendingFinalApproval

walletIdstring
Example:59cd72485007a239fb00282ed480da1f

Filter by wallet

expandWalletLabelsboolean

True, if adding walletLabel to each returned pending approval associated with a wallet

expandAddressLabelsboolean

If true, adds addressLabels to each returned pending approval associated with recipient's addresses

Response

OK

Example response

{
  "pendingApprovals": [
    {
      "id": "59cd72485007a239fb00282ed480da1f",
      "coin": "btc",
      "wallet": "59cd72485007a239fb00282ed480da1f",
      "enterprise": "59cd72485007a239fb00282ed480da1f",
      "organization": "59cd72485007a239fb00282ed480da1f",
      "creator": "59cd72485007a239fb00282ed480da1f",
      "info": {
        "transactionRequest": {
          "fee": "2000000",
          "recipients": [
            {
              "address": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS",
              "amount": "2000000"
            }
          ],
          "requestedAmount": "2000000",
          "sourceWallet": "59cd72485007a239fb00282ed480da1f",
          "triggeredPolicy": "59cd72485007a239fb00282ed480da1f"
        }
      },
      "userIds": [
        "59cd72485007a239fb00282ed480da1f"
      ],
      "approvalsRequired": 1,
      "addressLabels": [
        {
          "address": "2MvrwRYBAuRtPTiZ5MyKg42Ke55W3fZJfZS",
          "label": "Bob's Hot Wallet Address",
          "walletLabel": "My Wallet"
        }
      ]
    }
  ]
}