GET v1/companies/{CompanyId}/entities/{LocationId}/integrators/{IntegratorId}/RefundInvoices/{InvoiceId}?EntityId={EntityId}
Get the refund invoice details of a refunded order.
Information:
Base URL:
https://api.covasoft.net/covaorderintake
Example of a call would be:
https://api.covasoft.net/covaorderintake/v1/companies/{CompanyId}/entities/{LocationId}/integrators/{IntegratorId}/RefundInvoices/{InvoiceId}
Usage:
Use this endpoint to get the invoice details of a refund that originated on an order with a specific integrator.
NOTE CURRENTLY IntegratorId PARAMETER IS IGNORED, AND ALL REFUNDS RETURNED. BE ADVISED THAT THIS WILL CHANGE AT A FUTURE DATE
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId |
The company the refund was created at. |
integer |
Required |
| EntityId |
The location the refund was created at |
integer |
Required |
| IntegratorId |
he integrator who created the originating order. **CURRENTLY THIS PARAMETER IS IGNORED, AND ALL REFUNDS RETURNED. BE ADVISED THAT THIS WILL CHANGE AT A FUTURE DATE. |
globally unique identifier |
Required |
| InvoiceId |
The InvoiceId of the refund invoice. |
globally unique identifier |
Required |
| LocationId | string |
None. |
Body Parameters
None.
Response Information
Resource Description
CovaSalesOrderGetRefundInvoiceByIdReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| RefundInvoiceId | globally unique identifier |
None. |
|
| RefundInvoiceNumber | string |
None. |
|
| OriginalInvoiceId | globally unique identifier |
None. |
|
| RefundOrderId | globally unique identifier |
None. |
|
| RefundOrderNumber | string |
None. |
|
| OriginalOrderNumber | string |
None. |
|
| LocationId | integer |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| ProductsRefunded | Collection of CovaSalesOrderGetRefundInvoiceByIdProductsrefunded |
None. |
|
| Payments | Collection of CovaSalesOrderGetRefundInvoiceByIdPayment |
None. |
Response Formats
application/json, text/json
{
"RefundInvoiceId": "4d199647-e932-4818-a0a7-8759d3d10e80",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "74783794-387c-4116-9b76-d2bc4e83db78",
"RefundOrderId": "8335dbcc-9759-4354-9cdd-57a868ed63b5",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "48efd85e-c214-40c2-9968-7b05d1c65e3a",
"ProductsRefunded": [
{
"ProductId": "2255a843-95bb-403a-8211-a43086dd2da4",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "44180518-96bf-4b6e-846a-621fd9b49189",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "44180518-96bf-4b6e-846a-621fd9b49189",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "2255a843-95bb-403a-8211-a43086dd2da4",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "44180518-96bf-4b6e-846a-621fd9b49189",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "44180518-96bf-4b6e-846a-621fd9b49189",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "52d5621c-c4c5-4add-a1c3-b3c8e34e79b4",
"OriginalPaymentId": "a87a2ee3-a387-42fc-8fd5-fd718b810edd",
"Last4Digits": "sample string 3",
"CustomerAccountId": "19d636b3-43ff-443a-af05-da84405e6ac9",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "52d5621c-c4c5-4add-a1c3-b3c8e34e79b4",
"OriginalPaymentId": "a87a2ee3-a387-42fc-8fd5-fd718b810edd",
"Last4Digits": "sample string 3",
"CustomerAccountId": "19d636b3-43ff-443a-af05-da84405e6ac9",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}