curl --request GET \
--url https://api.lapyme.com.ar/api/v1/sales/{id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": 123,
"formattedInvoiceNumber": "<string>",
"invoiceDate": "2023-12-25",
"dueDate": "2023-12-25",
"serviceFrom": "2023-12-25",
"serviceTo": "2023-12-25",
"currency": "<string>",
"subtotal": 123,
"taxAmount": 123,
"total": 123,
"balance": 123,
"concept": 123,
"notes": "<string>",
"fiscalNotes": "<string>",
"integrationSource": "<string>",
"integrationId": "<string>",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"phone": "<string>",
"taxId": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"province": "<string>"
},
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unitPrice": 123,
"unitCost": 123,
"taxRateId": 123,
"discountPercentage": "<string>",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sku": "<string>"
},
"warehouse": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Devuelve los datos de una venta específica usando su ID único, incluyendo detalles de items, pagos y cliente.
curl --request GET \
--url https://api.lapyme.com.ar/api/v1/sales/{id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceNumber": 123,
"formattedInvoiceNumber": "<string>",
"invoiceDate": "2023-12-25",
"dueDate": "2023-12-25",
"serviceFrom": "2023-12-25",
"serviceTo": "2023-12-25",
"currency": "<string>",
"subtotal": 123,
"taxAmount": 123,
"total": 123,
"balance": 123,
"concept": 123,
"notes": "<string>",
"fiscalNotes": "<string>",
"integrationSource": "<string>",
"integrationId": "<string>",
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "[email protected]",
"phone": "<string>",
"taxId": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"province": "<string>"
},
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unitPrice": 123,
"unitCost": 123,
"taxRateId": 123,
"discountPercentage": "<string>",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"sku": "<string>"
},
"warehouse": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Incluí tu API key en el header Authorization con el prefijo Bearer
ID único de la venta
"sale-123e4567"
Was this page helpful?