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": "c749879d-8a34-48f6-b5e8-283d1e09f51a",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "ce8a9cd6-45ca-40b1-975c-83b5639b55c6",
"RefundOrderId": "5ca26b16-768c-4716-addf-e20dca7d5a6c",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "48b04e13-1c11-42dd-8266-d47d58fbdec6",
"ProductsRefunded": [
{
"ProductId": "a2ff5619-3cbb-4779-bf2c-e571edc58d6a",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "67e8be23-0ce2-4021-a7d5-14adc5b3e79d",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "67e8be23-0ce2-4021-a7d5-14adc5b3e79d",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "a2ff5619-3cbb-4779-bf2c-e571edc58d6a",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "67e8be23-0ce2-4021-a7d5-14adc5b3e79d",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "67e8be23-0ce2-4021-a7d5-14adc5b3e79d",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "9f1c2fec-9fd4-4543-937f-9b5be85beaf0",
"OriginalPaymentId": "652fcf13-542b-4a6e-aa4b-9ffe7ffa78e2",
"Last4Digits": "sample string 3",
"CustomerAccountId": "68b36a83-4cfb-4de7-ad73-4a143607f5fd",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "9f1c2fec-9fd4-4543-937f-9b5be85beaf0",
"OriginalPaymentId": "652fcf13-542b-4a6e-aa4b-9ffe7ffa78e2",
"Last4Digits": "sample string 3",
"CustomerAccountId": "68b36a83-4cfb-4de7-ad73-4a143607f5fd",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}