GET

Description

Retrieves a list of orders or a single order.

URL structure

https://api.fortnox.se/3/orders/{DocumentNumber}

Method

GET

Version

3

Response

The order register can return a list of records or a single record. By specifying a DocumentNumber in the URL, a single record will be returned. By not specifying a DocumentNumber the API will return a list of records.

<?xml version="1.0" encoding="UTF-8"?>
<Orders>
    <OrderSubset url="https://api.fortnox.se/3/orders/10149">
        <Cancelled>false</Cancelled>
        <Currency>SEK</Currency>
        <CustomerName>Proffs på Bygg AB</CustomerName>
        <CustomerNumber>102</CustomerNumber>
        <DeliveryDate>2013-08-16</DeliveryDate>
        <DocumentNumber>10149</DocumentNumber>
        <ExternalInvoiceReference1></ExternalInvoiceReference1>
        <ExternalInvoiceReference2></ExternalInvoiceReference2>
        <OrderDate>2013-07-17</OrderDate>
        <Project>0</Project>
        <Total>421</Total>
    </OrderSubset>

    [...]    

    <OrderSubset url="https://api.fortnox.se/3/orders/10150">
        <Cancelled>false</Cancelled>
        <Currency>SEK</Currency>
        <CustomerName>Fotokunden</CustomerName>
        <CustomerNumber>10002</CustomerNumber>
        <DeliveryDate></DeliveryDate>
        <DocumentNumber>10150</DocumentNumber>
        <ExternalInvoiceReference1></ExternalInvoiceReference1>
        <ExternalInvoiceReference2></ExternalInvoiceReference2>
        <OrderDate>2013-07-22</OrderDate>
        <Project>0</Project>
        <Total>1188</Total>
    </OrderSubset><Orders>
<?xml version="1.0" encoding="UTF-8"?>
<Order url="https://api.fortnox.se/3/orders/10149" urlTaxReductionList="https://api.fortnox.se/3/taxreductions?filter=orders&amp;referencenumber=10149">
    <AdministrationFee>20</AdministrationFee>
    <AdministrationFeeVAT>0</AdministrationFeeVAT>
    <Address1>Snickarvägen 7</Address1>
    <Address2>a1</Address2>
    <BasisTaxReduction>0</BasisTaxReduction>
    <Cancelled>false</Cancelled>
    <City>Älvsjö</City>
    <Comments>c1</Comments>
    <ContributionPercent>37.5</ContributionPercent>
    <ContributionValue>150</ContributionValue>
    <CopyRemarks>true</CopyRemarks>
    <Country>Sverige</Country>
    <CostCenter></CostCenter>
    <Currency>SEK</Currency>
    <CurrencyRate>1</CurrencyRate>
    <CurrencyUnit>1</CurrencyUnit>
    <CustomerName>Proffs på Bygg AB</CustomerName>
    <CustomerNumber>102</CustomerNumber>
    <DeliveryAddress1>da1</DeliveryAddress1>
    <DeliveryAddress2>da2</DeliveryAddress2>
    <DeliveryCity>dc1</DeliveryCity>
    <DeliveryCountry>dc1</DeliveryCountry>
    <DeliveryDate>2013-08-16</DeliveryDate>
    <DeliveryName>dn1</DeliveryName>
    <DeliveryZipCode>d1</DeliveryZipCode>
    <DocumentNumber>10149</DocumentNumber>
    <EmailInformation>
        <EmailAddressFrom></EmailAddressFrom>
        <EmailAddressTo></EmailAddressTo>
        <EmailAddressCC></EmailAddressCC>
        <EmailAddressBCC></EmailAddressBCC>
        <EmailSubject>Order {no} från Demobolaget</EmailSubject>
        <EmailBody>Bifogat ser ni er order.</EmailBody>
    </EmailInformation>
    <ExternalInvoiceReference1></ExternalInvoiceReference1>
    <ExternalInvoiceReference2></ExternalInvoiceReference2>
    <Freight>1</Freight>
    <FreightVAT>0</FreightVAT>
    <Gross>400</Gross>
    <HouseWork>false</HouseWork>
    <InvoiceReference>11116</InvoiceReference>
    <Language>SV</Language>
    <Net>400</Net>
    <NotCompleted>false</NotCompleted>
    <OfferReference>0</OfferReference>
    <OrderDate>2013-07-17</OrderDate>
    <OrderRows>
        <OrderRow>
            <AccountNumber>3011</AccountNumber>
            <ArticleNumber>11</ArticleNumber>
            <ContributionPercent>37.5</ContributionPercent>
            <ContributionValue>150</ContributionValue>
            <CostCenter></CostCenter>
            <DeliveredQuantity>10</DeliveredQuantity>
            <Description>Trycksak: 4 sid A4</Description>
            <Discount>0</Discount>
            <DiscountType>PERCENT</DiscountType>
            <HouseWork>false</HouseWork>
            <HouseWorkHoursToReport/>
            <HouseWorkType/>
            <OrderedQuantity>10</OrderedQuantity>
            <Price>40</Price>
            <Project>0</Project>
            <Total>400</Total>
            <Unit>st</Unit>
            <VAT>0</VAT>
        </OrderRow>
    </OrderRows>
    <OrganisationNumber>123456-7890</OrganisationNumber>
    <OurReference>O1</OurReference>
    <Phone1>P1</Phone1>
    <Phone2>P2</Phone2>
    <PriceList>A</PriceList>
    <PrintTemplate>ps</PrintTemplate>
    <Project>0</Project>
    <Remarks>Tack för din order!.</Remarks>
    <RoundOff>0</RoundOff>
    <Sent>false</Sent>
    <TaxReduction></TaxReduction>
    <TermsOfDelivery>FVL</TermsOfDelivery>
    <TermsOfPayment>15</TermsOfPayment>
    <Total>421</Total>
    <TotalToPay>1250</TotalToPay>
    <TotalVAT>0</TotalVAT>
    <VATIncluded>true</VATIncluded>
    <WayOfDelivery>P</WayOfDelivery>
    <YourReference>Y1</YourReference>
    <YourOrderNumber></YourOrderNumber>
    <ZipCode>121 41</ZipCode>
</Order>
{
    "Orders": [
        {
            "@url": "https://api.fortnox.se/3/orders/10149",
            "Cancelled": "false",
            "Currency": "SEK",
            "CustomerName": "Proffs på Bygg AB",
            "CustomerNumber": "102",
            "DeliveryDate": "2013-08-16",
            "DocumentNumber": 10149,
            "ExternalInvoiceReference1": "",
            "ExternalInvoiceReference2": "",
            "OrderDate": "2013-07-17",
            "Project": 0,
            "Total": 421
        },

        [...]

        {
            "@url": "https://api.fortnox.se/3/orders/10150",
            "Cancelled": "false",
            "Currency": "SEK",
            "CustomerName": "Fotokunden",
            "CustomerNumber": "10002",
            "DeliveryDate": null,
            "DocumentNumber": 10150,
            "ExternalInvoiceReference1": "",
            "ExternalInvoiceReference2": "",
            "OrderDate": "2013-07-22",
            "Project": 0,
            "Total": 1188
        }
    ]
}
{
    "Order": {
        "@url": "https://api.fortnox.se/3/orders/10149",
        "@urlTaxReductionList": "https://api.fortnox.se/3/taxreductions?filter=orders&referencenumber=10149",
        "AdministrationFee": 20,
        "AdministrationFeeVAT": 0,
        "Address1": "Snickarvägen 7",
        "Address2": "a1",
        "BasisTaxReduction": 0,
        "Cancelled": "false",
        "City": "Älvsjö",
        "Comments": "c1",
        "ContributionPercent": 37.5,
        "ContributionValue": 150,
        "CopyRemarks": "true",
        "Country": "Sverige",
        "CostCenter": "",
        "Currency": "SEK",
        "CurrencyRate": 1,
        "CurrencyUnit": 1,
        "CustomerName": "Proffs på Bygg AB",
        "CustomerNumber": "102",
        "DeliveryAddress1": "da1",
        "DeliveryAddress2": "da2",
        "DeliveryCity": "dc1",
        "DeliveryCountry": "dc1",
        "DeliveryDate": "2013-08-16",
        "DeliveryName": "dn1",
        "DeliveryZipCode": "d1",
        "DocumentNumber": 10149,
        "EmailInformation": {
            "EmailAddressFrom": null,
            "EmailAddressTo": null,
            "EmailAddressCC": null,
            "EmailAddressBCC": null,
            "EmailSubject": "Order {no} från Demobolaget",
            "EmailBody": "Bifogat ser ni er order."
        },
        "ExternalInvoiceReference1": "",
        "ExternalInvoiceReference2": "",
        "Freight": 1,
        "FreightVAT": 0,
        "Gross": 400,
        "HouseWork": "false",
        "InvoiceReference": 11116,
        "Language": "SV",
        "Net": 400,
        "NotCompleted": "false",
        "OfferReference": 0,
        "OrderDate": "2013-07-17",
        "OrderRows": [
            {
                "AccountNumber": 3011,
                "ArticleNumber": "11",
                "ContributionPercent": 37.5,
                "ContributionValue": 150,
                "CostCenter": "",
                "DeliveredQuantity": 10,
                "Description": "Trycksak: 4 sid A4",
                "Discount": 0,
                "DiscountType": "PERCENT",
                "HouseWork": "false",
                "HouseWorkHoursToReport": null,
                "HouseWorkType": null,
                "OrderedQuantity": 10,
                "Price": 40,
                "Project": "",
                "Total": 400,
                "Unit": "st",
                "VAT": 0
            }
        ],
        "OrganisationNumber": "123456-7890",
        "OurReference": "O1",
        "Phone1": "P1",
        "Phone2": "P2",
        "PriceList": "A",
        "PrintTemplate": "ps",
        "Project": "",
        "Remarks": "Tack för din order!.",
        "RoundOff": 0,
        "Sent": "false",
        "TaxReduction": null,
        "TermsOfDelivery": "FVL",
        "TermsOfPayment": "15",
        "Total": 421,
        "TotalToPay": 421,
        "TotalVat": 0,
        "VATIncluded": "true",
        "WayOfDelivery": "P",
        "YourReference": "Y1",
        "YourOrderNumber": "",
        "ZipCode": "121 41"
    }
}

POST

Description

Creates a new order.

URL structure

https://api.fortnox.se/3/orders/

Method

POST

Version

3

Request

The request body should contain a structure of an order, either in JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Order>
   <CustomerNumber>1</CustomerNumber>
   <OrderRows>
      <OrderRow>
         <ArticleNumber>11</ArticleNumber>
         <DeliveredQuantity>10</DeliveredQuantity>
         <Description>Trycksak: 4 sid A4</Description>
         <OrderedQuantity>10</OrderedQuantity>
         <Unit>st</Unit>
      </OrderRow>
   </OrderRows>
</Order>
{
  "Order": {
    "CustomerNumber": "1",
    "OrderRows": [
      {
        "ArticleNumber": "11",
        "DeliveredQuantity": "10",
        "Description": "Trycksak: 4 sid A4",
        "OrderedQuantity": "10",
        "Unit": "st"
      }
    ]
  }
}

Response

The response should contain the created order in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Order url="https://api.fortnox.se/3/orders/10213" urlTaxReductionList="https://api.fortnox.se/3/taxreductions?filter=orders&amp;referencenumber=10213">
    <AdministrationFee>20</AdministrationFee>
    <AdministrationFeeVAT>0</AdministrationFeeVAT>
    <Address1>Snickarvägen 7</Address1>
    <Address2>Kungsagtan 12</Address2>
    <BasisTaxReduction>0</BasisTaxReduction>
    <Cancelled>false</Cancelled>
    <City>Älvsjö</City>
    <Comments>My comments</Comments>
    <ContributionPercent>100</ContributionPercent>
    <ContributionValue>400</ContributionValue>
    <CopyRemarks>true</CopyRemarks>
    <Country>Sverige</Country>
    <CostCenter></CostCenter>
    <Currency>SEK</Currency>
    <CurrencyRate>1</CurrencyRate>
    <CurrencyUnit>1</CurrencyUnit>
    <CustomerName>Proffs på Bygg AB</CustomerName>
    <CustomerNumber>1</CustomerNumber>
    <DeliveryAddress1>Storgatan 12</DeliveryAddress1>
    <DeliveryAddress2></DeliveryAddress2>
    <DeliveryCity>Växjö</DeliveryCity>
    <DeliveryCountry>35264</DeliveryCountry>
    <DeliveryDate>2013-08-16</DeliveryDate>
    <DeliveryName>EL Maco AB</DeliveryName>
    <DeliveryZipCode>d1</DeliveryZipCode>
    <DocumentNumber>4547</DocumentNumber>
    <EmailInformation>
        <EmailAddressFrom></EmailAddressFrom>
        <EmailAddressTo></EmailAddressTo>
        <EmailAddressCC></EmailAddressCC>
        <EmailAddressBCC></EmailAddressBCC>
        <EmailSubject>Order {no} från Demobolaget</EmailSubject>
        <EmailBody>Bifogat ser ni er order.</EmailBody>
    </EmailInformation>
    <ExternalInvoiceReference1></ExternalInvoiceReference1>
    <ExternalInvoiceReference2></ExternalInvoiceReference2>
    <Freight>1</Freight>
    <FreightVAT>0</FreightVAT>
    <Gross>400</Gross>
    <HouseWork>false</HouseWork>
    <InvoiceReference>0</InvoiceReference>
    <Language>SV</Language>
    <Net>400</Net>
    <NotCompleted>false</NotCompleted>
    <OfferReference>0</OfferReference>
    <OrderDate>2013-07-17</OrderDate>
    <OrderRows>
        <OrderRow>
            <AccountNumber>3011</AccountNumber>
            <ArticleNumber>11</ArticleNumber>
            <ContributionPercent>100</ContributionPercent>
            <ContributionValue>400</ContributionValue>
            <CostCenter></CostCenter>
            <DeliveredQuantity>10.00</DeliveredQuantity>
            <Description>Trycksak: 4 sid A4</Description>
            <Discount>0</Discount>
            <DiscountType>PERCENT</DiscountType>
            <HouseWork>false</HouseWork>
            <HouseWorkHoursToReport/>
            <HouseWorkType/>
            <OrderedQuantity>10.00</OrderedQuantity>
            <Price>40</Price>
            <Project>0</Project>
            <Total>400</Total>
            <Unit>st</Unit>
            <VAT>0</VAT>
        </OrderRow>
    </OrderRows>
    <OrganisationNumber></OrganisationNumber>
    <OurReference>O1</OurReference>
    <Phone1>0470-785000</Phone1>
    <Phone2>0470-785001</Phone2>
    <PriceList>A</PriceList>
    <PrintTemplate>ps</PrintTemplate>
    <Project>0</Project>
    <Remarks>Tack för din order!.</Remarks>
    <RoundOff>0</RoundOff>
    <Sent>false</Sent>
    <TaxReduction></TaxReduction>
    <TermsOfDelivery>FVL</TermsOfDelivery>
    <TermsOfPayment>15</TermsOfPayment>
    <Total>421</Total>
    <TotalToPay>421</TotalToPay>
    <TotalVAT>0</TotalVAT>
    <VATIncluded>true</VATIncluded>
    <WayOfDelivery>P</WayOfDelivery>
    <YourReference>Pelle</YourReference>
    <YourOrderNumber></YourOrderNumber>
    <ZipCode>121 41</ZipCode>
</Order>
    {
      "Order": {
        "@url": "https://api.fortnox.se/3/orders/10214",
        "@urlTaxReductionList": "https://api.fortnox.se/3/taxreductions?filter=orders&referencenumber=10214",
        "AdministrationFee": 20,
        "AdministrationFeeVAT": 0,
        "Address1": "Snickarvägen 7",
        "Address2": "Kungsagtan 12",
        "BasisTaxReduction": 0,
        "Cancelled": "false",
        "City": "Älvsjö",
        "Comments": "My comments",
        "ContributionPercent": 37.5,
        "ContributionValue": 150,
        "CopyRemarks": "true",
        "Country": "Sverige",
        "CostCenter": "",
        "Currency": "SEK",
        "CurrencyRate": 1,
        "CurrencyUnit": 1,
        "CustomerName": "Proffs på Bygg AB",
        "CustomerNumber": "102",
        "DeliveryAddress1": "Storgatan 12",
        "DeliveryAddress2": "",
        "DeliveryCity": "Växjä",
        "DeliveryCountry": "35264",
        "DeliveryDate": "2013-08-16",
        "DeliveryName": "EL Maco AB",
        "DeliveryZipCode": "d1",
        "DocumentNumber": 10214,
        "EmailInformation": {
            "EmailAddressFrom": null,
            "EmailAddressTo": null,
            "EmailAddressCC": null,
            "EmailAddressBCC": null,
            "EmailSubject": "Order {no} från Demobolaget",
            "EmailBody": "Bifogat ser ni er order."
        },
        "ExternalInvoiceReference1": "",
        "ExternalInvoiceReference2": "",
        "Freight": 1,
        "FreightVAT": 0,
        "Gross": 400,
        "HouseWork": "false",
        "InvoiceReference": 0,
        "Language": "SV",
        "Net": 400,
        "NotCompleted": "false",
        "OfferReference": 0,
        "OrderDate": "2013-07-17",
        "OrderRows": [
            {
                "AccountNumber": "3011",
                "ArticleNumber": "11",
                "ContributionPercent": 37.5,
                "ContributionValue": 150,
                "CostCenter": "",
                "DeliveredQuantity": 10,
                "Description": "Trycksak: 4 sid A4",
                "Discount": 0,
                "DiscountType": "PERCENT",
                "HouseWork": "false",
                "HouseWorkHoursToReport": null,
                "HouseWorkType": null,
                "OrderedQuantity": 10,
                "Price": 40,
                "Project": "",
                "Total": 400,
                "Unit": "st",
                "VAT": 0
            }
        ],
        "OrganisationNumber": "123456-7890",
        "OurReference": "O1",
        "Phone1": "0470-785000",
        "Phone2": "0470-785001",
        "PriceList": "A",
        "PrintTemplate": "ps",
        "Project": "",
        "Remarks": "Tack för din order!.",
        "RoundOff": 0,
        "Sent": "false",
        "TaxReduction": null,
        "TermsOfDelivery": "FVL",
        "TermsOfPayment": "15",
        "Total": 421,
        "TotalToPay": 421,
        "TotalVat": 0,
        "VATIncluded": "true",
        "WayOfDelivery": "P",
        "YourReference": "Pelle",
        "YourOrderNumber": "",
        "ZipCode": "121 41"
    }
}

PUT

Description

Updates an order.

URL structure

https://api.fortnox.se/3/orders/{DocumentNumber}

Method

PUT

Version

3

Request

The request body should contain a structure of an order, either in JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Order>
   <CustomerNumber>1</CustomerNumber>
   <OrderRows>
      <OrderRow>
         <ArticleNumber>11</ArticleNumber>
         <DeliveredQuantity>10</DeliveredQuantity>
         <Description>Trycksak: 4 sid A4</Description>
         <OrderedQuantity>20</OrderedQuantity>
         <Unit>st</Unit>
      </OrderRow>
   </OrderRows>
</Order>
{
  "Order": {
    "CustomerNumber": "1",
    "OrderRows": {
      "OrderRow": {
        "ArticleNumber": "11",
        "DeliveredQuantity": "10",
        "Description": "Trycksak: 4 sid A4",
        "OrderedQuantity": "20",
        "Unit": "st"
      }
    }
  }
}

Response

The response should contain the updated order in either JSON or XML.

<?xml version="1.0" encoding="UTF-8"?>
<Order url="https://api.fortnox.se/3/orders/10213" urlTaxReductionList="https://api.fortnox.se/3/taxreductions?filter=orders&amp;referencenumber=10213">
    <AdministrationFee>20</AdministrationFee>
    <AdministrationFeeVAT>0</AdministrationFeeVAT>
    <Address1>Snickarvägen 7</Address1>
    <Address2>Kungsagtan 12</Address2>
    <BasisTaxReduction>0</BasisTaxReduction>
    <Cancelled>false</Cancelled>
    <City>Älvsjö</City>
    <Comments>My comments</Comments>
    <ContributionPercent>37.5</ContributionPercent>
    <ContributionValue>150</ContributionValue>
    <CopyRemarks>true</CopyRemarks>
    <Country>Sverige</Country>
    <CostCenter></CostCenter>
    <Currency>SEK</Currency>
    <CurrencyRate>1</CurrencyRate>
    <CurrencyUnit>1</CurrencyUnit>
    <CustomerName>Proffs på Bygg AB</CustomerName>
    <CustomerNumber>102</CustomerNumber>
    <DeliveryAddress1>Storgatan 12</DeliveryAddress1>
    <DeliveryAddress2></DeliveryAddress2>
    <DeliveryCity>Växjö</DeliveryCity>
    <DeliveryCountry>35264</DeliveryCountry>
    <DeliveryDate>2013-08-16</DeliveryDate>
    <DeliveryName>EL Maco AB</DeliveryName>
    <DeliveryZipCode>d1</DeliveryZipCode>
    <DocumentNumber>10213</DocumentNumber>
    <EmailInformation>
        <EmailAddressTo></EmailAddressTo>
        <EmailAddressCC></EmailAddressCC>
        <EmailAddressBCC></EmailAddressBCC>
        <EmailSubject>Order {no} från Demobolaget</EmailSubject>
        <EmailBody>Bifogat ser ni er order.</EmailBody>
    </EmailInformation>
    <ExternalInvoiceReference1></ExternalInvoiceReference1>
    <ExternalInvoiceReference2></ExternalInvoiceReference2>
    <Freight>1</Freight>
    <FreightVAT>0</FreightVAT>
    <Gross>400</Gross>
    <HouseWork>false</HouseWork>
    <InvoiceReference>0</InvoiceReference>
    <Language>se</Language>
    <Net>400</Net>
    <NotCompleted>false</NotCompleted>
    <OfferReference>0</OfferReference>
    <OrderDate>2013-07-17</OrderDate>
    <OrderRows>
        <OrderRow>
            <AccountNumber>3011</AccountNumber>
            <ArticleNumber>11</ArticleNumber>
            <ContributionPercent>37.5</ContributionPercent>
            <ContributionValue>150</ContributionValue>
            <CostCenter></CostCenter>
            <DeliveredQuantity>10</DeliveredQuantity>
            <Description>Trycksak: 4 sid A4</Description>
            <Discount>0</Discount>
            <DiscountType>PERCENT</DiscountType>
            <HouseWork>false</HouseWork>
            <HouseWorkHoursToReport/>
            <HouseWorkType/>
            <OrderedQuantity>20</OrderedQuantity>
            <Price>40</Price>
            <Project>0</Project>
            <Total>400</Total>
            <Unit>st</Unit>
            <VAT>0</VAT>
        </OrderRow>
    </OrderRows>
    <OrganisationNumber>123456-7890</OrganisationNumber>
    <OurReference>O1</OurReference>
    <Phone1>0470-785000</Phone1>
    <Phone2>0470-785001</Phone2>
    <PriceList>A</PriceList>
    <PrintTemplate>ps</PrintTemplate>
    <Project>0</Project>
    <Remarks>Tack för din order!.</Remarks>
    <RoundOff>0</RoundOff>
    <Sent>false</Sent>
    <TaxReduction></TaxReduction>
    <TermsOfDelivery>FVL</TermsOfDelivery>
    <TermsOfPayment>15</TermsOfPayment>
    <Total>421</Total>
    <TotalVat>0</TotalVat>
    <VATIncluded>true</VATIncluded>
    <WayOfDelivery>P</WayOfDelivery>
    <YourReference>Pelle</YourReference>
    <YourOrderNumber></YourOrderNumber>
    <ZipCode>121 41</ZipCode>
</Order>
{
    "Order": {
        "@url": "https://api.fortnox.se/3/orders/10214",
        "@urlTaxReductionList": "https://api.fortnox.se/3/taxreductions?filter=orders&referencenumber=10214",
        "AdministrationFee": 20,
        "AdministrationFeeVAT": 0,
        "Address1": "Snickarvägen 7",
        "Address2": "Kungsagtan 12",
        "BasisTaxReduction": 0,
        "Cancelled": "false",
        "City": "Älvsjö",
        "Comments": "My comments",
        "ContributionPercent": 37.5,
        "ContributionValue": 150,
        "CopyRemarks": "true",
        "Country": "Sverige",
        "CostCenter": "",
        "Currency": "SEK",
        "CurrencyRate": 1,
        "CurrencyUnit": 1,
        "CustomerName": "Proffs på Bygg AB",
        "CustomerNumber": "102",
        "DeliveryAddress1": "Storgatan 12",
        "DeliveryAddress2": "",
        "DeliveryCity": "Växjä",
        "DeliveryCountry": "35264",
        "DeliveryDate": "2013-08-16",
        "DeliveryName": "EL Maco AB",
        "DeliveryZipCode": "d1",
        "DocumentNumber": 10214,
        "EmailInformation": {
            "EmailAddressTo": null,
            "EmailAddressCC": null,
            "EmailAddressBCC": null,
            "EmailSubject": "Order {no} från Demobolaget",
            "EmailBody": "Bifogat ser ni er order."
        },
        "ExternalInvoiceReference1": "",
        "ExternalInvoiceReference2": "",
        "Freight": 1,
        "FreightVAT": 0,
        "Gross": 400,
        "HouseWork": "false",
        "InvoiceReference": 0,
        "Language": "SV",
        "Net": 400,
        "NotCompleted": "false",
        "OfferReference": 0,
        "OrderDate": "2013-07-17",
        "OrderRows": [
            {
                "AccountNumber": "3011",
                "ArticleNumber": "11",
                "ContributionPercent": 37.5,
                "ContributionValue": 150,
                "CostCenter": "",
                "DeliveredQuantity": 10,
                "Description": "Trycksak: 4 sid A4",
                "Discount": 0,
                "DiscountType": "PERCENT",
                "HouseWork": "false",
                "HouseWorkHoursToReport": null,
                "HouseWorkType": null,
                "OrderedQuantity": 20,
                "Price": 40,
                "Project": "",
                "Total": 400,
                "Unit": "st",
                "VAT": 0
            }
        ],
        "OrganisationNumber": "123456-7890",
        "OurReference": "O1",
        "Phone1": "0470-785000",
        "Phone2": "0470-785001",
        "PriceList": "A",
        "PrintTemplate": "ps",
        "Project": "",
        "Remarks": "Tack för din order!.",
        "RoundOff": 0,
        "Sent": "false",
        "TaxReduction": null,
        "TermsOfDelivery": "FVL",
        "TermsOfPayment": "15",
        "Total": 421,
        "TotalVat": 0,
        "VATIncluded": "true",
        "WayOfDelivery": "P",
        "YourReference": "Pelle",
        "YourOrderNumber": "",
        "ZipCode": "121 41"
    }
}

Actions

Action name Description
createinvoice Creates an invoice from the order
cancel Cancels an order
email Sends an e-mail to the customer with an attached PDF document of the invoice. You can use the field EmailInformation to customize the e-mail message on each invoice.
print This action returns a PDF document with the current template that is used by the specific document. Note that this action also sets the field Sent as true.
externalprint This action is used to set the field Sent as true from an external system without generating a PDF.
preview This action returns a PDF document with the current template that is used by the specific document. Apart from the action print, this action doesn’t set the field Sent as true.

For information about how to use actions, please read this article.

Filters

Filter name Description
cancelled Retrieves all orders with the status “cancelled”
expired Retrieves all orders that has been expired
invoicecreated Retrieves all offers where an invoice has been created
invoicenotcreated Retrieves all orders where an invoice has not been created

For information about how to use filters, please read this article.

Fields

Orders

Field Description Limits Type Searchable Sortable Required R/W
Url Direct url to the record and URL to Taxreduction for the order (URL to Taxreduction shows even if – Taxreduction are connected to order)  – String R
AdministrationFee Administration fee Float R/W
AdministrationFeeVAT VAT of the administration fee Float R
Address1 Address 1 String R/W
Address2 Address 2 String R/W
BasisTaxReduction The amount that Taxreduction is based on Float R
Cancelled If Order is cancelled Boolean R
City City String R/W
Comments Comments String R/W
ContributionPercent Contribution in Percent Float R
ContributionValue Contribution in amount Float R
CopyRemarks If remarks shall be copied from order to invoice Boolean R/W
Country Country, Must be a name of an existing country String R/W
CostCenter Cost center String Yes R/W
Currency Currency 3 characters String R/W
CurrencyRate Currency rate Float R/W
CurrencyUnit Currency unit Float R/W
CustomerName Customer name String Yes Yes R/W
CustomerNumber Customer number String Yes Yes yes R/W
DeliveryAddress1 Delivery address 1 String R/W
DeliveryAddress2 Delivery address 2 String R/W
DeliveryCity Delivery City String R/W
DeliveryCountry Delivery Country String R/W
DeliveryDate Delivery date Date R/W
DeliveryName Delivery name String R/W
DeliveryZipCode Delivery zip code String R/W
DocumentNumber Document number Integer Yes Yes R/W
[EmailInformation]
ExternalInvoiceReference1 External invoice reference 1 String Yes R/W
ExternalInvoiceReference2 External invoice reference 2 String Yes R/W
Freight Freight Float R/W
FreightVAT VAT of the freight Float R
Gross Gross value of order Float R
HouseWork If Order is marked as housework Boolean R
InvoiceReference Reference if an invoice is created from order Integer R
Net Net amount Float R
NotCompleted If order is set to complete Boolean R/W
OrderDate Date of order Date Yes Yes R/W
OfferReference Reference to offer number Integer R
OrderRows[OrderRow]  –
OrderType Type of the Order. Can be Order or Backorder. String R
OrganisationNumber Organization number String R
OurReference Our reference String Yes R/W
Phone1 Phone 1 String R/W
Phone2 Phone 2 String R/W
PriceList Price list code String R/W
PrintTemplate Print document template String R/W
Project Project code String Yes R/W
Remarks Remarks on order String R/W
RoundOff Roundof amount Float R
Sent If document is printed or e-mailed Boolean Yes R
TaxReduction Amount of the Taxreduction Float R
TermsOfDelivery Terms of delivery code String R/W
TermsOfPayment Terms of payment code String R/W
Total Total amount Float R
TotalVAT Total vat amount Float R
VATIncluded If order row price exclude or include vat Boolean R/W
WayOfDelivery Code of delivery String R/W
YourReference Customer reference 50 chars String Yes R/W
YourOrderNumber Customer order number String R/W
ZipCode Order zip code String R/W

Email Information

Field Description Limits Type Searchable Sortable Required R/W
EmailAddressTo Customer e-mail address String R/W
EmailAddressCC Customer e-mail address copy String R/W
EmailAddressBCC Customer e-mail address blind carbon copy String R/W
EmailSubject Subject of e-mail{-} in body = documentnumber{name} =  customer name String R/W
EmailBody Body of e-mail.{-} in body = documentnumber{name} =  customer name String R/W

Order row

Field Description Limits Type Searchable Sortable Required R/W
AccountNumber Account number (If empty Fortnox will use settings from the article) 4 digits Integer R/W
ArticleNumber Article number String R/W
ContributionPercent Contribution Percent Float R
ContributionValue Contribution Value Float R
CostCenter Cost center code String R/W
DeliveredQuantity Delivered quantity Float R/W
Description Description
(If empty Fortnox will use description from the article)
50 characters String Yes R/W
Discount Discount amount Float R/W
DiscountType Type of discount AMOUNT / PERCENT String R/W
HouseWork If the row is housework (If empty Fortnox will use settings from the article) Bool R/W
HouseWorkHoursToReport Hours to be reported if the quantity of the row should not be used as hours. max 5 digits Integer R/W
HouseWorkType The type of house work The type of house work. Can be

CONSTRUCTION ELECTRICITY GLASSMETALWORK
GROUNDDRAINAGEWORKMASONRY

PAINTINGWALLPAPERINGMOVINGSERVICES

ITSERVICESCLEANING TEXTILECLOTHING

SNOWPLOWING GARDENING BABYSITTING
OTHERCAREOTHERCOSTS or empty.

String R/W
OrderedQuantity Ordered quantity Float Yes R/W
Price Unit price (If empty Fortnox will use the price from the customers price list) Float R/W
Project Project code String R/W
Total Total row amount Float R
Unit Code of unit String R/W
VAT VAT percent code (If empty Fortnox will use settings from the article) Float R/W

* Only writable during POST.