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": "8dc5565b-d3ea-414a-bc71-a0be3010f0a4",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "ca933688-840c-4b48-adde-a12b269ea2ff",
"RefundOrderId": "31766c5e-9fc6-4ef4-8387-1431352e8d68",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "2118ec4c-a1e3-41bd-9c5d-37fcb37c1c8c",
"ProductsRefunded": [
{
"ProductId": "b0ef77cd-9a66-4d35-94be-fc9fdefa3c8a",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "c1520e71-2322-4f04-be8b-16b75fbc2089",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "c1520e71-2322-4f04-be8b-16b75fbc2089",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "b0ef77cd-9a66-4d35-94be-fc9fdefa3c8a",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "c1520e71-2322-4f04-be8b-16b75fbc2089",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "c1520e71-2322-4f04-be8b-16b75fbc2089",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "8d6a1e4d-2956-45b6-adcf-d4642fd38735",
"OriginalPaymentId": "8331cdfc-a980-4b7d-874b-f40a66f85f07",
"Last4Digits": "sample string 3",
"CustomerAccountId": "d962e331-6294-4f55-aadc-cf64211f8c2d",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "8d6a1e4d-2956-45b6-adcf-d4642fd38735",
"OriginalPaymentId": "8331cdfc-a980-4b7d-874b-f40a66f85f07",
"Last4Digits": "sample string 3",
"CustomerAccountId": "d962e331-6294-4f55-aadc-cf64211f8c2d",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}