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

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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

Sample:
{
  "RefundInvoiceId": "4b335e2f-9110-425b-9ef4-a7744653dc37",
  "RefundInvoiceNumber": "sample string 2",
  "OriginalInvoiceId": "d4b2c85e-5c14-4324-9e04-9b83099ba40b",
  "RefundOrderId": "cb32abd4-8809-4bc0-9c4d-054c534d10fa",
  "RefundOrderNumber": "sample string 5",
  "OriginalOrderNumber": "sample string 6",
  "LocationId": 7,
  "CustomerId": "a17a031d-ac48-4eaf-8e83-a561646275f7",
  "ProductsRefunded": [
    {
      "ProductId": "a8588826-76c7-467b-ace8-38733b9b7cff",
      "Quantity": 2.0,
      "RefundedAmountBeforeTax": 3.0,
      "Taxes": {
        "Tax": 1.0,
        "TaxDetails": [
          {
            "TaxId": "ef03a4b2-d56e-44e8-9aaa-fa84e12643fe",
            "Tax": 2.0,
            "TaxName": "sample string 3"
          },
          {
            "TaxId": "ef03a4b2-d56e-44e8-9aaa-fa84e12643fe",
            "Tax": 2.0,
            "TaxName": "sample string 3"
          }
        ]
      }
    },
    {
      "ProductId": "a8588826-76c7-467b-ace8-38733b9b7cff",
      "Quantity": 2.0,
      "RefundedAmountBeforeTax": 3.0,
      "Taxes": {
        "Tax": 1.0,
        "TaxDetails": [
          {
            "TaxId": "ef03a4b2-d56e-44e8-9aaa-fa84e12643fe",
            "Tax": 2.0,
            "TaxName": "sample string 3"
          },
          {
            "TaxId": "ef03a4b2-d56e-44e8-9aaa-fa84e12643fe",
            "Tax": 2.0,
            "TaxName": "sample string 3"
          }
        ]
      }
    }
  ],
  "Payments": [
    {
      "PaymentId": "8bb881b0-59ff-4331-b8a3-7e6d93776ab1",
      "OriginalPaymentId": "35dd9e1e-266e-4f82-8eda-b416a0906f51",
      "Last4Digits": "sample string 3",
      "CustomerAccountId": "fa61ee93-5d43-43a8-a115-2a287bfb5775",
      "PaymentMethodId": 4,
      "PaymentMethodName": "sample string 5",
      "Amount": 6.0,
      "TransactionDateUtc": "sample string 7"
    },
    {
      "PaymentId": "8bb881b0-59ff-4331-b8a3-7e6d93776ab1",
      "OriginalPaymentId": "35dd9e1e-266e-4f82-8eda-b416a0906f51",
      "Last4Digits": "sample string 3",
      "CustomerAccountId": "fa61ee93-5d43-43a8-a115-2a287bfb5775",
      "PaymentMethodId": 4,
      "PaymentMethodName": "sample string 5",
      "Amount": 6.0,
      "TransactionDateUtc": "sample string 7"
    }
  ]
}