For the complete documentation index, see llms.txt. This page is also available as Markdown.

Products

This page includes all endpoints available for the purchase products of Logiciel Actif.

List all purchase products

GET https://app.gem-books.com/api/purchases_products

This endpoint allows you to get the list of your purchase products.

Headers

Name
Type
Description

Authentication*

string

Bearer Token

Accept

string

Should be application/json

{
  "data": [
    {
      "id": 1,
      "purchase_id": 2,
      "product_id": "5",
      "produit_compte": "67",
      "product_name": "Breaks",
      "product_description": "",
      "produit_projet": null,
      "product_quantity": "8.00",
      "produit_quantite_receive": "0.00",
      "produit_quantite_onhold": "8.00",
      "produit_poids": "0.000",
      "produit_poids_receive": "0.000",
      "produit_poids_onhold": "0.000",
      "product_price": "30.0000",
      "product_discount": "0.00",
      "product_serialnumber": "",
      "produit_total": "240.00",
      "taxes_rules_id": 2,
      "gestion_taxes": "[]",
      "province_id": 0,
      "system_id": 99217
    }
  ],
  "meta": {
    "current_page": 1,
    "last_page": 1,
    "per_page": 500,
    "total": 1
  },
  "success": true
}

Retrieve a specific sale product

GET https://app.gem-books.com/api/sales_products/:id

This endpoint allows you to get one specific sale product.

Path Parameters

Name
Type
Description

id

integer

The ID of the sales product to retrieve.

Headers

Name
Type
Description

Authentication*

string

Bearer Token

Accept

string

Should be application/json

Create a purchase product

POST https://app.gem-books.com/api/purchases_products

Headers

Name
Type
Description

Authentication

string

Bearer Token

Content-type

string

Should be application/json

Accept

string

Should be application/json

Request Body

Name
Type
Description

purchase_id

string

Invoice ID

product_id

string

Product ID

Body Example

Update a purchase product

PUT https://app.gem-books.com/api/purchases_products/:id

This endpoint allows you to update a specific purchase product. Returns the updated purchase product.

Path Parameters

Name
Type
Description

id

integer

Purchase product ID to update.

Headers

Name
Type
Description

Authentication

string

Bearer Token

Content-Type

string

Should be application/json

Accept

string

Should be application/json

Body Example

Last updated