La Pyme SDK
import { Lapyme } from "lapyme";
const lapyme = new Lapyme({
bearerAuth: process.env["LAPYME_API_KEY"] ?? "",
});
const prices = await lapyme.priceListPrices.list({
priceListId: "550e8400-e29b-41d4-a716-446655440601",
limit: 50,
isActive: true,
});curl --request GET \
--url https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"request_id": "req_price_list_prices_1",
"object": "list",
"url": "/api/v1/price-lists/550e8400-e29b-41d4-a716-446655440601/prices",
"pricing_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data": [
{
"object": "price_list_price",
"price_list_id": "550e8400-e29b-41d4-a716-446655440601",
"product_id": "550e8400-e29b-41d4-a716-446655440602",
"status": "priced",
"unit_price": 123400,
"currency": "ARS",
"tax_inclusive": false,
"tax_rate": {
"id": 5,
"value": 21
},
"is_exempt": false,
"calculation": {
"origin": "product_rule",
"type": "fixed_price",
"source_price_list_id": null
}
}
],
"has_more": false,
"next_cursor": null
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Parámetros inválidos",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "API key faltante o inválida",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Scope price_lists:read insuficiente",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Lista de precios no encontrada o no visible",
"retryable": false,
"details": []
}
}{
"request_id": "req_price_list_prices_1",
"error": {
"code": "PRICE_LIST_PRICES_CHANGED",
"message": "Price-list prices changed. Restart pagination from the first page.",
"retryable": true,
"type": "invalid_request_error",
"details": []
}
}{
"request_id": "req_rate_limit_1",
"error": {
"type": "rate_limit_error",
"code": "RATE_LIMITED",
"message": "The organization request limit was reached. Try again later.",
"retryable": true,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Error interno del servidor",
"retryable": false,
"details": []
}
}Listar precios resueltos de una lista
Devuelve el precio unitario base efectivo de cada variante vendible para una lista de precios. Se ordena por product_id ascendente. No incluye nombres, SKU, stock, costos ni precios transaccionales. Si PRICE_LIST_PRICES_CHANGED responde 409, reiniciá la paginación sin cursor.
GET
/
api
/
v1
/
price-lists
/
{price_list_id}
/
prices
La Pyme SDK
import { Lapyme } from "lapyme";
const lapyme = new Lapyme({
bearerAuth: process.env["LAPYME_API_KEY"] ?? "",
});
const prices = await lapyme.priceListPrices.list({
priceListId: "550e8400-e29b-41d4-a716-446655440601",
limit: 50,
isActive: true,
});curl --request GET \
--url https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lapyme.com.ar/api/v1/price-lists/{price_list_id}/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"request_id": "req_price_list_prices_1",
"object": "list",
"url": "/api/v1/price-lists/550e8400-e29b-41d4-a716-446655440601/prices",
"pricing_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data": [
{
"object": "price_list_price",
"price_list_id": "550e8400-e29b-41d4-a716-446655440601",
"product_id": "550e8400-e29b-41d4-a716-446655440602",
"status": "priced",
"unit_price": 123400,
"currency": "ARS",
"tax_inclusive": false,
"tax_rate": {
"id": 5,
"value": 21
},
"is_exempt": false,
"calculation": {
"origin": "product_rule",
"type": "fixed_price",
"source_price_list_id": null
}
}
],
"has_more": false,
"next_cursor": null
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Parámetros inválidos",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "API key faltante o inválida",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Scope price_lists:read insuficiente",
"retryable": false,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Lista de precios no encontrada o no visible",
"retryable": false,
"details": []
}
}{
"request_id": "req_price_list_prices_1",
"error": {
"code": "PRICE_LIST_PRICES_CHANGED",
"message": "Price-list prices changed. Restart pagination from the first page.",
"retryable": true,
"type": "invalid_request_error",
"details": []
}
}{
"request_id": "req_rate_limit_1",
"error": {
"type": "rate_limit_error",
"code": "RATE_LIMITED",
"message": "The organization request limit was reached. Try again later.",
"retryable": true,
"details": []
}
}{
"request_id": "req_error_1",
"error": {
"type": "invalid_request_error",
"code": "INVALID_REQUEST",
"message": "Error interno del servidor",
"retryable": false,
"details": []
}
}Authorizations
Incluí tu API key en el header Authorization con el prefijo Bearer.
Headers
ETag débil de una respuesta inicial equivalente. No se aplica a páginas con cursor.
Path Parameters
ID de la lista de precios
Query Parameters
Valor opaco de next_cursor recibido en la respuesta anterior. Está ligado a pricing_revision.
Cantidad máxima de resultados por respuesta
Required range:
1 <= x <= 100Filtra variantes activas o inactivas. Si se omite, incluye ambas.
Response
Precios efectivos obtenidos exitosamente
Was this page helpful?

