Skip to main content
GET
/
api
/
v1
/
purchases
/
{purchase_id}
Obtener compra por ID
curl --request GET \
  --url https://api.lapyme.com.ar/api/v1/purchases/{purchase_id} \
  --header 'Authorization: Bearer <token>'
{
  "request_id": "<string>",
  "data": {
    "object": "purchase",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "voucher_type": "<string>",
    "import_document_role": "commercial_invoice",
    "import_source_purchase_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "import_nationalization_status": "pending_nationalization",
    "customs_dispatch_number": "<string>",
    "supplier_invoice_number": "<string>",
    "invoice_date": "<string>",
    "account_date": "<string>",
    "due_date": "<string>",
    "payment_term_id": "days_7",
    "vat_perception_amount": 4503599627370495,
    "national_tax_amount": 4503599627370495,
    "gross_income_tax_amount": 4503599627370495,
    "gross_income_tax_breakdown": [
      {
        "province_id": 0,
        "amount": 4503599627370495
      }
    ],
    "municipal_tax_amount": 4503599627370495,
    "internal_tax_amount": 4503599627370495,
    "other_tax_amount": 4503599627370495,
    "subtotal": 4503599627370495,
    "tax_amount": 4503599627370495,
    "exempt_amount": 4503599627370495,
    "total": 4503599627370495,
    "balance": 0,
    "discount": 4503599627370495,
    "vat_breakdown": [
      {
        "tax_rate_id": 4503599627370495,
        "base_amount": 4503599627370495,
        "tax_amount": 4503599627370495
      }
    ],
    "notes": "<string>",
    "vat_category": "goods",
    "currency": "<string>",
    "exchange_rate": "<string>",
    "pdf_path": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "supplier": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "email": "<string>",
      "phone": "<string>",
      "tax_id": "<string>",
      "tax_id_type": "<string>",
      "tax_category": "<string>",
      "address": "<string>",
      "city": "<string>",
      "province_id": "<string>",
      "postal_code": "<string>",
      "payment_term_id": "<string>"
    },
    "warehouse": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    },
    "items": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "quantity": 1,
        "unit_cost": 4503599627370495,
        "subtotal": 4503599627370495,
        "tax_rate_id": 4503599627370495,
        "is_exempt": true,
        "total": 4503599627370495,
        "discount_percentage": 123,
        "purchase_order_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "vat_category": "goods",
        "product": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "sku": "<string>",
          "name": "<string>",
          "product_type": "product"
        },
        "purchase_order": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "formatted_order_number": "<string>"
        }
      }
    ]
  }
}

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.

Path Parameters

purchase_id
string<uuid>
required

ID de la compra

Response

Compra obtenida exitosamente

request_id
string
required
data
object
required