sandbox

Emulate an incoming deposit: an account transfer with bankId, a token transfer without

Changed on
post/sandbox/deposits

Request

Headers

X-Hevn-Accountstring nullable

The client account to act for, as a cl_… id. Omit it to act as yourself.

Example:cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41
Idempotency-Keystring nullable

Your own key for this write, ^[A-Za-z0-9._:-]{1,128}$. A retry with the same key replays the first answer; the same key with a different request is refused.

Example:po-inv-2026-114

Request body

amountstring required

Test amount to credit.

bankIdstring nullable

Virtual-account identifier for an emulated account transfer.

token'USDC' | 'EURC' | 'RD' | 'USDC_ARB'
remitterstring nullable

Originator name reported with the credit.

paymentReferencestring nullable

Reference reported with the credit.

Example request

{
  "amount": "500.00",
  "bankId": "bnk_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"
}

Response

Successful Response

depositIdstring required

Stable identifier for the emulated credit.

status'awaitingSignature' | 'submitted' | 'settled' | 'failed' | 'refunded' required
token'USDC' | 'EURC' | 'RD' | 'USDC_ARB' required
amountstring required

Source amount supplied to the emulator.

currencystring required

Source currency or digital asset.

idempotencyKeystring required

Caller-supplied key that binds retries to this credit.

payinIdstring nullable

Incoming-transfer identifier, when completing a pay-in.

transactionIdstring nullable

Ledger transaction identifier, when created.

creditedstring nullable

Amount delivered in the settlement asset.

feestring nullable

Fee charged by the emulated route.

feeCurrencystring nullable

Currency in which the fee is charged.

ratestring nullable

Conversion rate from source to settlement amount.

txHashstring nullable

On-chain transaction hash, when applicable.

pollUrlstring nullable

Relative API URL to poll while processing continues.

Example response

{
  "amount": "500.00",
  "payinId": "pi_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
  "transactionId": "txn_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
  "credited": "500.00",
  "fee": "500.00",
  "rate": "500.00"
}

Changes

    • warning

      added the new verification_not_applicable enum value to the / response property for the response status

    • info

      removed the phone_required enum value from the / response property for the response status

    • info

      removed the rail_requirements_unmet enum value from the / response property for the response status

    • warning

      deleted the header request parameter x-api-key

    • warning

      added the new RD enum value to the response property for the response status

    • warning

      added the new RD enum value to the response property for the response status

    • warning

      added the new USDC_ARB enum value to the response property for the response status

    • warning

      added the new USDC_ARB enum value to the response property for the response status

    • warning

      added the new client_already_linked enum value to the / response property for the response status

    • warning

      added the new kyb_documents_processing enum value to the / response property for the response status

    • warning

      added the new link_code_expired enum value to the / response property for the response status

    • warning

      added the new link_code_invalid enum value to the / response property for the response status

    • warning

      added the new payout_not_awaiting_signature enum value to the / response property for the response status

    • warning

      added the new redirect_uri_not_allowed enum value to the / response property for the response status

    • warning

      added the new sandbox_amount_limit_exceeded enum value to the / response property for the response status

    • warning

      added the new sandbox_faucet_balance_too_high enum value to the / response property for the response status

    • info

      added the new RD enum value to the request property /

    • info

      added the new USDC_ARB enum value to the request property /

    • info

      removed the client_policy_not_enabled enum value from the / response property for the response status

    • info

      removed the client_request_conflict enum value from the / response property for the response status

    • info

      removed the email_in_use enum value from the / response property for the response status

    • info

      removed the integrator_inactive enum value from the / response property for the response status

    • info

      removed the name_in_use enum value from the / response property for the response status