List orders
curl --request GET \
--url https://api.ya.onl/v1/orders \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.ya.onl/v1/orders"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.ya.onl/v1/orders', 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.ya.onl/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.ya.onl/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.ya.onl/v1/orders")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ya.onl/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"address": {
"city": "Lima",
"country": "PERU",
"district": "Miraflores",
"full_address": "Av. Larco 1234, Miraflores, Lima",
"state": "Lima"
},
"currency": "PEN",
"customer": {
"document_number": "12345678",
"document_type": "DNI",
"name": "María García",
"phone_number": "+51999888777"
},
"delivery_fee": 10,
"id": 12345,
"items": [
{
"base_price": 49.9,
"name": "Polo Negro - Talla M",
"quantity": 2,
"variant_id": 500
},
{
"base_price": 59.9,
"name": "Jean Slim Fit - Talla 32",
"quantity": 1,
"variant_id": 501
}
],
"order_date": "2026-03-10T15:30:00Z",
"payment_method": "credit_card",
"payment_receipt_urls": [
"https://example.com/vouchers/voucher1.jpg"
],
"payment_terms": "paid",
"pending_amount": 0,
"status": "confirmed",
"summary_conversation": "2 Polos Negro Talla M y 1 Jean Slim Fit Talla 32. Pago con Yape. Envío a Miraflores.",
"total_amount": 139.7
}
],
"pagination": {
"page": 1,
"limit": 25,
"total_pages": 4,
"total_items": 100,
"has_more": true
}
}{
"type": "<string>",
"detail": "<string>"
}{
"type": "<string>",
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"type": "<string>",
"detail": "<string>"
}Orders
List orders
Retrieve a paginated list of orders for the authenticated merchant.
GET
/
v1
/
orders
List orders
curl --request GET \
--url https://api.ya.onl/v1/orders \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.ya.onl/v1/orders"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.ya.onl/v1/orders', 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.ya.onl/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.ya.onl/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.ya.onl/v1/orders")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ya.onl/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"address": {
"city": "Lima",
"country": "PERU",
"district": "Miraflores",
"full_address": "Av. Larco 1234, Miraflores, Lima",
"state": "Lima"
},
"currency": "PEN",
"customer": {
"document_number": "12345678",
"document_type": "DNI",
"name": "María García",
"phone_number": "+51999888777"
},
"delivery_fee": 10,
"id": 12345,
"items": [
{
"base_price": 49.9,
"name": "Polo Negro - Talla M",
"quantity": 2,
"variant_id": 500
},
{
"base_price": 59.9,
"name": "Jean Slim Fit - Talla 32",
"quantity": 1,
"variant_id": 501
}
],
"order_date": "2026-03-10T15:30:00Z",
"payment_method": "credit_card",
"payment_receipt_urls": [
"https://example.com/vouchers/voucher1.jpg"
],
"payment_terms": "paid",
"pending_amount": 0,
"status": "confirmed",
"summary_conversation": "2 Polos Negro Talla M y 1 Jean Slim Fit Talla 32. Pago con Yape. Envío a Miraflores.",
"total_amount": 139.7
}
],
"pagination": {
"page": 1,
"limit": 25,
"total_pages": 4,
"total_items": 100,
"has_more": true
}
}{
"type": "<string>",
"detail": "<string>"
}{
"type": "<string>",
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"type": "<string>",
"detail": "<string>"
}Autorizaciones
Merchant API key for authentication
Parámetros de consulta
Page number (1-indexed)
Number of items per page (max 100)

