Skip to content

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.com

Available Endpoints

EndpointMethodDescription
/authPOSTGenerate authentication token
/v1/salesPOSTCreate new PIX sale
/v1/sales/:idGETQuery sale by ID

Basic Flow

  1. Authenticate with client_id and client_secret
  2. Receive a JWT token valid for 5 minutes
  3. Create a sale providing amount and customer data
  4. Receive the QR Code in base64 and PIX text
  5. Display the QR Code for the customer to pay
  6. 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

Mises API - Simplified PIX Payments