Skip to main content
POST
Offramp Request
This endpoint will create an offramp request for a customer to convert crypto to fiat.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
referenceId
string
required

Onramp reference ID

cryptoAmount
number
required

The crypto amount

currency
any
required

Fiat currency

depositStatus
any

Deposit status

lipaNaMpesaReceiver
object

Lipa na M-Pesa (Till/Buy Goods) receiver — Kenya only

paybillReceiver
object

Paybill receiver — Kenya only

transactionHash
string

Transaction hash

refund_config
object

Optional refund destination for this transaction. For Lightning: provide a bolt11 invoice so Kotani can refund immediately if fiat disbursement fails, without waiting for you to submit one manually. Include generate_invoice_url so Kotani can refresh the invoice if it expires. For on-chain chains: provide address as the fallback refund destination. If omitted, Kotani notifies you via webhook and email when a refund is needed and you submit via POST /offramp/submit-refund-invoice/:referenceId.

Response

Offramp Response

success
boolean
Example:

true

message
string
Example:

"Offramp has been successfully created"

data
object