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
GetSalesOrderIdFromInvoiceIdReturnName | 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. |
|
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": "276ed187-9a66-443a-8ff2-ccbb953cd8eb", "OriginalInvoiceId": "75f67c2e-4b15-4f8d-b73f-6cfb4ce62231", "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": "026152fc-cc46-4fd9-a50e-c7c1f5492b58", "Number": "sample string 2", "FullName": "sample string 3", "ShippingAddressId": {}, "ShippingAddress": {}, "BillingAddress": {}, "BillingAddressId": {}, "AddressId": {}, "MedicalInformation": {} }, "Orders": [ { "Id": "d413f2fa-2889-4ba9-82fc-ce2a64890875", "PrintableId": {}, "ReferenceId": {}, "Items": [ { "LineNumber": 1, "ProductId": "462a6550-6244-4538-a6ad-fa1bae3f19d7", "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": "462a6550-6244-4538-a6ad-fa1bae3f19d7", "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": "d413f2fa-2889-4ba9-82fc-ce2a64890875", "PrintableId": {}, "ReferenceId": {}, "Items": [ { "LineNumber": 1, "ProductId": "462a6550-6244-4538-a6ad-fa1bae3f19d7", "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": "462a6550-6244-4538-a6ad-fa1bae3f19d7", "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": "df5070b6-9ab6-4f39-9965-d0339199b4d6", "OriginalPaymentId": {}, "DrawerId": "7ea47ba2-59c4-4a0f-b8c7-a20cd09f9996", "Last4Digits": {}, "CustomerAccountId": {}, "PaymentMethodId": 6, "PaymentMethodName": "sample string 7", "Amount": 8.1, "TransactionDateUtc": "2025-04-02T07:43:41.312433+00:00" }, { "Id": "df5070b6-9ab6-4f39-9965-d0339199b4d6", "OriginalPaymentId": {}, "DrawerId": "7ea47ba2-59c4-4a0f-b8c7-a20cd09f9996", "Last4Digits": {}, "CustomerAccountId": {}, "PaymentMethodId": 6, "PaymentMethodName": "sample string 7", "Amount": 8.1, "TransactionDateUtc": "2025-04-02T07:43:41.312433+00:00" } ], "Discounts": 1.1, "ChangeDue": 11.1, "CashBack": 12.1, "TaxCalculationResult": { "Id": "9b747eb8-7334-4012-b342-0978eb0d3301", "Lines": [ { "LineNumber": "sample string 1", "Taxable": 2, "Rate": 3, "Tax": 4.1, "ExemptAmount": 5, "Discount": 6.1, "TaxDetails": [ { "TaxId": "4aaa9719-eaaf-479b-86ae-d0e7e1fb6604", "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": "4aaa9719-eaaf-479b-86ae-d0e7e1fb6604", "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": "4aaa9719-eaaf-479b-86ae-d0e7e1fb6604", "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": "4aaa9719-eaaf-479b-86ae-d0e7e1fb6604", "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": "2025-04-02T07:43:41.312433+00:00" }