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": "5c49403e-e0f8-4cf0-b1b5-70f5a9452ec0",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "ebcc3296-9c98-4823-a7d8-10639d21c305",
"RefundOrderId": "cdef514b-a2e8-49b3-988b-ff3e715dcaeb",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "f4fb3a29-713e-48d6-a470-33bb78097fbd",
"ProductsRefunded": [
{
"ProductId": "f0b88c5d-085d-422b-8476-18052fbbd356",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "bf14f86b-8bb0-4996-b4b8-328cf6651ea1",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "bf14f86b-8bb0-4996-b4b8-328cf6651ea1",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "f0b88c5d-085d-422b-8476-18052fbbd356",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "bf14f86b-8bb0-4996-b4b8-328cf6651ea1",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "bf14f86b-8bb0-4996-b4b8-328cf6651ea1",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "c33cc22e-6e83-4ca0-9d64-23e121e0bd95",
"OriginalPaymentId": "6dae879d-34ba-40bb-9178-2aea257290ae",
"Last4Digits": "sample string 3",
"CustomerAccountId": "797adfcf-4770-4787-8cad-41216ee9aec3",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "c33cc22e-6e83-4ca0-9d64-23e121e0bd95",
"OriginalPaymentId": "6dae879d-34ba-40bb-9178-2aea257290ae",
"Last4Digits": "sample string 3",
"CustomerAccountId": "797adfcf-4770-4787-8cad-41216ee9aec3",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}