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": "3bf12513-afff-42cc-9780-57176a9baca9",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "5e6a3209-cc26-4865-a913-814c09630b1a",
"RefundOrderId": "94b6f302-0d23-44a7-a6fd-6dd77b85091a",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "f83f956a-8439-43ab-b01a-58fa6e9b5152",
"ProductsRefunded": [
{
"ProductId": "855be40c-10e0-47a8-85c1-63655447e3be",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "beba2708-0b68-4e90-9800-268b9069163c",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "beba2708-0b68-4e90-9800-268b9069163c",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "855be40c-10e0-47a8-85c1-63655447e3be",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "beba2708-0b68-4e90-9800-268b9069163c",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "beba2708-0b68-4e90-9800-268b9069163c",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "09d4782e-af87-4396-8510-8509079a5c74",
"OriginalPaymentId": "edc88a39-608b-49a6-ba31-d52a835f641b",
"Last4Digits": "sample string 3",
"CustomerAccountId": "bae77194-47ee-4c46-846d-45dbc478cf37",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "09d4782e-af87-4396-8510-8509079a5c74",
"OriginalPaymentId": "edc88a39-608b-49a6-ba31-d52a835f641b",
"Last4Digits": "sample string 3",
"CustomerAccountId": "bae77194-47ee-4c46-846d-45dbc478cf37",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}