Sales
This page includes all endpoints available for the sales module of Logiciel Actif.
List all sales
GET
https://app.gem-books.com/api/sales
This endpoint allows you to get the list of your sales. The transactions are returned sorted by most recent number.
Headers
Name
Type
Description
Authentification*
string
Bearer Token
Accept
string
Should be application/json
{
// Response
}
List a specific sale
GET
https://app.gem-books.com/api/sales/:id
This endpoint allows you to get one specific sale.
Headers
Name
Type
Description
Authentification*
string
Bearer Token
Accept
string
Should be application/json
{
// Response
}
Create a sale
POST
https://app.gem-books.com/api/sales
Headers
Name
Type
Description
Authentification
string
Bearer Token
Accept
string
Should be application/json
{
// Response
}
Body Example
{
"client_id": "1",
"date": "2022-05-25"
}
Update a sale
PUT
https://app.gem-books.com/api/sales/:id
Headers
Name
Type
Description
Authentification
string
Bearer Token
Accept
string
Should be application/json
{
// Response
}
Body Example
{
"action": "invoice", //This will create an invoice from the sale
"action": "quote" //This will create a quote from the sale
}
Last updated