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": "90bf3a65-fb88-4c50-9135-b2330538326a",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "b9946d29-f0b2-45d0-9eaa-e5bbc9359adb",
"RefundOrderId": "f92bb64a-c73f-416b-9653-d0c5c0fff19a",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "51511b92-c929-414e-9a59-5926e5ee7681",
"ProductsRefunded": [
{
"ProductId": "bb48d7de-3c85-41cf-ac84-b8ce7ab47d72",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "9d584406-c54f-4a33-84ff-22b1e947b584",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "9d584406-c54f-4a33-84ff-22b1e947b584",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "bb48d7de-3c85-41cf-ac84-b8ce7ab47d72",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "9d584406-c54f-4a33-84ff-22b1e947b584",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "9d584406-c54f-4a33-84ff-22b1e947b584",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "a2bff36e-17d6-43bc-ac90-1d1121926919",
"OriginalPaymentId": "95991ad9-e2b5-4cc4-9d65-271ab767b693",
"Last4Digits": "sample string 3",
"CustomerAccountId": "11cbfae5-0605-4d4f-af7d-1c5cb2ca0d5c",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "a2bff36e-17d6-43bc-ac90-1d1121926919",
"OriginalPaymentId": "95991ad9-e2b5-4cc4-9d65-271ab767b693",
"Last4Digits": "sample string 3",
"CustomerAccountId": "11cbfae5-0605-4d4f-af7d-1c5cb2ca0d5c",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}