Skip to main content
GET
/
api
/
v1
/
products
/
{product_id}
La Pyme SDK
import { Lapyme } from "lapyme";

const lapyme = new Lapyme({
  bearerAuth: process.env["LAPYME_API_KEY"] ?? "",
});

const product = await lapyme.products.getProductById({
  productId: "9c692e8b-0f9a-4f7c-8b99-061a2eb188ae",
});
{
  "request_id": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "category": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "sku": "<string>",
    "barcode": "<string>",
    "currency": "<string>",
    "cost": 123,
    "price": 123,
    "tax_rate": {
      "id": 123,
      "value": 123
    },
    "default_supplier": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "is_active": true,
    "organization_slug": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "object": "<string>",
    "variant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "variant_options": {},
    "is_exempt": true,
    "stock_summary": {
      "total_quantity": 123,
      "warehouse_count": 1,
      "by_warehouse": [
        {
          "warehouse_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "warehouse_name": "<string>",
          "quantity": 123,
          "on_hand": 123,
          "reserved_quantity": 123,
          "incoming_quantity": 123
        }
      ]
    },
    "effective_price": 123,
    "applied_price_list": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "is_automatic": true,
      "adjustment_percentage": 123,
      "tax_inclusive": true
    }
  }
}

Authorizations

Authorization
string
header
required

Incluí tu API key en el header Authorization con el prefijo Bearer.

Path Parameters

product_id
string<uuid>
required

ID del producto

Response

Producto obtenido exitosamente

request_id
string
required
data
object
required