v1

latestOpenAPI 3.0.02026-07-266521,3121.2 MB
ReturnsRefunds

ActionRefund

Sends a refund to the channel for actioning <b>Permissions Required: </b> GlobalPermissions.OrderBook.ReturnsRefunds.Refunds.ApproveRefundsNode <b>Rate limit: </b><span style="background-color:#0272d9;color:white;padding:4px 8px;text-align:center;border-radius:5px; font-size: small;"><b>150</b></span> / minute

post/api/ReturnsRefunds/ActionRefund

Request body

Example request

{
  "request": {
    "OrderId": "00000000-0000-0000-0000-000000000000"
  }
}

Response

OK

SuccessfullyActionedboolean

Determines whether the header was marked as actioned in the database

RefundHeaderIdinteger

The unique identifier for the refund header.

RefundReferencestring

An automatically generated string to help identify the refund

CannotRefundReason'None' | 'NotImplemented' | 'DisabledInConfig' | 'MissingOrderInLinnworks' | 'OpenOrderInLinnworks' | 'OrderIsFullyRefundedInLinnworks' | 'NoNewRefundsSpecified' | 'NoUpdatedRefundsSpecified' | 'MultipleReferences' | 'SubStatusTagNotInTheSystem' | 'SubStatusTagIsNotActionable' | 'MultipleSubStatusTags' | 'RefundNotInSystem' | 'Other'

If the validation has failed at any stage, this field identifies the cause of the failure

Errorsstring[]

Any global validation errors are added to this list, as well as any errors from the RefundLines collection

Example response

{
  "RefundLines": [
    {
      "RefundRowId": "00000000-0000-0000-0000-000000000000",
      "RefundedItem": {
        "OrderItemRowId": "00000000-0000-0000-0000-000000000000"
      },
      "Errors": [
        {
          "RefundRowId": "00000000-0000-0000-0000-000000000000"
        }
      ]
    }
  ]
}