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": "cdc0fb69-2c01-4fcc-a681-86a1db60b5d7",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "2f94cbf1-e3fa-41d9-9575-8e272bbcb50d",
"RefundOrderId": "c4317a92-8b28-4107-99a7-505c50aca0d7",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "0aaa69ba-f7e8-4627-b183-7e845c496d0e",
"ProductsRefunded": [
{
"ProductId": "8b04b730-39d1-46d5-9b59-4a0b5b8dca8f",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "c5756e36-b607-45ef-a9c0-211df500094e",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "c5756e36-b607-45ef-a9c0-211df500094e",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "8b04b730-39d1-46d5-9b59-4a0b5b8dca8f",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "c5756e36-b607-45ef-a9c0-211df500094e",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "c5756e36-b607-45ef-a9c0-211df500094e",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "15f59916-4239-497e-9d6a-42372b763d2a",
"OriginalPaymentId": "543e4d64-51fc-4819-9818-2d73fac981ba",
"Last4Digits": "sample string 3",
"CustomerAccountId": "b304b1af-a210-45fe-9645-8df35ebaa84c",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "15f59916-4239-497e-9d6a-42372b763d2a",
"OriginalPaymentId": "543e4d64-51fc-4819-9818-2d73fac981ba",
"Last4Digits": "sample string 3",
"CustomerAccountId": "b304b1af-a210-45fe-9645-8df35ebaa84c",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}