GET api/Invoice/v2/{JobCardID}?getInventory={getInventory}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
JobCardID

integer

Required

getInventory

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

InvoiceModel
NameDescriptionTypeAdditional information
ID

integer

None.

JobcardID

integer

None.

JobCardNo

string

None.

CyclistID

integer

None.

CyclistSalutation

string

None.

BikeID

integer

None.

BikeSalutation

string

None.

SentApproval

boolean

None.

PartnerID

integer

None.

VATRate

decimal number

None.

CurrencySymbol

string

None.

StatusID

integer

None.

SynchStatusID

0 synched, all OK 1 waiting to be synched 2 synch errors occured, will retry 99 synch errors occured, needs a human

integer

None.

LastSynchDate

date

None.

SynchFeedback

string

None.

SynchStatus

string

None.

ExternalKey

string

None.

ExternalRefNo

string

None.

Note

string

None.

Currency

string

None.

EMail

string

None.

Phone

string

None.

Total_Discounts

decimal number

None.

Total_LineItems

decimal number

None.

Total_Tax

decimal number

None.

Total_Price

decimal number

None.

LineItems

Collection of LineItemModel

None.

OrderNeeded

boolean

None.

Payments

decimal number

None.

AskForApproval

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "JobcardID": 2,
  "JobCardNo": "sample string 3",
  "CyclistID": 4,
  "CyclistSalutation": "sample string 5",
  "BikeID": 6,
  "BikeSalutation": "sample string 7",
  "SentApproval": true,
  "PartnerID": 9,
  "VATRate": 10.1,
  "CurrencySymbol": "sample string 11",
  "StatusID": 12,
  "SynchStatusID": 13,
  "LastSynchDate": "2025-09-05T16:02:54.0904344+00:00",
  "SynchFeedback": "sample string 15",
  "SynchStatus": "sample string 16",
  "ExternalKey": "sample string 17",
  "ExternalRefNo": "sample string 18",
  "Note": "sample string 19",
  "Currency": "sample string 20",
  "EMail": "sample string 21",
  "Phone": "sample string 22",
  "Total_Discounts": 23.1,
  "Total_LineItems": 24.1,
  "Total_Tax": 25.1,
  "Total_Price": 26.1,
  "LineItems": [
    {
      "ID": 1,
      "InvoiceID": 2,
      "ExternalKey": "sample string 3",
      "InvoiceDate": "2025-09-05T16:02:54.0904344+00:00",
      "ExternalProductID": "sample string 5",
      "InternalProductID": 6,
      "SKU": "sample string 7",
      "Quantity": 8.1,
      "UnitPrice": 9.1,
      "UnitPrice_IncludingTax": 10.1,
      "Price": 11.1,
      "Tax": 12.1,
      "Discount": 13.1,
      "Note": "sample string 14",
      "Name": "sample string 15",
      "Description": "sample string 16",
      "Brand": "sample string 17",
      "VariantID": "sample string 18",
      "DiscountID": 19,
      "Approved": 20,
      "StockOnHand": 21,
      "SpecialOrderStatus": "sample string 22",
      "FoundInPOS": true,
      "LineItemNote": "sample string 24",
      "LinkedGear": [
        {
          "ID": 1,
          "InvoiceProductID": 2,
          "GearTypeID": 3,
          "GearType": "sample string 4",
          "IsService": true,
          "IsReplacement": true
        },
        {
          "ID": 1,
          "InvoiceProductID": 2,
          "GearTypeID": 3,
          "GearType": "sample string 4",
          "IsService": true,
          "IsReplacement": true
        }
      ],
      "LightSpeedDiscounts": [
        {
          "ID": 1,
          "Name": "sample string 2",
          "DiscountAmount": 3.1,
          "DiscountPercent": 4.1
        },
        {
          "ID": 1,
          "Name": "sample string 2",
          "DiscountAmount": 3.1,
          "DiscountPercent": 4.1
        }
      ]
    },
    {
      "ID": 1,
      "InvoiceID": 2,
      "ExternalKey": "sample string 3",
      "InvoiceDate": "2025-09-05T16:02:54.0904344+00:00",
      "ExternalProductID": "sample string 5",
      "InternalProductID": 6,
      "SKU": "sample string 7",
      "Quantity": 8.1,
      "UnitPrice": 9.1,
      "UnitPrice_IncludingTax": 10.1,
      "Price": 11.1,
      "Tax": 12.1,
      "Discount": 13.1,
      "Note": "sample string 14",
      "Name": "sample string 15",
      "Description": "sample string 16",
      "Brand": "sample string 17",
      "VariantID": "sample string 18",
      "DiscountID": 19,
      "Approved": 20,
      "StockOnHand": 21,
      "SpecialOrderStatus": "sample string 22",
      "FoundInPOS": true,
      "LineItemNote": "sample string 24",
      "LinkedGear": [
        {
          "ID": 1,
          "InvoiceProductID": 2,
          "GearTypeID": 3,
          "GearType": "sample string 4",
          "IsService": true,
          "IsReplacement": true
        },
        {
          "ID": 1,
          "InvoiceProductID": 2,
          "GearTypeID": 3,
          "GearType": "sample string 4",
          "IsService": true,
          "IsReplacement": true
        }
      ],
      "LightSpeedDiscounts": [
        {
          "ID": 1,
          "Name": "sample string 2",
          "DiscountAmount": 3.1,
          "DiscountPercent": 4.1
        },
        {
          "ID": 1,
          "Name": "sample string 2",
          "DiscountAmount": 3.1,
          "DiscountPercent": 4.1
        }
      ]
    }
  ],
  "OrderNeeded": true,
  "Payments": 28.1,
  "AskForApproval": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<InvoiceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <AskForApproval>true</AskForApproval>
  <BikeID>6</BikeID>
  <BikeSalutation>sample string 7</BikeSalutation>
  <Currency>sample string 20</Currency>
  <CurrencySymbol>sample string 11</CurrencySymbol>
  <CyclistID>4</CyclistID>
  <CyclistSalutation>sample string 5</CyclistSalutation>
  <EMail>sample string 21</EMail>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ExternalKey>sample string 17</ExternalKey>
  <ExternalRefNo>sample string 18</ExternalRefNo>
  <ID>1</ID>
  <JobCardNo>sample string 3</JobCardNo>
  <JobcardID>2</JobcardID>
  <LastSynchDate>2025-09-05T16:02:54.0904344+00:00</LastSynchDate>
  <LineItems>
    <LineItemModel>
      <Approved>20</Approved>
      <Brand>sample string 17</Brand>
      <Description>sample string 16</Description>
      <Discount>13.1</Discount>
      <DiscountID>19</DiscountID>
      <ExternalKey>sample string 3</ExternalKey>
      <ExternalProductID>sample string 5</ExternalProductID>
      <FoundInPOS>true</FoundInPOS>
      <ID>1</ID>
      <InternalProductID>6</InternalProductID>
      <InvoiceDate>2025-09-05T16:02:54.0904344+00:00</InvoiceDate>
      <InvoiceID>2</InvoiceID>
      <LightSpeedDiscounts>
        <LightSpeedDiscountsModel>
          <DiscountAmount>3.1</DiscountAmount>
          <DiscountPercent>4.1</DiscountPercent>
          <ID>1</ID>
          <Name>sample string 2</Name>
        </LightSpeedDiscountsModel>
        <LightSpeedDiscountsModel>
          <DiscountAmount>3.1</DiscountAmount>
          <DiscountPercent>4.1</DiscountPercent>
          <ID>1</ID>
          <Name>sample string 2</Name>
        </LightSpeedDiscountsModel>
      </LightSpeedDiscounts>
      <LineItemNote>sample string 24</LineItemNote>
      <LinkedGear>
        <InvoiceProductToGearLinkModel>
          <GearType>sample string 4</GearType>
          <GearTypeID>3</GearTypeID>
          <ID>1</ID>
          <InvoiceProductID>2</InvoiceProductID>
          <IsReplacement>true</IsReplacement>
          <IsService>true</IsService>
        </InvoiceProductToGearLinkModel>
        <InvoiceProductToGearLinkModel>
          <GearType>sample string 4</GearType>
          <GearTypeID>3</GearTypeID>
          <ID>1</ID>
          <InvoiceProductID>2</InvoiceProductID>
          <IsReplacement>true</IsReplacement>
          <IsService>true</IsService>
        </InvoiceProductToGearLinkModel>
      </LinkedGear>
      <Name>sample string 15</Name>
      <Note>sample string 14</Note>
      <Price>11.1</Price>
      <Quantity>8.1</Quantity>
      <SKU>sample string 7</SKU>
      <SpecialOrderStatus>sample string 22</SpecialOrderStatus>
      <StockOnHand>21</StockOnHand>
      <Tax>12.1</Tax>
      <UnitPrice>9.1</UnitPrice>
      <UnitPrice_IncludingTax>10.1</UnitPrice_IncludingTax>
      <VariantID>sample string 18</VariantID>
    </LineItemModel>
    <LineItemModel>
      <Approved>20</Approved>
      <Brand>sample string 17</Brand>
      <Description>sample string 16</Description>
      <Discount>13.1</Discount>
      <DiscountID>19</DiscountID>
      <ExternalKey>sample string 3</ExternalKey>
      <ExternalProductID>sample string 5</ExternalProductID>
      <FoundInPOS>true</FoundInPOS>
      <ID>1</ID>
      <InternalProductID>6</InternalProductID>
      <InvoiceDate>2025-09-05T16:02:54.0904344+00:00</InvoiceDate>
      <InvoiceID>2</InvoiceID>
      <LightSpeedDiscounts>
        <LightSpeedDiscountsModel>
          <DiscountAmount>3.1</DiscountAmount>
          <DiscountPercent>4.1</DiscountPercent>
          <ID>1</ID>
          <Name>sample string 2</Name>
        </LightSpeedDiscountsModel>
        <LightSpeedDiscountsModel>
          <DiscountAmount>3.1</DiscountAmount>
          <DiscountPercent>4.1</DiscountPercent>
          <ID>1</ID>
          <Name>sample string 2</Name>
        </LightSpeedDiscountsModel>
      </LightSpeedDiscounts>
      <LineItemNote>sample string 24</LineItemNote>
      <LinkedGear>
        <InvoiceProductToGearLinkModel>
          <GearType>sample string 4</GearType>
          <GearTypeID>3</GearTypeID>
          <ID>1</ID>
          <InvoiceProductID>2</InvoiceProductID>
          <IsReplacement>true</IsReplacement>
          <IsService>true</IsService>
        </InvoiceProductToGearLinkModel>
        <InvoiceProductToGearLinkModel>
          <GearType>sample string 4</GearType>
          <GearTypeID>3</GearTypeID>
          <ID>1</ID>
          <InvoiceProductID>2</InvoiceProductID>
          <IsReplacement>true</IsReplacement>
          <IsService>true</IsService>
        </InvoiceProductToGearLinkModel>
      </LinkedGear>
      <Name>sample string 15</Name>
      <Note>sample string 14</Note>
      <Price>11.1</Price>
      <Quantity>8.1</Quantity>
      <SKU>sample string 7</SKU>
      <SpecialOrderStatus>sample string 22</SpecialOrderStatus>
      <StockOnHand>21</StockOnHand>
      <Tax>12.1</Tax>
      <UnitPrice>9.1</UnitPrice>
      <UnitPrice_IncludingTax>10.1</UnitPrice_IncludingTax>
      <VariantID>sample string 18</VariantID>
    </LineItemModel>
  </LineItems>
  <Note>sample string 19</Note>
  <OrderNeeded>true</OrderNeeded>
  <PartnerID>9</PartnerID>
  <Payments>28.1</Payments>
  <Phone>sample string 22</Phone>
  <SentApproval>true</SentApproval>
  <StatusID>12</StatusID>
  <SynchFeedback>sample string 15</SynchFeedback>
  <SynchStatus>sample string 16</SynchStatus>
  <SynchStatusID>13</SynchStatusID>
  <Total_Discounts>23.1</Total_Discounts>
  <Total_LineItems>24.1</Total_LineItems>
  <Total_Price>26.1</Total_Price>
  <Total_Tax>25.1</Total_Tax>
  <VATRate>10.1</VATRate>
</InvoiceModel>