API reference · Withdrawals
Withdraw to a bank account
POST/v1/withdrawals/bank
Moves the amount of USDC to hold and queues a payout to an Icelandic bank account in the account holder's own name: a saved one or a new one. Myntkaup pays it out on a business day, in krónur or, to an Arion foreign-currency account, in US dollars; follow it with GET /v1/withdrawals/{id}. Idempotency-Key is required.
- Scope
withdrawals:create- Rate-limit class
withdrawal- Authentication
- Signed
- Idempotency-Key
- Required
Parameters
Idempotency-Keystringheaderrequired1 to 64 characters of [A-Za-z0-9_-]. Kept for 24 h; reuse it to retry safely.
Request body
application/json · CreateBankWithdrawalRequest. Unknown fields are rejected.
amountstring (decimal)requiredUSDC taken from the balance, fee included, with at most 2 decimals. Bank withdrawals are always from USDC; Myntkaup pays out in krónur, or in US dollars to an Arion foreign-currency account.
bank_accountstringrequiredA saved account from GET /v1/bank-accounts, or a new one. It must be in the account holder's own name (kennitala). A foreign-currency account (ledger 38) must be at Arion (03xx-38-…).
Responses
201 Created
The withdrawal, pending. application/json · Withdrawal
idstringtypestring (enum)statusstring (enum)awaiting_confirmation: a crypto withdrawal waiting for the link in the confirmation email; expired: that link was not used in time; pending: being processed; completed: sent; canceled; failed.
assetstringAn upper-case asset symbol.
networkstring | nullCrypto only.
amountstring (decimal)Taken from the balance, fee included.
feestring (decimal)nullableThe withdrawal fee in the asset; null when it isn't known yet.
addressstring | nullCrypto only.
memostring | nullbank_accountstring | nullBank only.
tx_idstring | nullThe blockchain transaction id, once sent.
sourcestring (enum)Where the record was made: this API, the mobile app or the webapp.
created_atstring (date-time)confirm_bystring (date-time)nullableFor awaiting_confirmation: the confirmation email's link works until this time.
completed_atstring (date-time)nullable
Every response carries MK-Request-Id, plus RateLimit-Policy and RateLimit.
Errors
Errors use the error envelope. Match on code.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request is malformed: bad JSON, an unknown or invalid field, or a missing header. |
| 401 | invalid_signature | The MK-* headers are missing or malformed, the key id is unknown, or the signature doesn't match. |
| 401 | key_expired | The key has passed its expiry date. |
| 401 | key_revoked | The key was revoked. |
| 401 | timestamp_out_of_range | MK-Timestamp is more than 30 seconds from the server clock. |
| 401 | nonce_reused | This key already used this MK-Nonce. |
| 403 | ip_not_allowed | The request came from an address outside the key's IP allowlist. |
| 403 | insufficient_scope | The key doesn't have the scope this endpoint needs. |
| 403 | account_restricted | The account can't use the API right now (for example locked, inactive, or onboarding not finished). |
| 403 | api_access_disabled | API access is switched off. |
| 403 | forbidden | This action is switched off for the API right now. |
| 409 | idempotency_conflict | This Idempotency-Key was used with a different request body. |
| 409 | idempotency_in_progress | A request with this Idempotency-Key is still being processed. |
| 413 | payload_too_large | The request body is larger than 8 KB. |
| 415 | unsupported_media_type | Request bodies must be application/json. |
| 422 | insufficient_funds | The available balance doesn't cover the trade, gift card or withdrawal. |
| 422 | amount_below_minimum | The amount is below the minimum. |
| 429 | rate_limited | Too many requests. Wait for Retry-After seconds. |
| 429 | too_many_concurrent_requests | Too many requests in flight for this key or account. |
| 429 | key_suspended | The key is suspended, for example after sustained rate limiting. |
| 500 | internal_error | Something went wrong on our side. |
| 502 | bad_gateway | An upstream service answered unexpectedly. |
| 503 | overloaded | The service is overloaded. Retry after Retry-After seconds. |
| 503 | service_unavailable | The service is temporarily unavailable. |
| 503 | maintenance | The API is read-only for maintenance. |
| 504 | gateway_timeout | An upstream service didn't answer in time. A POST may still complete; retry with the same Idempotency-Key. |
Request
# Signed by sign-headers.sh: see Authentication
body='{"amount":"250.00","bank_account":"0133-26-012345"}'
idempotency_key=$(uuidgen) # reuse it to retry safely
curl https://public-api.myntkaup.is/v1/withdrawals/bank \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $idempotency_key" \
$(./sign-headers.sh POST /v1/withdrawals/bank "$body" | sed 's/^/-H /') \
--data "$body"import { Myntkaup } from "@myntkaup/api";
const client = new Myntkaup(); // reads the key from the environment
// Sends a random Idempotency-Key unless you pass idempotencyKey.
const withdrawal = await client.withdrawals.createBank({
amount: "250.00",
bankAccount: "0133-26-012345",
});
console.log(withdrawal.id, withdrawal.status);from myntkaup import Myntkaup
client = Myntkaup() # reads the key from the environment
# Sends a random Idempotency-Key unless you pass idempotency_key.
withdrawal = client.withdrawals.create_bank(amount="250.00", bank_account="0133-26-012345")
print(withdrawal["id"], withdrawal["status"])Response
{
"id": "wd_01JB8X2Q4M7Z3V9K5T1N6R0P2W",
"type": "bank",
"status": "pending",
"asset": "USDC",
"network": null,
"amount": "250",
"fee": "7",
"address": null,
"memo": null,
"bank_account": "0133-26-012345",
"tx_id": null,
"source": "public_api",
"created_at": "2026-11-03T10:15:10Z",
"confirm_by": null,
"completed_at": null
}Base URL https://public-api.myntkaup.is