POST /api/developer/orders.
When you create a sell order, RampHub also creates the matching order intent automatically. If you need to show the active payment window or let support extend it, see Order intent.
If the same customer, token, and network already has an active order window, RampHub returns a structured PAYCHAIN_ACTIVE_INTENT_CONFLICT response. Your app can use the Order intent endpoint to show the current window first, or resend the order with overrideActiveIntent: true if the customer wants to replace it.
Request body
Required on every order:The network: one of the values in Networks, such as
base or arbitrum.walletAddress:
Optional but useful:
Route through this provider. The order uses it, or fails with a
400 saying why it cannot take this trade - it is never switched to another provider. Leave it out for the best rate.Selling for an African currencyFor KES, GHS and the other African currencies,
bankCode can be a bank or a mobile money network, and accountNumber is then the bank account number or the wallet’s mobile number. Send country for XOF, and recipientPhone for a ZAR bank payout. The 10-digit rule applies to NGN only.bankCode values in the sell form.
If you do not already have the account holder name, call POST /api/developer/bank-accounts/resolve first and reuse the returned accountName.
Business fees
RampHub lets businesses attach a developer fee percent to the same order request. RampHub accrues the fee internally, so you only need the percentage:Response shape
The response includes the tracked RampHub transaction id, the selected provider, and where the customer sends the crypto.The order’s id. Use it for status sync; it is
data.id in webhooks.Present on most orders.
expectedAmount is the amount to send, and depositIntentExpiresAt is when the address stops accepting it for this order. Order intent returns the same window.Notes
- Save
transactionIdright away. - Show the customer
ourCryptoAddress, the token and network, and the exact amount (amount), and ask them to send it before the window closes (usually 30 minutes). developerFeePercentcan be0or a small percentage like0.5.overrideActiveIntentcan be set totruewhen the customer wants to replace an existing active order window.- The minimum order is $1 of crypto (
amount); smaller orders fail with a400before anything is created. - With
preferredProvider, the provider’s own minimum applies too. UseBread’s is $1, measured on what it receives after RampHub’s fee and yourdeveloperFeePercent; below that the order fails with a400instead of moving to another provider.