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": "e6093e7d-9683-4f48-bd2e-705936816430",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "6df7d1db-7d26-470f-93c0-a23fc66e11c3",
"RefundOrderId": "9b2a3f13-9ef2-4809-a081-1d9c32dd9fc0",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "7ebd5359-f394-417c-a04f-2ef7e96d8d2c",
"ProductsRefunded": [
{
"ProductId": "865f1c8a-d019-43ac-bf6d-29b0fbf9c1c4",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "50531dd9-5fbf-40c2-a8ae-84dd67b8909d",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "50531dd9-5fbf-40c2-a8ae-84dd67b8909d",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "865f1c8a-d019-43ac-bf6d-29b0fbf9c1c4",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "50531dd9-5fbf-40c2-a8ae-84dd67b8909d",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "50531dd9-5fbf-40c2-a8ae-84dd67b8909d",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "543757d5-14fd-4376-a41a-8d6e903cd9e3",
"OriginalPaymentId": "14a856f2-4611-4928-a300-965c100b8741",
"Last4Digits": "sample string 3",
"CustomerAccountId": "be688bfb-b4a2-4c60-a46c-125af951e113",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "543757d5-14fd-4376-a41a-8d6e903cd9e3",
"OriginalPaymentId": "14a856f2-4611-4928-a300-965c100b8741",
"Last4Digits": "sample string 3",
"CustomerAccountId": "be688bfb-b4a2-4c60-a46c-125af951e113",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}