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": "d6a09588-5e78-4211-a1e4-3a2f6d75a882",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "0e4b0b42-683a-4e72-9784-a5454237033c",
"RefundOrderId": "3127e2f0-c70d-40f4-92e3-39b13f5d58ca",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "21e0f9f3-c6a5-440b-aba2-2a7365f58a97",
"ProductsRefunded": [
{
"ProductId": "a80b5c14-a4d9-4c2c-b074-264215371d47",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "c7cc7580-e9d6-4c8e-97e7-b7588c62a456",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "c7cc7580-e9d6-4c8e-97e7-b7588c62a456",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "a80b5c14-a4d9-4c2c-b074-264215371d47",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "c7cc7580-e9d6-4c8e-97e7-b7588c62a456",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "c7cc7580-e9d6-4c8e-97e7-b7588c62a456",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "138cf41f-3ef0-46ad-8bbe-7edfa246eabe",
"OriginalPaymentId": "bf56a601-1da4-43da-bf40-b305aebb6cb9",
"Last4Digits": "sample string 3",
"CustomerAccountId": "350c820e-c11e-4f99-abde-7e273f7c6657",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "138cf41f-3ef0-46ad-8bbe-7edfa246eabe",
"OriginalPaymentId": "bf56a601-1da4-43da-bf40-b305aebb6cb9",
"Last4Digits": "sample string 3",
"CustomerAccountId": "350c820e-c11e-4f99-abde-7e273f7c6657",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}