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": "01426fd1-e7c0-48c4-a7c9-bae03c40a51a",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "434dae6b-f7cd-45ed-a4e8-4695db9b2733",
"RefundOrderId": "ac24d7ce-8871-4f0a-ba96-7d218080355b",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "8c504dfa-f4ff-4dcf-89ff-eee5fb8c679c",
"ProductsRefunded": [
{
"ProductId": "b68da825-3a14-4006-a4b6-9698723d89f2",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "f367963c-3cc7-48b0-8d0f-f7c8d30d8200",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "f367963c-3cc7-48b0-8d0f-f7c8d30d8200",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "b68da825-3a14-4006-a4b6-9698723d89f2",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "f367963c-3cc7-48b0-8d0f-f7c8d30d8200",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "f367963c-3cc7-48b0-8d0f-f7c8d30d8200",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "9b29dfaf-1d49-4cf3-b3b8-0ebb295c45ac",
"OriginalPaymentId": "0fc9df77-1369-4955-998a-75807935eca7",
"Last4Digits": "sample string 3",
"CustomerAccountId": "b4fac305-5eb8-4944-8462-41ee84e756f3",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "9b29dfaf-1d49-4cf3-b3b8-0ebb295c45ac",
"OriginalPaymentId": "0fc9df77-1369-4955-998a-75807935eca7",
"Last4Digits": "sample string 3",
"CustomerAccountId": "b4fac305-5eb8-4944-8462-41ee84e756f3",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}