Svefaktura 1.0
Format: Svefaktura 1.0
{
"bookedInvoiceIndicator": null,
"cancelledInvoiceIndicator": null,
// <!-- IF Invoice.InvoiceTypeCode eq '380'-->
"creditInvoiceIndicator": false,
// <!-- ELSE -->
"creditInvoiceIndicator": true,
"id": "file1.ID",
"reference": "Invoice.ID", // Invoice number. An identifier for this document, assigned by the sender.
"issueDate": "Invoice.IssueDate",
"dueDate": "Invoice.PaymentMeans.DuePaymentDate", // The date on which Invoice is due.
"notes": [
{
"text": "Invoice.note", // Fakturatext nere i vänstra hörnet. Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.
"languageId": null
}
],
"buyerReference": null, // A reference provided by the buyer used for internal routing of the document.
"orderReference": null,
"documentCurrencyCode": "Invoice.InvoiceCurrencyCode", // A code signifying the default currency for this document.
"accountingCustomerParty": {
"supplierAssignedAccountId": null,
"party": {
"partyIdentification ": null,
"partyName": { // A name for this party.
"name": "Invoice.BuyerParty.Party.PartyName.Name", // The name of the party.
"languageId": null // The identifier of the language used in the content component.
},
"postalAddress": {
"buildingNumber": null,
"streetName": "Invoice.BuyerParty.Party.Address.StreetName",
"additionalStreetName": null,
"cityName": "Invoice.BuyerParty.Party.Address.CityName",
"postalZone": "Invoice.BuyerParty.Party.Address.postalZone",
"country": {
"identificationCode": "Invoice.BuyerParty.Party.Address.Country.IdentificationCode",
"name": null
}
},
"partyLegalEntity": {
"registrationName": "Invoice.BuyerParty.Party.PartyName.Name",
"companyId": null
}
}
},
"invoicePeriod": null,
"accountingSupplierParty": {
"party": {
"partyIdentification ": {
"id": "Invoice.SellerParty.Party.PartyTaxScheme.CompanyID(Invoice.SellerParty.Party.PartyTaxScheme.TaxScheme.ID=SWT)",
"schemeId": "SE:ORGNR"
},
"partyName": { // A name for this party.
"name": "Invoice.SellerParty.Party.PartyName.Name(Invoice.SellerParty.Party.PartyTaxScheme.TaxScheme.ID=SWT)", // The name of the party.
"languageId": null // The identifier of the language used in the content component.
},
"postalAddress": {
"buildingNumber": null,
"streetName": "Invoice.SellerParty.Party.Address.StreetName",
"additionalStreetName": null,
"cityName": "Invoice.SellerParty.Party.Address.CityName",
"postalZone": "Invoice.SellerParty.Party.Address.postalZone",
"country": {
"identificationCode": "Invoice.SellerParty.Party.Address.Country.IdentificationCode",
"name": null
}
},
"partyLegalEntity": {
"registrationName": "Invoice.SellerParty.Party.PartyName.Name",
"companyId": {
"id": "Invoice.SellerParty.Party.PartyTaxScheme.CompanyID(Invoice.SellerParty.Party.PartyTaxScheme.TaxScheme.ID=SWT)",
"schemeId": null
}
}
}
},
"delivery": {
"deliveryParty": null,
"carrierParty": null,
"actualDeliveryDate": "Invoice.Delivery.ActualDeliveryDateTime", // The actual date of delivery.
"deliveryAddress": { // The delivery address.
"buildingNumber": null,
"streetName": "Invoice.Delivery.DeliveryAddress.StreetName",
"additionalStreetName": null,
"cityName": "Invoice.Delivery.DeliveryAddress.CityName",
"postalZone": "Invoice.Delivery.DeliveryAddress.PostalZone",
"country": {
"identificationCode": "Invoice.Delivery.DeliveryAddress.Country.IdentificationCode",
"name": null
}
}
},
"deliveryTerms": null,
"specialTerms": {
"text": "Invoice.DeliveryTerms.SpecialTerms",
"languageId": null
}
},
"paymentTerms": {
"paymentTermsId": null,
"notes": [
{
"text": "Invoice.PaymentTerms.Note", // Fakturatext nere i vänstra hörnet. Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.
"languageId": null
}
],
},
"paymentMeans": [
{
"paymentChannelCode": "Invoice.PaymentMeans.PaymentMeansTypeCode",
"paymentDueDate": "Invoice.PaymentMeans.DuePaymentDate",
"paymentIds": []
}
],
// loop every Invoice.AllowanceCharge
"allowanceCharges": [
{
"allowanceChargeId": {
"id": "Invoice.AllowanceCharge.AllowanceChargeReasonCode",
"schemeId": null
},
"chargeIndicator": "Invoice.AllowanceCharge.ChargeIndicator",
"allowanceChargeReason": "Invoice.AllowanceCharge.AllowanceChargeReason", // "property name" where we get the value for "amount" below e.g. "AdministrationFee"
"allowanceChargeAmount": {
"amount": "Invoice.AllowanceCharge.Amount", // e.g. "123.23"
"currencyId": "Invoice.AllowanceCharge.Amount(amountCurrencyID)"
},
"TaxCategory": null,
"taxTotal": null
}
// end loop
],
"legalMonetaryTotal": {
"taxInclusiveAmount": {
"amount": "Invoice.LegalTotal.TaxInclusiveTotalAmount",
"currencyId": "Invoice.LegalTotal.TaxInclusiveTotalAmount(amountCurrencyID)"
},
"payableAmount": null
},
// loop Invoice.InvoiceLine
"invoiceLines": [
{
"id": "Invoice.InvoiceLine.ID", // An identifier for this invoice line.
"invoicedQuantity": {
"quantity": "Invoice.InvoiceLine.InvoicedQuantity",
"unitCode": "Invoice.InvoiceLine.InvoicedQuantity(quantityUnitCode)"
},
"lineExtensionAmount": { // The total amount for this invoice line, including allowance charges but net of taxes.
"amount": "Invoice.InvoiceLine.LineExtensionAmount",
"currencyId": "Invoice.InvoiceLine.LineExtensionAmount(amountCurrencyID)"
},
"delivery": null,
"item": {
"name": "Invoice.InvoiceLine.Item.description",
"description": null, // Text describing this item.
"sellersItemIdentification": null,
"classifiedTaxCategory": [ // A tax category applicable to this item.
{
"percent": "Invoice.InvoiceLine.Item.TaxCategory.Percent",
"taxScheme": {
"taxSchemeId": {
"id": "Invoice.InvoiceLine.Item.TaxCategory.TaxScheme.ID", // An identifier for this taxation scheme.
"schemeId": null
}
}
}
]
},
"price": {
"priceAmount": {
"amount": "Invoice.InvoiceLine.Item.BasePrice.PriceAmount",
"currencyId": "Invoice.InvoiceLine.Item.BasePrice.PriceAmount(amountCurrencyID)" // https://docs.zwapgrid.com/docs/code-lists#currencyid
},
"priceTypeCode": null
}
}
]
// end loop
}
Updated 3 months ago