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": "99cdd8a4-c74e-45fe-afa4-2ae526984787",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "710c3998-33b0-4f79-83fd-eb0710d1f49b",
"RefundOrderId": "f1c0c94e-82ba-4eb3-be62-338dfbffe129",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "25c630bb-aecd-4136-834e-1d8a452da1f7",
"ProductsRefunded": [
{
"ProductId": "649b3f6f-0b26-4d35-a7f3-01631994f293",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "6c205593-ebdd-46c5-8e73-4a6342cd7465",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "6c205593-ebdd-46c5-8e73-4a6342cd7465",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "649b3f6f-0b26-4d35-a7f3-01631994f293",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "6c205593-ebdd-46c5-8e73-4a6342cd7465",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "6c205593-ebdd-46c5-8e73-4a6342cd7465",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "5c060e55-78e8-467f-8589-c11b592b038d",
"OriginalPaymentId": "b55e36ec-740f-441f-bd33-da51c667dd81",
"Last4Digits": "sample string 3",
"CustomerAccountId": "8113ed40-5623-4ac8-845c-7e6bd99c4e0c",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "5c060e55-78e8-467f-8589-c11b592b038d",
"OriginalPaymentId": "b55e36ec-740f-441f-bd33-da51c667dd81",
"Last4Digits": "sample string 3",
"CustomerAccountId": "8113ed40-5623-4ac8-845c-7e6bd99c4e0c",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}