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": "6c6b79ea-f821-42fe-88aa-a9d50dcac4b4",
"RefundInvoiceNumber": "sample string 2",
"OriginalInvoiceId": "95cb6da4-0d7f-4d6e-9d9c-5e6a33cfba9a",
"RefundOrderId": "69b8555f-2797-4435-ad24-394b291c35ad",
"RefundOrderNumber": "sample string 5",
"OriginalOrderNumber": "sample string 6",
"LocationId": 7,
"CustomerId": "02cd9b56-c8cb-4145-986d-fe34269ae2c4",
"ProductsRefunded": [
{
"ProductId": "79adab5a-d6d9-4e4d-8fd7-fa62f70764b9",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "50afa3c0-cfb9-4298-8328-696238359765",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "50afa3c0-cfb9-4298-8328-696238359765",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
},
{
"ProductId": "79adab5a-d6d9-4e4d-8fd7-fa62f70764b9",
"Quantity": 2.0,
"RefundedAmountBeforeTax": 3.0,
"Taxes": {
"Tax": 1.0,
"TaxDetails": [
{
"TaxId": "50afa3c0-cfb9-4298-8328-696238359765",
"Tax": 2.0,
"TaxName": "sample string 3"
},
{
"TaxId": "50afa3c0-cfb9-4298-8328-696238359765",
"Tax": 2.0,
"TaxName": "sample string 3"
}
]
}
}
],
"Payments": [
{
"PaymentId": "6df63c65-a213-45ff-ba10-ed90729a4346",
"OriginalPaymentId": "b16cf6c9-13eb-41bb-b2ee-3168bbf96634",
"Last4Digits": "sample string 3",
"CustomerAccountId": "e8caaec6-c5b3-47be-ba00-f4f1c55db575",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
},
{
"PaymentId": "6df63c65-a213-45ff-ba10-ed90729a4346",
"OriginalPaymentId": "b16cf6c9-13eb-41bb-b2ee-3168bbf96634",
"Last4Digits": "sample string 3",
"CustomerAccountId": "e8caaec6-c5b3-47be-ba00-f4f1c55db575",
"PaymentMethodId": 4,
"PaymentMethodName": "sample string 5",
"Amount": 6.0,
"TransactionDateUtc": "sample string 7"
}
]
}