Egy számla lekérdezése id szerint.
Endpoint: GET /v1/purchase_invoice/{purchaseInvoiceId}?p={projection}
Request:
- fejléc
- x-api-key: API-kulcs
- paraméterek
- purchaseInvoiceId: a számla id-ja
- projection: opcionáls, ha az értéke settings, akkor a válaszban szerepel a tax_code, journal_template, tracking_number, cost_center objektumok teljes tartalma, egyébként csak az id-juk
- body: nincs
Response:
{
"id": 1,
"status": "VERIFIED",
"supplier": {
"name": "Eladó Kft.",
"tax_number": "11111111-1-12",
"address": {
"country_code": "HU",
"postal_code": "1234",
"city": "Budapest",
"street_name": "Példa",
"public_place_category": "utca",
"number": "1"
}
},
"customer": {
"name": "Vevő Kft.",
"tax_number": "22222222-1-12",
"address": {
"country_code": "HU",
"postal_code": "1234",
"city": "Budapest",
"street_name": "Példa",
"public_place_category": "utca",
"number": "2"
}
},
"invoice_number": "A12345678/1234/1234",
"payment_method": "Készpénz",
"currency": "HUF",
"gross_total": "12700",
"issue_date": "2019-11-01",
"payment_date": "2011-12-01",
"delivery_date": "2011-10-31",
"accounting_delivery_date": "2011-10-31",
"tax_date": "2011-10-31",
"vat_chargeable_on_payment": false,
"uploaded_on": "2019-11-03T12:34:56",
"lines": [
{
"gross_amount": "12700",
"net_amount": "10000",
"tax_amount": "2700",
"tax_code": {
"id": 1
"archived": false
},
"journal_template": {
"id": 1
},
"tracking_number": {
"id": 1
},
"cost_center": {
"id": 1
}
}
]
}
Response, ha nincs ilyen számla:
{
"error": "ENTITY_NOT_FOUND",
"message": "PurchaseInvoice not found: id=123",
"details": {
"class": "PurchaseInvoice",
"id": "123"
}
}
Hozzászólások
0 hozzászólás
Hozzászólások írásához jelentkezzen be.