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

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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.

DropshipOrders

Collection of Object

None.

Payments

Collection of InvoicePayment

None.

Discounts

decimal number

None.

ChangeDue

decimal number

None.

CashBack

decimal number

None.

TaxCalculationResult

TaxCalculationResult

None.

SaleOverrides

Object

None.

CreatedByUser

string

None.

CreatedDateUtc

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "7456ab9c-33e1-4758-8caa-4e1d13993a6f",
  "OriginalInvoiceId": "50cb837c-982d-434b-9cf3-00696d37a8f3",
  "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": "805009c8-56fd-45e8-977e-37f89510f23b",
    "Number": "sample string 2",
    "FullName": "sample string 3",
    "ShippingAddressId": {},
    "ShippingAddress": {},
    "BillingAddress": {},
    "BillingAddressId": {},
    "AddressId": {},
    "MedicalInformation": {}
  },
  "Orders": [
    {
      "Id": "8faba29b-288e-43bf-ad38-e738982a7da6",
      "PrintableId": {},
      "ReferenceId": {},
      "Items": [
        {
          "LineNumber": 1,
          "ProductId": "cbfc1f0f-0c26-4776-b80c-550764497b2d",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": {},
          "ListPrice": 9,
          "Description": "sample string 10",
          "Sku": "sample string 11",
          "SerialNumber": "sample string 12",
          "Total": 13,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        },
        {
          "LineNumber": 1,
          "ProductId": "cbfc1f0f-0c26-4776-b80c-550764497b2d",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": {},
          "ListPrice": 9,
          "Description": "sample string 10",
          "Sku": "sample string 11",
          "SerialNumber": "sample string 12",
          "Total": 13,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        }
      ]
    },
    {
      "Id": "8faba29b-288e-43bf-ad38-e738982a7da6",
      "PrintableId": {},
      "ReferenceId": {},
      "Items": [
        {
          "LineNumber": 1,
          "ProductId": "cbfc1f0f-0c26-4776-b80c-550764497b2d",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": {},
          "ListPrice": 9,
          "Description": "sample string 10",
          "Sku": "sample string 11",
          "SerialNumber": "sample string 12",
          "Total": 13,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        },
        {
          "LineNumber": 1,
          "ProductId": "cbfc1f0f-0c26-4776-b80c-550764497b2d",
          "Quantity": 3,
          "UnitId": 4,
          "UnitAbbreviation": "sample string 5",
          "Lot": "sample string 6",
          "SoldAtPrice": 7,
          "SalePrice": {},
          "ListPrice": 9,
          "Description": "sample string 10",
          "Sku": "sample string 11",
          "SerialNumber": "sample string 12",
          "Total": 13,
          "Attributes": {
            "equivalent To": "sample string 1",
            "net Weight": "sample string 2",
            "retail Marijuana Product Type": "sample string 3"
          }
        }
      ]
    }
  ],
  "DropshipOrders": [
    {},
    {}
  ],
  "Payments": [
    {
      "Id": "bbf4c593-fde8-4851-87a0-4f3d84e8a706",
      "OriginalPaymentId": {},
      "DrawerId": "ebb0de1d-0356-492e-acd6-570a0ac82502",
      "Last4Digits": {},
      "CustomerAccountId": {},
      "PaymentMethodId": 6,
      "PaymentMethodName": "sample string 7",
      "Amount": 8.1,
      "TransactionDateUtc": "2024-11-07T09:01:31.3099668+00:00"
    },
    {
      "Id": "bbf4c593-fde8-4851-87a0-4f3d84e8a706",
      "OriginalPaymentId": {},
      "DrawerId": "ebb0de1d-0356-492e-acd6-570a0ac82502",
      "Last4Digits": {},
      "CustomerAccountId": {},
      "PaymentMethodId": 6,
      "PaymentMethodName": "sample string 7",
      "Amount": 8.1,
      "TransactionDateUtc": "2024-11-07T09:01:31.3099668+00:00"
    }
  ],
  "Discounts": 1.1,
  "ChangeDue": 11.1,
  "CashBack": 12.1,
  "TaxCalculationResult": {
    "Id": "c0ee6379-77fa-4e6d-abe8-92975ab2b7b2",
    "Lines": [
      {
        "LineNumber": "sample string 1",
        "Taxable": 2,
        "Rate": 3,
        "Tax": 4.1,
        "ExemptAmount": 5,
        "Discount": 6.1,
        "TaxDetails": [
          {
            "TaxId": "73f585ad-9958-4d50-95e2-2e40d904cd13",
            "CountryCode": {},
            "RegionCode": {},
            "TaxType": "sample string 4",
            "TaxAuthority": {},
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": {},
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          },
          {
            "TaxId": "73f585ad-9958-4d50-95e2-2e40d904cd13",
            "CountryCode": {},
            "RegionCode": {},
            "TaxType": "sample string 4",
            "TaxAuthority": {},
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": {},
            "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": "73f585ad-9958-4d50-95e2-2e40d904cd13",
            "CountryCode": {},
            "RegionCode": {},
            "TaxType": "sample string 4",
            "TaxAuthority": {},
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": {},
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          },
          {
            "TaxId": "73f585ad-9958-4d50-95e2-2e40d904cd13",
            "CountryCode": {},
            "RegionCode": {},
            "TaxType": "sample string 4",
            "TaxAuthority": {},
            "TaxAuthorityType": "sample string 6",
            "Rate": 7.1,
            "Tax": 8.1,
            "Exemptions": {},
            "Taxable": 10,
            "TaxName": "sample string 11",
            "Layer": 12
          }
        ]
      }
    ]
  },
  "SaleOverrides": {},
  "CreatedByUser": "sample string 14",
  "CreatedDateUtc": "2024-11-07T09:01:31.3099668+00:00"
}