Commissions são vendas de um produto a um cliente, feitas por um vendedor.
GET - /commissions
Response example:[
{
"id": 1,
"date": "2000-01-01T00:00:00.000Z",
"value": 10,
"paymentMethod": "Installments",
"clientId": 1,
"productId": 1,
"sellerId": 1,
}
]GET - /commissions/{id}
Response example:{
"id": 1,
"date": "2000-01-01T00:00:00.000Z",
"value": 10,
"paymentMethod": "Installments",
"clientId": 1,
"productId": 1,
"sellerId": 1,
}POST - /commissions
Request body example:{
"date": "2000-01-01",
"value": 10,
"paymentMethod": "Installments",
"clientId": 1,
"productId": 2,
"sellerId": 1
}PUT - /commissions/{id}
Request body example:{
"date": "2000-01-01",
"value": 10,
"paymentMethod": "Installments",
"clientId": 1,
"productId": 2,
"sellerId": 1
}DELETE - /commissions/{id}
Retorna Status Code 200
| name | Description | Type |
|---|---|---|
| id | The identifier for this resource. | integer |
| date | Date/time of recording | integer |
| value | Total value of commission in R$ | float |
| paymentMethod | Payment method | string |
| clientId | Commission's client identifier | integer |
| productId | Commission's product identifier | integer |
| sellerId | Commission's seller identifier | integer |
