Skip to main content
PUT
/
api
/
v1
/
suppliers
/
{supplier_id}
Actualizar proveedor
curl --request PUT \
  --url https://api.lapyme.com.ar/api/v1/suppliers/{supplier_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "name": "<string>",
  "company_name": "<string>",
  "description": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "tax_id": "<string>",
  "tax_id_type": "CUIL/CUIT",
  "tax_category": "registered_vat_taxpayer",
  "person_type": "FISICA",
  "country": "<string>",
  "province": "<string>",
  "city": "<string>",
  "address": "<string>",
  "apartment": "<string>",
  "postal_code": "<string>",
  "payment_term_id": "<string>",
  "is_active": true
}
'
{
  "request_id": "<string>",
  "data": {
    "supplier": {
      "object": "supplier",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "company_name": "<string>",
      "description": "<string>",
      "email": "<string>",
      "phone": "<string>",
      "tax_id": "<string>",
      "tax_id_type": "<string>",
      "tax_category": "<string>",
      "payment_term_id": "<string>",
      "is_active": true,
      "person_type": "<string>",
      "country": "<string>",
      "province_id": "<string>",
      "city": "<string>",
      "address": "<string>",
      "apartment": "<string>",
      "postal_code": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  },
  "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

Idempotency-Key
string
required
Required string length: 1 - 255

Path Parameters

supplier_id
string<uuid>
required

Body

application/json
name
string
required
Required string length: 1 - 70
company_name
string | null
Maximum string length: 70
description
string | null
Maximum string length: 500
email
string<email> | null
Maximum string length: 100
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
phone
string | null
Maximum string length: 13
tax_id
string | null
Maximum string length: 32
tax_id_type
enum<string> | null
Available options:
CUIL/CUIT,
DNI
tax_category
enum<string>
Available options:
registered_vat_taxpayer,
final_consumer,
monotributo_taxpayer,
vat_exempt,
vat_not_applicable
person_type
enum<string>
Available options:
FISICA,
JURIDICA
country
string
Maximum string length: 50
province
string
Maximum string length: 2
city
string | null
Maximum string length: 255
address
string | null
Maximum string length: 70
apartment
string | null
Maximum string length: 10
postal_code
string | null
Maximum string length: 8
payment_term_id
string | null
is_active
boolean

Response

Proveedor actualizado exitosamente

request_id
string
required
data
object
required
warnings
any[]
required