Base URLs
| Environment | URL |
|---|---|
staging | https://staging-pay.getpartna.com/v4/pay/offramp |
production | https://pay.getpartna.com/v4/pay/offramp |
Query parameters
| Parameter | Required | Description |
|---|---|---|
amount | Yes | Amount the user wants to convert |
from_currency | Yes | Crypto the user is sending, such as USDT, USDC, BTC, or ETH |
from_network | Yes | Network the user is sending from, such as tron, celo, or ethereum |
to_currency | Yes | Local payout currency, such as NGN, KES, or GHS |
merchant | Yes | Your Partna merchant username |
address | No | Wallet address the crypto will be sent from |
reference | No | A hex string transaction reference |
Registration modes
The widget supports two merchant-controlled registration modes:| Mode | Behavior |
|---|---|
open | Users can begin registration through the widget flow and complete onboarding later |
closed | Only users you have already created can continue in the widget flow |
open, you can use Register Account to create a pending registration. If your registration mode is closed, create the user up front with Create Account.
The hosted flow collects the user’s payout details before finalizing the transaction.
How it works
Generate the redirect URL
Build a URL using the correct environment URL and the required query parameters.
User submits payout details and sends crypto
The user enters the required payout details in the hosted flow and transfers the specified crypto amount.
Receive webhook updates
Partna sends
Offramp webhook events as the transaction progresses. See Webhooks for verification details.Build the redirect URL
Example redirect URL
https://staging-pay.getpartna.com/v4/pay/offramp instead.
Transaction lifecycle
Partna emitsOfframp webhooks with these statuses:
| Status | Meaning |
|---|---|
pending | The offramp request has been created and is awaiting crypto payment |
received | Partna has received the user’s crypto transfer |
processing | Conversion or payout is currently being processed |
completed | The local currency payout is complete |
Sample webhook payloads
pending
received
processing
completed
When to use the hosted widget
Use the hosted widget when you want:- A redirect-based offramp experience with less frontend work
- Partna to collect payout details inside the hosted flow
- A fast way to launch crypto-to-fiat payouts