Skip to main content
GET
/
api
/
v1
/
sales
/
{id}
Obtener venta por ID
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"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

ID único de la venta

Example:

"sale-123e4567"

Response

Venta obtenida exitosamente

success
boolean
required
Example:

true

data
object
required