Order modes
CoinVoyage exposesSALE and DEPOSIT as direct create modes. REFUND, SWAP, and FEE_CLAIM are created through dedicated endpoints or platform workflows.
- DEPOSIT
- SALE
- REFUND
A
DEPOSIT order moves funds directly to a wallet address you specify on a target chain. Use this when a user is topping up a wallet, funding an account, or making a transfer where you control the destination address.DEPOSIT orders do not require an API secret for authorization. You can create them with only your API key.Order statuses
Your webhook handler and polling logic should account for each lifecycle state.Webhook subscription event types and delivered payload values use uppercase
ORDER_* identifiers, such as ORDER_COMPLETED.EXPIRED, REFUNDED, FAILED, or PARTIAL_PAYMENT depending on where the problem occurs.
Continue a Pay to Address partial payment
For Pay to Address,PARTIAL_PAYMENT is recoverable. Keep fulfillment paused and use order.payment.funding.remaining_amount to show the amount still due. Additional deposits are accumulated in order.payment.funding.transactions; fulfill only after the order reaches COMPLETED.
Order metadata
You can attach structured metadata when you create an order. Metadata is visible in the dashboard and included in webhook payloads, making it useful for reconciliation, analytics, and displaying order context to the user.Items
Use theitems array to describe what the user is paying for. Each item can include a name, description, image URL, quantity, and unit price.
Refund details
For refunds, populate therefund object to record the reason and amount being refunded: