How to integrate Nemu API
The Nemu API is a tool for interacting with our platform and expanding your application's capabilities. Below, we'll explain how to use the API to send sales events.
Authentication
To authenticate the user, include the dashboard token in the Authorization
header of your request.
Generating the User Token
- Access the dashboard details.
- Click on Settings.
- Go to Nemu API Integration and click Generate API Token.
- Copy the token displayed.
Sending Sales Data to Nemu
The API offers two routes to create and update orders, enabling real-time information sharing with the dashboard.
Base URL for requests:
https://developers.nemu.com.br/api/v1
POST /sales
Use this route to submit sales information.
Transaction/Order Parameters
Parameter | Description | Type |
---|---|---|
| Product or order name | string |
| Transaction or order ID | string |
| Net amount of the transaction or order | number |
| Gross amount of the transaction or order | number |
| Transaction or order status ( | string |
| Quantity sold in the transaction or order | number |
| Payment method ( | string |
| UTM source parameter | string |
| UTM campaign parameter | string |
| UTM medium parameter | string |
| UTM content parameter | string |
| UTM term parameter | string |
| Buyer's name | string |
| Buyer's email | string |
| Buyer's phone number | string |
| Sale date (format: | string |
| Sale date and time (format: | date |
| Product list for the order (use when more than one product is included) | array of products |
Product List Parameters
Parameter | Description | Type |
---|---|---|
| Product ID | string |
| Product name | string |
| Quantity of product sold | number |
| Product net value | number |
| Product gross value | number |
| Product cost price | number |
Example request for a single product:
{
"name": "Product name",
"transactionId": "123",
"netValue": 10,
"grossValue": 30,
"status": "paid",
"quantity": 1,
"paymentType": "pix",
"utm_campaign": "optional",
"utm_content": "optional",
"utm_medium": "optional",
"utm_source": "optional",
"utm_term": "optional",
"customerName": "Customer Name",
"customerEmail": "customeremail@gmail.com",
"customerPhone": "11912345678",
"date": "2024-06-25",
"orderCreatedAt": "2024-06-25 00:00:00",
"priceCost": 5
}
Example request for multiple products:
{
"name": "Order name",
"transactionId": "123",
"netValue": 20,
"grossValue": 40,
"status": "paid",
"quantity": 1,
"paymentType": "pix",
"utm_campaign": "optional",
"utm_content": "optional",
"utm_medium": "optional",
"utm_source": "optional",
"utm_term": "optional",
"customerName": "Customer Name",
"customerEmail": "customeremail@gmail.com",
"customerPhone": "11912345678",
"date": "2024-06-25",
"createdAt": "2024-06-25 00:00:00",
"products": [
{
"productId": "1",
"name": "Product Name 1",
"quantity": 1,
"netValue": 10,
"grossValue": 20,
"priceCost": 5
},
{
"productId": "2",
"name": "Product Name 2",
"quantity": 1,
"netValue": 10,
"grossValue": 20,
"priceCost": 5
}
]
}
PUT /sales/:transactionId
Use this route to update the information of an existing order.
Order Update Parameters
Parameter | Description | Type |
---|---|---|
| New status of the transaction or order ( | string |
| Updated buyer's name | string |
| Updated buyer's email | string |
| Updated buyer's phone number | string |
| New sale date (format: | string |
Example request:
{
"status": "paid",
"customerName": "New Customer Name",
"customerEmail": "newcustomer@gmail.com",
"customerPhone": "11998765432",
"date": "2024-06-25"
}
Make sure to include the Authorization
header with your API token in all requests.
I hope this clarifies how to use the Nemu API to send sales events!
Atualizado em: 20/06/2025
Obrigado!