Money-out

Request a withdrawal

Requests a withdrawal to a verified payout account. It waits for platform approval before money moves.

POSThttps://api.klasstack.com/v1/withdrawals

  • moneyOut:write
  • Billable
  • Idempotency-Key required
  • Live key only
  • Test key: refused

Authorizations

  • Authorizationstringheaderrequired

    Your secret key as a bearer token, in the form Bearer ks_live_sk_... or Bearer ks_test_sk_.... Keep it on your server. A test key is refused here.

Headers

  • idempotency-keystringheaderrequired

    A key of your own that makes this write safe to retry: the same key returns the first response instead of writing again.

Body

application/json

  • amountinteger

  • narrationstring

  • payoutAccountIdinteger

Response

200, application/json

  • dataobjectrequired

    Show child attributes
    • referencestringrequired

    • statusstringrequired

    • amountnumberrequired

      Major units (naira).

    • currencystringrequired

    • payoutAccountIdnumber or nullrequired

      The registered payout account; null for a withdrawal made in the dashboard.

    • accountNumberMaskedstring or nullrequired

    • accountNamestring or nullrequired

    • narrationstring or nullrequired

    • requestedOnstringrequired

      ISO 8601, UTC.

    • updatedOnstringrequired

      ISO 8601, UTC.

  • metaobjectrequired

    Show child attributes
    • request_idstringrequired

      Also returned in the X-Request-ID header.

    • paginationobject

      Show child attributes
      • limitintegerrequired

        Required range: x <= 100

      • has_morebooleanrequired

      • next_cursorstring or nullrequired

        Send this back as cursor for the next page. Opaque: never parse it.

Errors

What each code means, and what to do about it, is in the errors guide.

Webhook events

This call triggers no webhook event.