Actions
This page includes all endpoints available for the actions(bookings) module of Logiciel Actif.
List all actions
GET
https://app.gem-books.com/api/actions
This endpoint allows you to get the list of your actions. The actions are returned sorted by date and time, with the most recent appearing first.
Headers
Name | Type | Description |
---|---|---|
Authentification | string | Bearer token. |
Accept | string | Should be |
Retrieve an action
GET
https://app.gem-books.com/api/actions/:id
This endpoint allows you to retrieve a specific action.
Path Parameters
Name | Type | Description |
---|---|---|
id | integer | Action ID. |
Headers
Name | Type | Description |
---|---|---|
Authentification | string | Bearer token. |
Accept | string | Should be |
Create an action
POST
https://app.gem-books.com/api/actions
This endpoint allows you to create an action. Returns the created action.
Headers
Name | Type | Description |
---|---|---|
Authentication | string | Bearer token. |
Content-Type | string | Should be |
Accept | string | Should be |
Request Body
Name | Type | Description |
---|---|---|
value | string | Amount charged to the client. |
cost | string | Amount paid to the driver. |
user_id | integer | User ID linked to the action. |
action_id | integer | Action ID. |
date | string | Date of the action. |
bookingID | integer | Booking ID linked to the action. |
Last updated