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": "30f26a54-7445-4828-85be-3e65cce25707",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "a1287ea4-1491-456a-8ce0-d1ab67c450f9",
"RefundOrderId": "86b57c58-8703-4291-a253-17996346eeeb",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "aa6aba28-250c-4262-8ac6-8f767cad6494",
"ProductsRefunded": [
{
"ProductId": "8abc3cd0-4078-4724-87f5-1cfdd7c03b5e",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "69749784-b796-40ce-9f63-fe229322f762",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "69749784-b796-40ce-9f63-fe229322f762",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "8abc3cd0-4078-4724-87f5-1cfdd7c03b5e",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "69749784-b796-40ce-9f63-fe229322f762",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "69749784-b796-40ce-9f63-fe229322f762",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "eefdd8ce-763f-4dce-93c8-f4ae8636ee5f",
"OriginalPaymentId": "fe4bd232-fbe8-4142-8bf0-9e559af007d5",
"Last4Digits": "sample string 3",
"CustomerAccountId": "d34ee776-b45d-4b29-9e41-97e9dbe35cff",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "eefdd8ce-763f-4dce-93c8-f4ae8636ee5f",
"OriginalPaymentId": "fe4bd232-fbe8-4142-8bf0-9e559af007d5",
"Last4Digits": "sample string 3",
"CustomerAccountId": "d34ee776-b45d-4b29-9e41-97e9dbe35cff",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}