Home

Björn Lundén

Format: Björn Lundén Invoice

{

  "bookedInvoiceIndicator": "BL(invoice):preliminary", // IF (preliminary = false) THEN true else false

  "cancelledInvoiceIndicator": null,

  "creditInvoiceIndicator": null,

  "financialDimensions": [
    {
      "id": "BL(invoice):projectId",
      "financialDimensionId": null,
      "type": "project"
    },
    {
      "id": "BL(invoice):costCenterId",
      "financialDimensionId": null,
      "type": "costCode"
    },
    {
      "id": "BL(invoice):costBearerId",
      "financialDimensionId": null,
      "type": "costBearer"
    }
  ],

  "id": "BL(invoice):entityId",

  "invoiceId": "BL(invoice):invoiceNumber", // Invoice number. An identifier for this document, assigned by the sender.

  "issueDate": "BL(invoice):invoiceDate",

  "dueDate": "BL(invoice):dueDate", // The date on which Invoice is due.

  "note": [],

  "buyerReference": "bl(order):yourReference", // A reference provided by the buyer used for internal routing of the document.

  "orderReference": {
    "buyerOrderId": "BL(order):customerOrderNumber", // An identifier for this order reference, assigned by the buyer.
    "sellerOrderId": "BL(invoice):orderNumber" // An identifier for this order reference, assigned by the seller.
  },

  "documentCurrencyCode": "BL(invoice):currency", // A code signifying the default currency for this document.

  "accountingCustomerParty": {

    "supplierAssignedAccountId": {
      "id": "BL(invoice):customerId", // An identifier for the customer's account, assigned by the supplier.
      "schemeId": null // The identification of the identification scheme.
    },

    "party": {
      "partyIdentification ": null,

      "partyName": { // A name for this party.
        "name": "BL(invoice):customerName", // The name of the party.
        "languageId": null // The identifier of the language used in the content component.
      },

      "postalAddress": {
        "buildingNumber": null,
        "streetName": "BL(order):box",
        "additionalStreetName": "BL(order):street",
        "cityName": "BL(order):city",
        "postalZone": "BL(order):zip",
        "country": {
          "identificationCode": null,
          "name": "BL(order):country"
        }
      },

      "partyLegalEntity": {
        "registrationName": "BL(invoice):customerName",
        "companyId": null
      }
    }
  },

  "invoicePeriod": null,

  "accountingSupplierParty": null, // !!! dont implement this object

  "delivery": {
    "deliveryParty": {
      "partyName": {
        "name": "bl(order):deliveryName", // The party to whom the goods are delivered.
        "languageId": null
      }
    },

    "carrierParty": {
      "partyName": {
        "name": "bl(order):deliveryMethodText", // The party responsible for delivering the goods.
        "languageId": null
      }
    },

    "actualDeliveryDate": "bl(order):deliveryDate", // The actual date of delivery.

    "deliveryAddress": { // The delivery address.
      "buildingNumber": null,
      "streetName": "bl(order):deliveryBox",
      "additionalStreetName": "bl(order):deliveryStreet",
      "cityName": "bl(order):deliveryCity",
      "postalZone": "bl(order):deliveryZip",
      "country": {
        "identificationCode": null,
        "name": "bl(order):deliveryCountry"
      }
    }

  },

  "deliveryTerms": {
    "deliveryTermsId": {
      "id": "bl(order):deliveryTermsText",
      "schemeId": null
    },
    "specialTerms": null
  },

  "paymentTerms": {
    "paymentTermsId": {
      "id": "bl(order):paymentTerms",
      "schemeId": null
    }
  },

  "paymentMeans": [
    {
      "paymentChannelCode": null,
      "paymentDueDate": "BL(invoice):dueDate",
      "paymentId": [
        {
          "id": "BL(invoice):ocrRef",
          "schemeId": "OCR"
        },
        {
          "id": "BL(invoice):invoiceNumber",
          "schemeId": "invoiceId"
        }
      ]
    }
  ],

  "allowanceCharge": [
    {
      "allowanceChargeId": {
        "id": null,
        "schemeId": null
      },
      "chargeIndicator": true,
      "multiplierFactorNumeric": null,
      "allowanceChargeReason": "ReminderFee1", // "property name"
      "allowanceChargeAmount": {
        "amount": "BL(invoice):reminderFee1", // e.g. "123.23"
        "currencyId": "BL(invoice):currency"
      },
      "allowanceChargeBaseAmount": null,
      "taxTotal": {
        "taxAmount": {
          "amount": null,
          "currencyId": null
        },
        "taxIncludedIndicator": null
      }
    },
    {
      "allowanceChargeId": {
        "id": null,
        "schemeId": null
      },
      "chargeIndicator": true,
      "multiplierFactorNumeric": null,
      "allowanceChargeReason": "ReminderFee2", // "property name"
      "allowanceChargeAmount": {
        "amount": "BL(invoice):reminderFee2", // e.g. "123.23"
        "currencyId": "BL(invoice):currency"
      },
      "allowanceChargeBaseAmount": null,
      "taxTotal": {
        "taxAmount": {
          "amount": null,
          "currencyId": null
        },
        "taxIncludedIndicator": null
      }
    },
    {
      "allowanceChargeId": {
        "id": null,
        "schemeId": null
      },
      "chargeIndicator": true,
      "multiplierFactorNumeric": null,
      "allowanceChargeReason": "ReminderFee3", // "property name"
      "allowanceChargeAmount": {
        "amount": "BL(invoice):reminderFee3", // e.g. "123.23"
        "currencyId": "BL(invoice):currency"
      },
      "allowanceChargeBaseAmount": null,
      "taxTotal": {
        "taxAmount": {
          "amount": null,
          "currencyId": null
        },
        "taxIncludedIndicator": null
      }
    }
  ],

  "taxTotal": [ // The total amount of a specific type of tax.
    {
      "taxAmount": {
        "amount": "bl(order):sumVat",
        "currencyId": "bl(order):currency"
      },
      "taxIncludedIndicator": "bl(order):noVat" // An indicator that tax is included in the calculation (true) or not (false).
    }
  ],

  "legalMonetaryTotal": {
    "taxInclusiveAmount": { // The monetary amount including taxes; the sum of payable amount and prepaid amount.
      "amount": "BL(invoice):amount",
      "currencyId": "bl(invoice):currency"
    },
    "payableRoundingAmount": {
      "amount": "bl(order):rounding",
      "currencyId": "bl(order):currency"
    },
    "payableAmount": { // The amount of the monetary total to be paid.
      "amount": "bl(invoice):amount",
      "currencyId": "bl(invoice):currency"
    }
  },

  "invoiceLine": [
    {

      "financialDimensions": [
        {
          "id": "bl(order).lines.projectId",
          "financialDimensionId": null,
          "type": "project"
        },
        {
          "id": "bl(order):lines.costCenterId",
          "financialDimensionId": null,
          "type": "costCode"
        },
        {
          "id": "bl(order):lines.costBearerId",
          "financialDimensionId": null,
          "type": "costBearer"
        }
      ],

      "id": "bl(order):lines.rowNumber", // An identifier for this invoice line.

      "invoicedQuantity": {
        "quantity": "bl(order):lines.orderedQuantity",
        "unitCode": "bl(order):lines.unit"
      },

      "lineExtensionAmount": { // The total amount for this invoice line, including allowance charges but net of taxes.
        "amount": "bl(order):lines.netPrice",
        "currencyId": "bl(order):lines.currency"
      },

      "item": {
        "name": null,

        "description": "bl(order):lines.description",

        "sellersItemIdentification": {
          "id": "bl(order):lines.articleId",
          "extendedId": null, // An extended identifier for the item that identifies the item with specific properties, e.g., Item 123 = Chair / Item 123 Ext 45 = brown chair. Two chairs can have the same item number, but one is brown. The other is white.
          "barcodeSymbologyId": null
        },

        "classifiedTaxCategory": [ // A tax category applicable to this item.
          {
            "percent": null, // format eg "25" not "0.2500"
            "taxScheme": {
              "taxSchemeId": {
                "id": "VAT", // An identifier for this taxation scheme.
                "schemeId": "SE:VAT"
              }
            }
          }
        ]

      },

      "price": {

        "priceAmount": {
          "amount": "bl(order):lines.unitPrice",
          "currencyId": "bl(order):lines.currency" // eg "SEK"
        },

        "priceTypeCode": {
          "code": "ABE", // ABE - Retail price - excluding taxes - Retail price not including any applicable taxes. https://service.unece.org/trade/untdid/d00a/tred/tred5387.htm
          "listId": "5387"
        },

        "allowanceCharge": [
          {
            "allowanceChargeId": null,
            "chargeIndicator": false,

            "multiplierFactorNumeric": "bl(order):lines.discountPercentage", // eg. "0.1000" converts to => "10"
            "allowanceChargeReason": null,
            "allowanceChargeAmount": {
              "amount": "bl(order):lines.discountAmount",
              "currencyId": "bl(order):lines.currency"
            },

            "allowanceChargeBaseAmount": {
              "amount": "bl(order):lines.unitPrice",
              "currencyId": "bl(order):lines.currency"
            },
            "taxTotal": null
          }
        ]
      }
    }
  ]
}