Skip to main content
PUT
/
api
/
v1
/
products
/
{product_id}
Actualizar producto
curl --request PUT \
  --url https://api.lapyme.com.ar/api/v1/products/{product_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "visibility": "both",
  "product_type": "product",
  "sku": "<string>",
  "unit_of_measure": "10",
  "currency": "PES",
  "cost": 4503599627370495,
  "tax_rate_id": 0,
  "is_exempt": false,
  "stock_minimum": 0,
  "warehouse_stocks": [],
  "is_active": true,
  "description": "<string>",
  "category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "image_url": "<string>",
  "barcode": "<string>",
  "oem_code": "<string>",
  "price": 4503599627370495,
  "promotional_price": 4503599627370495,
  "markup_percentage": 500,
  "default_supplier_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "default_sales_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "default_purchase_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "request_id": "<string>",
  "data": {
    "product": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "category": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "sku": "<string>",
      "barcode": "<string>",
      "oem_code": "<string>",
      "currency": "<string>",
      "cost": 123,
      "price": 123,
      "tax_rate": {
        "id": 123,
        "value": 123
      },
      "stock_minimum": 123,
      "default_supplier": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "product_type": "product",
      "is_active": true,
      "organization_slug": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "object": "product",
      "variant_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "variant_options": {},
      "is_exempt": true,
      "stock_summary": {
        "total_quantity": 123,
        "warehouse_count": 4503599627370495,
        "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,
      "price_source": "automatic",
      "applied_price_list": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "is_automatic": true,
        "automatic_pricing_mode": "base_price_adjustment",
        "adjustment_percentage": 123,
        "tax_inclusive": true
      }
    }
  },
  "warnings": [
    "<unknown>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.lapyme.com.ar/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Headers

X-Request-Id
string

ID opcional de la solicitud para trazabilidad. Si se omite, el servidor genera uno.

Required string length: 1 - 255

Path Parameters

product_id
string<uuid>
required

ID del producto

Body

application/json
name
string
required
Required string length: 1 - 255
visibility
enum<string>
default:both
required
Available options:
both,
sales,
purchases
product_type
enum<string>
default:product
required
Available options:
product,
service,
combo,
kit
sku
string
required
Required string length: 1 - 100
unit_of_measure
enum<string>
required
Available options:
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
41,
47,
48,
49,
50,
51,
52,
53,
54,
55,
61,
62,
63,
97,
98,
99,
00,
01,
02,
03,
04,
05,
06,
07,
08,
09
currency
enum<string>
default:PES
required
Available options:
PES,
DOL
cost
integer
required
Required range: 0 <= x <= 9007199254740991
tax_rate_id
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991
is_exempt
boolean
default:false
required
stock_minimum
integer
default:0
required
Required range: 0 <= x <= 9007199254740991
warehouse_stocks
object[]
required
is_active
boolean
default:true
required
description
string | null
Maximum string length: 500
category_id
string<uuid> | null
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
image_url
string | null
Maximum string length: 2000
barcode
string | null
Maximum string length: 100
oem_code
string | null
Maximum string length: 100
price
integer
Required range: 0 <= x <= 9007199254740991
promotional_price
integer | null
Required range: 0 <= x <= 9007199254740991
markup_percentage
number | null
Required range: 0 <= x <= 1000
default_supplier_id
string<uuid> | null
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
default_sales_account_id
string<uuid> | null
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
default_purchase_account_id
string<uuid> | null
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Producto actualizado exitosamente

request_id
string
required
data
object
required
warnings
any[]
required