Skip to main content

Documentación

Change Wallet Status

Disable, enable, or close a Rapyd Wallet.

This method triggers the Wallet Status Changed Webhook.

In addition, disabling a wallet triggers the Wallet Disabled Webhook, enabling a wallet triggers the Wallet Enabled Webhook, and closing a wallet triggers the Wallet Closed Webhook.

The webhooks contain the same information as the response.

Disable a wallet to prevent the following actions:

  • Moving money into or out of the wallet.

  • Issuing a bank account number or card to the wallet.

Disable a wallet when the customer requests it, or while you conduct an investigation. Disabling a wallet changes the status of the wallet to DIS (disabled).

Enable a wallet to reverse the process. Enabling a wallet changes the status of the wallet to ACT (enabled and active).

Close a wallet to permanently disable it. The wallet must have no balances, no pending transactions, and no open virtual accounts. Closing a wallet changes the status of the wallet to CLO (permanently closed). You cannot change the status of a closed wallet.

Nota

This endpoint replaces the following deprecated endpoints:

  • PUT /v1/user/enable

  • PUT /v1/user/disable

Rapyd no longer supports the deprecated endpoints.

    • ewallet

    • ID of the Rapyd Wallet. String starting with ewallet_.

    • status

    • The change to make in the wallet status. One of the following:

      • close - Change the status from enabled and active (ACT) or disabled (DIS) to permanently closed (CLO).

      • disable - Change the status from enabled and active (ACT) to disabled (DIS).

      • enable - Change the status from disabled (DIS) to enabled and active (ACT).

  • /v1/ewallets/:ewallet/statuses/:status

  • Disable Wallet

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_df9de1b6310514f9c11a3f52dddd9ca4/statuses/disable' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw ''
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "109ca279-836d-45ed-87df-6185c88ec177"
        },
        "data": {
            "phone_number": null,
            "email": null,
            "first_name": "John",
            "last_name": "Doe",
            "id": "ewallet_46a159bd410bf4a8627fd07fe0cc872d",
            "status": "DIS",
            "accounts": [],
            "verification_status": "not verified",
            "type": "person",
            "metadata": {},
            "ewallet_reference_id": null,
            "category": null,
            "contacts": null,
            "parent_ewallet": "ewallet_c1943cfeda5f98247ab117e5d2648861",
            "cnls_partner_query_reference": null
        }
    }
  • Enable Wallet

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_46a159bd410bf4a8627fd07fe0cc872d/statuses/enable' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw ''
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "486360d5-2ea2-42e3-a516-c4564ee25395"
        },
        "data": {
            "phone_number": null,
            "email": null,
            "first_name": "John",
            "last_name": "Doe",
            "id": "ewallet_46a159bd410bf4a8627fd07fe0cc872d",
            "status": "ACT",
            "accounts": [],
            "verification_status": "not verified",
            "type": "person",
            "metadata": {},
            "ewallet_reference_id": null,
            "category": null,
            "contacts": null,
            "parent_ewallet": "ewallet_c1943cfeda5f98247ab117e5d2648861",
            "cnls_partner_query_reference": null
        }
    }
  • Close Wallet

  • curl -X post 'https://sandboxapi.rapyd.net/v1/ewallets/ewallet_46a159bd410bf4a8627fd07fe0cc872d/statuses/close' \
    -H 'access_key: your-access-key-here' \
    -H 'Content-Type: application/json' \
    -H 'idempotency: your-idempotency-parameter-here' \
    -H 'salt: your-random-string-here' \
    -H 'signature: your-calculated-signature-here' \
    -H 'timestamp: your-unix-timestamp-here' \
    --data-raw ''
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "b5ede102-48ea-4e54-ae98-986a6f4448e7"
        },
        "data": {
            "phone_number": null,
            "email": null,
            "first_name": "John",
            "last_name": "Doe",
            "id": "ewallet_46a159bd410bf4a8627fd07fe0cc872d",
            "status": "CLO",
            "accounts": [],
            "verification_status": "not verified",
            "type": "person",
            "metadata": {},
            "ewallet_reference_id": null,
            "category": null,
            "contacts": null,
            "parent_ewallet": "ewallet_c1943cfeda5f98247ab117e5d2648861",
            "cnls_partner_query_reference": null
        }
    }