Introduction
Welcome to the Mises API documentation! This API allows you to create sales and generate PIX QR Codes simply and securely.
What is Mises API?
Mises API is a RESTful interface that facilitates PIX payment integration in your applications. With it, you can:
- 💳 Create sales with custom amounts
- 📱 Generate PIX QR Codes automatically
- 🔐 Authenticate securely with JWT
- 📊 Query sales status
- 🔔 Receive webhooks for payment confirmation
Main Features
Simple and Direct
Only 2 main endpoints: authentication and sales creation. Integration in minutes.
Instant QR Code
Receive the QR Code in base64 format and PIX text (copy and paste) in the same response.
JWT Authentication
Secure system with JWT tokens that expire in 5 minutes.
Flexible Amounts
Accept payments from R$ 10.00 with up to 2 decimal places.
Customer Data
Capture optional information such as name, email, CPF/CNPJ, and phone.
Base URL
https://api.misespay.comAvailable Endpoints
| Endpoint | Method | Description |
|---|---|---|
/auth | POST | Generate authentication token |
/v1/sales | POST | Create new PIX sale |
/v1/sales/:id | GET | Query sale by ID |
Basic Flow
- Authenticate with
client_idandclient_secret - Receive a JWT token valid for 5 minutes
- Create a sale providing amount and customer data
- Receive the QR Code in base64 and PIX text
- Display the QR Code for the customer to pay
- Query status of the sale when needed
Quick Example
bash
# 1. Authenticate
curl -X POST https://api.misespay.com/auth \
-H "Content-Type: application/json" \
-d '{"client_id":"your_id","client_secret":"your_secret"}'
# 2. Create sale
curl -X POST https://api.misespay.com/v1/sales \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":150.75,"customer_name":"John Silva"}'Next Steps
- Authentication - Get your credentials
- Create Sale - Complete endpoint documentation
