GET v1/Companies({CompanyId})/Invoices({InvoiceId})
This call returns a finalized sale invoice by ID
Information:
Base URL:
https://api.covasoft.net/invoice
Example of a call would be:
https://api.covasoft.net/invoice/v1/Companies({CompanyId})/Invoices({InvoiceId})
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| CompanyId | Company Id from your onboarding package | integer | Required | 
| InvoiceId | Sales Invoice Guid Id that you want to get the Sales Order Id | globally unique identifier | Required | 
Body Parameters
None.
Response Information
Resource Description
Get Sales Order Id from Sales Invoice
GetSalesOrderIdFromInvoiceIdReturn| Name | Description | Type | Additional information | 
|---|---|---|---|
| Id | globally unique identifier | None. | |
| OriginalInvoiceId | globally unique identifier | None. | |
| LocationId | integer | None. | |
| UserId | integer | None. | |
| PrintableId | string | None. | |
| OriginalPrintableId | string | None. | |
| ReceiptNumber | string | None. | |
| OriginalReceiptNumber | string | None. | |
| Notes | string | None. | |
| Annotation | string | None. | |
| InvoiceType | string | None. | |
| Customer | Customer | None. | |
| Orders | Collection of InvoiceOrder | None. | |
| Payments | Collection of InvoicePayment | None. | |
| Discounts | Discounts | None. | |
| ChangeDue | decimal number | None. | |
| CashBack | decimal number | None. | |
| TaxCalculationResult | TaxCalculationResult | None. | |
| SaleOverrides | string | None. | |
| CreatedByUser | string | None. | |
| CreatedDateUtc | date | None. | 
Response Formats
application/json, text/json
            Sample:
{
  "Id": "9a520fe9-f900-479e-a8a0-889f395f39b7",
  "OriginalInvoiceId": "a60656b5-ebef-470f-9595-68c87d0ac17f",
  "LocationId": 2,
  "UserId": 3,
  "PrintableId": "sample string 4",
  "OriginalPrintableId": "sample string 5",
  "ReceiptNumber": "sample string 6",
  "OriginalReceiptNumber": "sample string 7",
  "Notes": "sample string 8",
  "Annotation": "sample string 9",
  "InvoiceType": "sample string 10",
  "Customer": {
    "Id": "994dba22-8b0f-49fd-81dc-91c30722fa7b",
    "Number": "sample string 2",
    "FullName": "sample string 3",
    "ShippingAddressId": "sample string 4",
    "ShippingAddress": "sample string 5",
    "BillingAddress": "sample string 6",
    "BillingAddressId": "sample string 7",
    "AddressId": "sample string 8",
    "MedicalInformation": "sample string 9"
  },
  "Orders": [
    {
      "Id": "94c095f2-5a9b-499a-a35e-62b6a1aa9a7d",
      "PrintableId": "sample string 2",
      "ReferenceId": "sample string 3",
      "Items": [
        {
          "LineNumber": 1,
          "ProductId": "56a9e883-74e7-434a-97e2-433e7865d6b4",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": 1.1,
          "ListPrice": 8,
          "Description": "sample string 9",
          "Sku": "sample string 10",
          "SerialNumber": "sample string 11",
          "Total": 12,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        },
        {
          "LineNumber": 1,
          "ProductId": "56a9e883-74e7-434a-97e2-433e7865d6b4",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": 1.1,
          "ListPrice": 8,
          "Description": "sample string 9",
          "Sku": "sample string 10",
          "SerialNumber": "sample string 11",
          "Total": 12,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        }
      ]
    },
    {
      "Id": "94c095f2-5a9b-499a-a35e-62b6a1aa9a7d",
      "PrintableId": "sample string 2",
      "ReferenceId": "sample string 3",
      "Items": [
        {
          "LineNumber": 1,
          "ProductId": "56a9e883-74e7-434a-97e2-433e7865d6b4",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": 1.1,
          "ListPrice": 8,
          "Description": "sample string 9",
          "Sku": "sample string 10",
          "SerialNumber": "sample string 11",
          "Total": 12,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        },
        {
          "LineNumber": 1,
          "ProductId": "56a9e883-74e7-434a-97e2-433e7865d6b4",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": 1.1,
          "ListPrice": 8,
          "Description": "sample string 9",
          "Sku": "sample string 10",
          "SerialNumber": "sample string 11",
          "Total": 12,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        }
      ]
    }
  ],
  "Payments": [
    {
      "Id": "b49526d5-37a8-4235-ba5f-ecb636add343",
      "OriginalPaymentId": "sample string 2",
      "DrawerId": "22079214-1df0-4f04-904a-c466088b5b30",
      "Last4Digits": 1,
      "CustomerAccountId": "sample string 4",
      "PaymentMethodId": 5,
      "PaymentMethodName": "sample string 6",
      "Amount": 7.1,
      "TransactionDateUtc": "2025-10-31T11:24:08.3393143+00:00"
    },
    {
      "Id": "b49526d5-37a8-4235-ba5f-ecb636add343",
      "OriginalPaymentId": "sample string 2",
      "DrawerId": "22079214-1df0-4f04-904a-c466088b5b30",
      "Last4Digits": 1,
      "CustomerAccountId": "sample string 4",
      "PaymentMethodId": 5,
      "PaymentMethodName": "sample string 6",
      "Amount": 7.1,
      "TransactionDateUtc": "2025-10-31T11:24:08.3393143+00:00"
    }
  ],
  "Discounts": {
    "Id": "sample string 1",
    "InvoiceLevel": [
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Type": "sample string 3",
        "DiscountType": "sample string 4",
        "DiscountLevel": "sample string 5",
        "TaxApplication": "sample string 6",
        "Amount": 7.1,
        "ReasonForDiscountId": "sample string 8",
        "PromotionId": "sample string 9",
        "LoyaltyRewardId": "sample string 10",
        "LineLevelBreakdown": [
          {
            "LineNumber": 1,
            "Amount": 2.1
          },
          {
            "LineNumber": 1,
            "Amount": 2.1
          }
        ]
      },
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Type": "sample string 3",
        "DiscountType": "sample string 4",
        "DiscountLevel": "sample string 5",
        "TaxApplication": "sample string 6",
        "Amount": 7.1,
        "ReasonForDiscountId": "sample string 8",
        "PromotionId": "sample string 9",
        "LoyaltyRewardId": "sample string 10",
        "LineLevelBreakdown": [
          {
            "LineNumber": 1,
            "Amount": 2.1
          },
          {
            "LineNumber": 1,
            "Amount": 2.1
          }
        ]
      }
    ],
    "LineLevel": [
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Type": "sample string 3",
        "DiscountType": "sample string 4",
        "DiscountLevel": "sample string 5",
        "TaxApplication": "sample string 6",
        "Amount": 7.1,
        "ReasonForDiscountId": "sample string 8",
        "PromotionId": "sample string 9",
        "LoyaltyRewardId": "sample string 10",
        "LineLevelBreakdown": [
          {
            "LineNumber": 1,
            "Amount": 2.1
          },
          {
            "LineNumber": 1,
            "Amount": 2.1
          }
        ]
      },
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Type": "sample string 3",
        "DiscountType": "sample string 4",
        "DiscountLevel": "sample string 5",
        "TaxApplication": "sample string 6",
        "Amount": 7.1,
        "ReasonForDiscountId": "sample string 8",
        "PromotionId": "sample string 9",
        "LoyaltyRewardId": "sample string 10",
        "LineLevelBreakdown": [
          {
            "LineNumber": 1,
            "Amount": 2.1
          },
          {
            "LineNumber": 1,
            "Amount": 2.1
          }
        ]
      }
    ],
    "Total": 2.1
  },
  "ChangeDue": 11.1,
  "CashBack": 12.1,
  "TaxCalculationResult": {
    "Id": "e09b53a5-0568-4110-be4d-2acd3bdbf599",
    "Lines": [
      {
        "LineNumber": "sample string 1",
        "Taxable": 2,
        "Rate": 3,
        "Tax": 4.1,
        "ExemptAmount": 5,
        "Discount": 6.1,
        "TaxDetails": [
          {
            "TaxId": "38adfa71-be34-4722-8196-cf56ccd075c0",
            "CountryCode": "sample string 2",
            "RegionCode": "sample string 3",
            "TaxType": "sample string 4",
            "TaxAuthority": "sample string 5",
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": "sample string 9",
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          },
          {
            "TaxId": "38adfa71-be34-4722-8196-cf56ccd075c0",
            "CountryCode": "sample string 2",
            "RegionCode": "sample string 3",
            "TaxType": "sample string 4",
            "TaxAuthority": "sample string 5",
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": "sample string 9",
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          }
        ]
      },
      {
        "LineNumber": "sample string 1",
        "Taxable": 2,
        "Rate": 3,
        "Tax": 4.1,
        "ExemptAmount": 5,
        "Discount": 6.1,
        "TaxDetails": [
          {
            "TaxId": "38adfa71-be34-4722-8196-cf56ccd075c0",
            "CountryCode": "sample string 2",
            "RegionCode": "sample string 3",
            "TaxType": "sample string 4",
            "TaxAuthority": "sample string 5",
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": "sample string 9",
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          },
          {
            "TaxId": "38adfa71-be34-4722-8196-cf56ccd075c0",
            "CountryCode": "sample string 2",
            "RegionCode": "sample string 3",
            "TaxType": "sample string 4",
            "TaxAuthority": "sample string 5",
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": "sample string 9",
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          }
        ]
      }
    ]
  },
  "SaleOverrides": "sample string 13",
  "CreatedByUser": "sample string 14",
  "CreatedDateUtc": "2025-10-31T11:24:08.3393143+00:00"
}