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": "e7be4092-804a-42a1-8e95-3bf20353ddc1",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "b4461b41-f0fc-4b26-be34-3ef97f359f2a",
"RefundOrderId": "8b6bbafc-dc20-430b-9900-bbbd0aa2f7a5",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "15176692-2e87-48e5-8400-7533a18a4074",
"ProductsRefunded": [
{
"ProductId": "ca91ac29-68e0-411b-93a9-1ada58f9d142",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "aa39d4bb-6bd5-4072-b94e-3cd861ae45fb",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "aa39d4bb-6bd5-4072-b94e-3cd861ae45fb",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "ca91ac29-68e0-411b-93a9-1ada58f9d142",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "aa39d4bb-6bd5-4072-b94e-3cd861ae45fb",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "aa39d4bb-6bd5-4072-b94e-3cd861ae45fb",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "96508562-e770-476f-910c-7de13ad3a122",
"OriginalPaymentId": "b09ffb75-97c6-419a-907d-c35826bf317b",
"Last4Digits": "sample string 3",
"CustomerAccountId": "0f35dda8-aed6-4bc7-b2c1-4659b9165efa",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "96508562-e770-476f-910c-7de13ad3a122",
"OriginalPaymentId": "b09ffb75-97c6-419a-907d-c35826bf317b",
"Last4Digits": "sample string 3",
"CustomerAccountId": "0f35dda8-aed6-4bc7-b2c1-4659b9165efa",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}