> ## Documentation Index
> Fetch the complete documentation index at: https://docs.artery.money/llms.txt
> Use this file to discover all available pages before exploring further.

# Withdraw to a wallet

> Withdraws from your Available balance to one of your `ACTIVE` wallets. The wallet fixes the
asset, network and address.

`amountMinor` is what the wallet **receives**, in US cents (1 USDT = 100 cents). Artery's
withdrawal fee is added on top, and `amountMinor + feeMinor` is reserved from Available
straight away.

Needs the `withdrawals:write` scope, which a generic write key doesn't include, and the key
must have an IP allowlist.




## OpenAPI

````yaml /api-reference/openapi.yaml post /withdrawals
openapi: 3.1.0
info:
  title: Artery Partner API
  version: 0.2.0-draft
  summary: Collect rand in South Africa through Easypay PINs and receive US dollars.
  description: >
    The Artery Partner API lets your platform collect rand from customers in
    South Africa through

    Easypay PINs, and receive the net amount in US dollars on your Artery
    balance. You fund and

    withdraw that balance in stablecoin.


    **Draft (1 Dec 2026).** Realigned by hand to the partner routes in
    `Nuage-Payments/jano-money`

    (`dev`): `artery/artery-b2b.controller.ts`,
    `custody/custody-withdrawals.controller.ts`,

    `artery/withdrawal-destinations.controller.ts`,
    `custody/funding.controller.ts`, with types from

    `packages/types/src/artery.ts` and `custody.ts`. The code also generates its
    own OpenAPI file

    (`@nestjs/swagger`, `/api/v1/docs-json`); once exported it should replace
    this file. Charges and

    transfers (the Flutterwave consumer rail) are left out: they're off on the
    standalone Artery API.
  contact:
    name: Artery support
    email: support@artery.money
    url: https://docs.artery.money
servers:
  - url: https://api.artery.money/api/v1/artery/b2b
    description: Live
  - url: https://uat-api.artery.money/api/v1/artery/b2b
    description: Test (UAT). The partner sandbox address is still to be confirmed.
security:
  - apiKey: []
tags:
  - name: Account
    description: Check which organization and key you're using.
  - name: PINs
    description: Easypay PINs your customers pay.
  - name: Balance
    description: Your balance in US dollars.
  - name: Funding
    description: Stablecoin deposit addresses and the deposits made to them.
  - name: Withdrawals
    description: Withdrawal wallets and withdrawals in stablecoin.
paths:
  /withdrawals:
    post:
      tags:
        - Withdrawals
      summary: Withdraw to a wallet
      description: >
        Withdraws from your Available balance to one of your `ACTIVE` wallets.
        The wallet fixes the

        asset, network and address.


        `amountMinor` is what the wallet **receives**, in US cents (1 USDT = 100
        cents). Artery's

        withdrawal fee is added on top, and `amountMinor + feeMinor` is reserved
        from Available

        straight away.


        Needs the `withdrawals:write` scope, which a generic write key doesn't
        include, and the key

        must have an IP allowlist.
      operationId: createWithdrawal
      parameters:
        - name: Idempotency-Key
          in: header
          required: true
          description: >-
            A unique value per withdrawal, at most 64 characters. Retrying with
            the same key returns the original withdrawal (200) instead of
            creating another.
          schema:
            type: string
            maxLength: 64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WithdrawalCreate'
            example:
              destinationId: dst_3Fv8Qa
              amountMinor: 5000000
              reference: treasury-sweep-2026-09-16
      responses:
        '200':
          description: >-
            An earlier request with the same `Idempotency-Key`; the original
            withdrawal is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Withdrawal'
        '201':
          description: The withdrawal was instructed and the total reserved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Withdrawal'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    WithdrawalCreate:
      type: object
      required:
        - destinationId
        - amountMinor
      properties:
        destinationId:
          type: string
          description: An `ACTIVE` wallet. It fixes the asset, network and address.
        amountMinor:
          type: integer
          minimum: 1
          description: What the wallet receives, in US cents. The fee is added on top.
        reference:
          type: string
          minLength: 1
          maxLength: 128
          description: Your own reference.
    Withdrawal:
      type: object
      properties:
        id:
          type: string
        destinationId:
          type: string
        asset:
          $ref: '#/components/schemas/Asset'
        network:
          $ref: '#/components/schemas/Network'
        address:
          type: string
          description: The wallet address at instruction time.
        amountMinor:
          type: integer
          description: What the wallet receives
          in US cents.: null
        feeMinor:
          type: integer
          description: Artery's withdrawal fee, in US cents.
        totalMinor:
          type: integer
          description: amountMinor + feeMinor; what was reserved from Available.
        reference:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - INSTRUCTED
            - SUBMITTING
            - SUBMITTED
            - SENT
            - FAILED
            - STUCK
          description: >-
            `STUCK` means the outcome is unknown and Artery's team is resolving
            it.
        txHash:
          type:
            - string
            - 'null'
        failureReason:
          type:
            - string
            - 'null'
          description: >
            Set once FAILED or STUCK. One of `destination_not_active`,
            `destination_not_whitelisted`,

            `insufficient_provider_liquidity`, `provider_rejected`,
            `provider_failed`,

            `provider_failed_after_broadcast`, `outcome_unknown`,
            `dispatch_interrupted`,

            `submitted_too_long`, `resolved_by_staff`, `unknown`.
        instructedAt:
          type: string
          format: date-time
        submittedAt:
          type:
            - string
            - 'null'
          format: date-time
        sentAt:
          type:
            - string
            - 'null'
          format: date-time
        failedAt:
          type:
            - string
            - 'null'
          format: date-time
    Asset:
      type: string
      enum:
        - USDT
        - USDC
      description: >-
        Launch supports USDT only; the enabled pairs are in `routes` on `GET
        /funding/addresses`.
    Network:
      type: string
      enum:
        - TRON
        - ETHEREUM
        - SOLANA
        - POLYGON
        - BASE
      description: >-
        Launch supports TRON only; the enabled pairs are in `routes` on `GET
        /funding/addresses`.
    Error:
      type: object
      required:
        - statusCode
        - message
      properties:
        statusCode:
          type: integer
        message:
          description: An error code such as `INVALID_AMOUNT`, or a short explanation.
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
  responses:
    BadRequest:
      description: >-
        The request is invalid, for example `INVALID_AMOUNT`,
        `AMOUNT_EXCEEDS_LIMIT` or `INVALID_COLLECTION_ID`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 400
            message: AMOUNT_EXCEEDS_LIMIT
            error: Bad Request
    Unauthorized:
      description: >-
        The key is missing, malformed, unknown, expired, or for the other
        environment.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 401
            message: Invalid API key
            error: Unauthorized
    Forbidden:
      description: >-
        The key lacks the scope, or the request came from an address not on the
        key's IP allowlist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            statusCode: 403
            message: IP not allowed
            error: Forbidden
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >
        Send your key as `Authorization: Bearer <key>`. Sandbox keys start
        `art_test_ro_` (read) or

        `art_test_rw_` (write). A key only works in its own environment, and a
        key with an IP

        allowlist only works from those addresses.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.