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": "1c82cc4b-0edb-4cd4-b05f-a865a3372e68", "OriginalInvoiceId": "65d1eb1a-ca43-4b05-8d4a-353edd46b21b", "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": "28ff2ac3-9841-4295-9303-acfe93f745ce", "Number": "sample string 2", "FullName": "sample string 3", "ShippingAddressId": {}, "ShippingAddress": {}, "BillingAddress": {}, "BillingAddressId": {}, "AddressId": {}, "MedicalInformation": {} }, "Orders": [ { "Id": "5e425683-0d9c-4ed2-9025-87cf755e8def", "PrintableId": {}, "ReferenceId": {}, "Items": [ { "LineNumber": 1, "ProductId": "d5c579d9-4dad-4b78-9e0d-714ae36e7e7e", "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": "d5c579d9-4dad-4b78-9e0d-714ae36e7e7e", "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": "5e425683-0d9c-4ed2-9025-87cf755e8def", "PrintableId": {}, "ReferenceId": {}, "Items": [ { "LineNumber": 1, "ProductId": "d5c579d9-4dad-4b78-9e0d-714ae36e7e7e", "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": "d5c579d9-4dad-4b78-9e0d-714ae36e7e7e", "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": "59b7a3a5-e5e1-4f0e-bc0d-2fab6d0fa414", "OriginalPaymentId": {}, "DrawerId": "474f2290-e8c3-4673-8a02-5397ac171a40", "Last4Digits": {}, "CustomerAccountId": {}, "PaymentMethodId": 6, "PaymentMethodName": "sample string 7", "Amount": 8.1, "TransactionDateUtc": "2025-02-20T19:23:07.7949351+00:00" }, { "Id": "59b7a3a5-e5e1-4f0e-bc0d-2fab6d0fa414", "OriginalPaymentId": {}, "DrawerId": "474f2290-e8c3-4673-8a02-5397ac171a40", "Last4Digits": {}, "CustomerAccountId": {}, "PaymentMethodId": 6, "PaymentMethodName": "sample string 7", "Amount": 8.1, "TransactionDateUtc": "2025-02-20T19:23:07.7949351+00:00" } ], "Discounts": 1.1, "ChangeDue": 11.1, "CashBack": 12.1, "TaxCalculationResult": { "Id": "8c528050-1827-48a1-b789-93a6fac70014", "Lines": [ { "LineNumber": "sample string 1", "Taxable": 2, "Rate": 3, "Tax": 4.1, "ExemptAmount": 5, "Discount": 6.1, "TaxDetails": [ { "TaxId": "adfc93fb-8129-4eed-9ac3-85d3c25eec3e", "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": "adfc93fb-8129-4eed-9ac3-85d3c25eec3e", "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": "adfc93fb-8129-4eed-9ac3-85d3c25eec3e", "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": "adfc93fb-8129-4eed-9ac3-85d3c25eec3e", "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-02-20T19:23:07.7949351+00:00" }