Welcome to Mueve API
This quickstart guide will walk you through the complete workflow of using the Mueve currency exchange API, from registration to creating your first transaction. You’ll learn how to:- Register a new user account
- Authenticate and obtain a JWT token
- Get the current exchange rate
- Create a currency exchange transaction
The Mueve API is a RESTful API that runs on
http://localhost:3001 by default. All endpoints return JSON responses.Prerequisites
Before you begin, make sure you have:- A tool for making HTTP requests (curl, Postman, or similar)
- Basic understanding of REST APIs and JSON
- The API base URL:
http://localhost:3001/api
Complete Workflow
Login and Get Authentication Token
After registration, authenticate to receive a JWT token that you’ll use for protected endpoints.
Response Fields
Response Fields
Save your token! You’ll need to include this JWT token in the
Authorization header for all authenticated requests.Get Current Exchange Rate
Before creating a transaction, fetch the current USD to BsF (Bolívar) exchange rate.
This endpoint does not require authentication. The rate is fetched from Redis cache with a database fallback.
Understanding the Rate
Understanding the Rate
The rate represents how many Bolívares (BsF) you get for 1 USD:
- Rate: 45.67 means 1 USD = 45.67 BsF
- When buying USD: You pay BsF to receive USD
- When selling USD: You receive BsF for your USD
Create Your First Transaction
Now you’re ready to create a currency exchange transaction. You can either buy or sell USD.
Request Parameters
Request Parameters
Type of transaction:
"Comprar" (buy USD) or "Vender" (sell USD)Amount in USD to exchange (must be positive)
Current exchange rate (must be within 0.35 tolerance of actual rate)
Unique payment reference number (cannot be reused)
Payment method (e.g., “Pago Movil”, “Transferencia”, “Zelle”)
Account number or phone number for payment
Understanding Commissions
Understanding Commissions
The Mueve API automatically calculates commissions based on the transaction amount:
For Buy transactions (Comprar):
| Amount Range (USD) | Commission (USD) |
|---|---|
| 9.99 | $0.80 |
| 14.99 | $1.00 |
| 25 | $1.40 |
| Over $25 | $1.40 + 8% of excess |
- Total USD = Amount + Commission
- Total BsF = Total USD × Rate
- Total USD = Amount - Commission
- Total BsF = Total USD × Rate
Authentication Flow Summary
Here’s a quick reference for the authentication flow:Common Error Responses
Here are the most common errors you might encounter:400 Bad Request
400 Bad Request
Missing required fields:Email already registered:Rate changed:
401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
Invalid or expired token:
404 Not Found
404 Not Found
Transaction not found:
409 Conflict
409 Conflict
Duplicate payment reference:
500 Internal Server Error
500 Internal Server Error
Server error:
Next Steps
Now that you’ve completed your first transaction, explore more features:Authentication Details
Learn more about JWT authentication and security
Exchange Rates
Understand how rates are fetched and updated
Transactions
Deep dive into transaction types and workflows
Commission Structure
Learn how commissions are calculated
Need help? Check out the complete API Reference for detailed endpoint documentation.