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": "a15cdd27-dcfa-4a00-9522-2421d7226c2d",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "91dcbff8-f927-4bd0-9ef3-eed962ccc4e2",
"RefundOrderId": "a84db5f6-eb33-4a1d-9e55-d94046e383eb",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "e8c765e7-487d-43b9-8c31-9b7cd3840767",
"ProductsRefunded": [
{
"ProductId": "3c566b8b-e7da-46ca-aeea-9bcc024f228c",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "41271e7c-05a0-42d5-a1ed-45dcbacf82ff",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "41271e7c-05a0-42d5-a1ed-45dcbacf82ff",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "3c566b8b-e7da-46ca-aeea-9bcc024f228c",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "41271e7c-05a0-42d5-a1ed-45dcbacf82ff",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "41271e7c-05a0-42d5-a1ed-45dcbacf82ff",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "a47dc767-59c8-4ae1-8551-aab7062b95e7",
"OriginalPaymentId": "da479ac9-998d-44f9-aa52-0c336b442568",
"Last4Digits": "sample string 3",
"CustomerAccountId": "876539f4-3bb5-4e0f-a679-c606960d1b00",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "a47dc767-59c8-4ae1-8551-aab7062b95e7",
"OriginalPaymentId": "da479ac9-998d-44f9-aa52-0c336b442568",
"Last4Digits": "sample string 3",
"CustomerAccountId": "876539f4-3bb5-4e0f-a679-c606960d1b00",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}