Easyflow API Document
Download OpenAPI description
Languages
Servers
Mock server
https://mobile-docs.easyflow.digital/_mock/openapi/
Production environment URL
https://wz0ppvhzw7.execute-api.sa-east-1.amazonaws.com/
Bodyapplication/jsonrequired
Filter by sale status.
Items Enum"pending""paid""partially-paid""canceled""reversed""refunded""charged-back""delayed""failed""charged"
Field used for text search across multiple sale attributes, such as buyer.name, buyer.email, buyer.document.number, items.name and items.id.
- Mock server
https://mobile-docs.easyflow.digital/_mock/openapi/easyflow/sales/list
- Production environment URL
https://wz0ppvhzw7.execute-api.sa-east-1.amazonaws.com/easyflow/sales/list
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://mobile-docs.easyflow.digital/_mock/openapi/easyflow/sales/list?page=string&limit=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'business-id: string' \
-H 'x-fingerprint-id: string' \
-d '{
"codes": [
"SALE-12345"
],
"email": "john.doe@example.com",
"name": "John Doe",
"cpf": "12345678901",
"initialDate": "2024-09-12T00:00:00.000Z",
"endDate": "2024-09-13T23:00:00.000Z",
"productName": "Curso de Programação",
"status": [
"paid",
"reversed"
],
"initialValue": 0,
"endValue": 5000,
"types": [
"credit-card",
"pix"
],
"productIds": [
"e55b40af-935f-4d6a-b520-8820f84b06a7"
],
"field": "76fb9f83-0b48-4fce-9350-1246227728e8",
"orderBy": {
"orderByField": "createdAt",
"orderDirection": "DESC"
}
}'Response
application/json
{ "statusCode": 200, "data": { "sales": { … }, "ticketsCount": 16, "totalTransactionValue": 240000, "totalCommissions": 15000 } }
- Mock server
https://mobile-docs.easyflow.digital/_mock/openapi/easyflow/orders/{orderId}
- Production environment URL
https://wz0ppvhzw7.execute-api.sa-east-1.amazonaws.com/easyflow/orders/{orderId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://mobile-docs.easyflow.digital/_mock/openapi/easyflow/orders/{orderId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'business-id: string' \
-H 'x-fingerprint-id: string'Response
application/json
{ "statusCode": 200, "data": { "id": "string", "date": "2019-08-24T14:15:22Z", "paidAt": "2019-08-24T14:15:22Z", "status": "pending", "totalCommissionValueInCents": 0, "orderBuyer": { … }, "coupon": { … }, "refundable": true, "refundableUntil": "2019-08-24T14:15:22Z", "refundRequest": { … }, "items": [ … ], "payments": [ … ], "statusHistory": [ … ] } }
Bodyapplication/json
- Mock server
https://mobile-docs.easyflow.digital/_mock/openapi/easyflow/sales/total-sales
- Production environment URL
https://wz0ppvhzw7.execute-api.sa-east-1.amazonaws.com/easyflow/sales/total-sales
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://mobile-docs.easyflow.digital/_mock/openapi/easyflow/sales/total-sales \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'business-id: string' \
-H 'x-fingerprint-id: string' \
-d '{
"freeSales": true,
"initialDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"status": [
"pending"
]
}'Response
application/json
{ "statusCode": 0, "data": { "count": 0, "pix": { … }, "creditCard": { … }, "boleto": { … }, "free": { … } } }