v2

latestSwagger 2.02026-08-0138140265.1 KB
PurchaseInvoices

DEPRECATED. Get Purchase invoice data in a selectable format

DEPRECATED. Use the /api/v2/received_documents endpoint. Get a specific PurchaseInvoice.

get/purchase_invoices/{guid}/{packaging}

Path parameters

guidstring uuid required

purchase invoice guid

packaging'json' | 'ubl' | 'original' required

How to package the purchase invoice. Note that "ubl" is deprecated.

Query parameters

pmvstring

DEPRECATED. The PaymentMeans version. The default (and deprecated) version 1.0 will give BankPaymentMean, DirectDebitPaymentMean, CardPaymentMean, NppPaymentMean, SeBankGiroPaymentMean, SePlusGiroPaymentMean, SgCardPaymentMean, SgGiroPaymentMean, SgPaynowPaymentMean.

Version 2.0 deprecates BankPaymentMean (now CreditTransferPaymentMean), CardPaymentMean (now CreditCardPaymentMean), NppPaymentMean (now AunzNppPayidPaymentMean), SeBankGiroPaymentMean (now SeBankgiroPaymentMean -- note the lower 'g' in 'bankgiro'). It also adds OnlinePaymentServicePaymentMean, StandingAgreementPaymentMean, AunzNppPaytoPaymentMean, AunzBpayPaymentMean, AunzPostbillpayPaymentMean, AunzUriPaymentMean.

versionstring

The JSON content version date. The default is '1970-01-01' meaning you get all deprecated elements since nothing was deprecated before that ;). If you do not want deprecated elements, use a later date. Do not use a dynamic date, because that means when we deprecate elements they will disappear from our responses. Only used for 'json' packaging, not for 'original'.

Response

Success

guidstring uuid

The GUID of the invoice

tax_systemstring

The tax system of the invoice. Either tax_line_percentages or tax_line_amounts. The first tax system means the invoice lines contain only the tax percentages and the tax amounts are included only in the tax subtotals at the invoice level and so are only calculated at the invoice level. The tax system tax_line_amounts means that in addition to the percentage, each invoice line also contains the tax amount. The tax subtotals at the invoice level are calculated as the sum of the tax of the invoice lines. The distinction between the two tax systems has has implications for rounding.

legal_entity_idinteger

The id of the LegalEntity the invoice was received for.

external_user_idstring

Used for the embedded portal retrieval service. The external_user_id you provided when the ShopAccount was created.

external_keystring

Used for accountants. The id you specified for the organization.

system_generated_primary_imageboolean

Whether or not the document image (PDF) was generated by Storecove. If true, it means the invoice was received without any attachments and Storecove generated one for you. If false, the invoice will contain at least one attachment, which was received from the invoice sender.

ublstring

The Base64 encoded UBL invoice.