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": "4ab7e8e1-77b1-490b-88e7-c17e8a72c4d9",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "bef7c6a6-0a54-4eb1-84fa-b9bed58d72c1",
"RefundOrderId": "ad44e78a-d056-414a-bb87-b089dd1f25f4",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "a5c72738-07b7-4c5e-87a1-fcbeeb970183",
"ProductsRefunded": [
{
"ProductId": "6ca9e247-8d6e-4544-98c0-a6192664a6d3",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "e0d7a99f-d583-47e4-af89-71fca84d8509",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "e0d7a99f-d583-47e4-af89-71fca84d8509",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "6ca9e247-8d6e-4544-98c0-a6192664a6d3",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "e0d7a99f-d583-47e4-af89-71fca84d8509",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "e0d7a99f-d583-47e4-af89-71fca84d8509",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "e7ffcdbc-ad03-4ebe-9d5c-fca55fd31be7",
"OriginalPaymentId": "edb3bf91-915e-4339-b581-b2fb1c0ae7a7",
"Last4Digits": "sample string 3",
"CustomerAccountId": "bf7691fc-5597-4f3e-9dba-d2bc87b4e194",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "e7ffcdbc-ad03-4ebe-9d5c-fca55fd31be7",
"OriginalPaymentId": "edb3bf91-915e-4339-b581-b2fb1c0ae7a7",
"Last4Digits": "sample string 3",
"CustomerAccountId": "bf7691fc-5597-4f3e-9dba-d2bc87b4e194",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}