Error CodeDescription
UNEXPECTED_ERRORAn unexpected error occurred. Contact Loop Support if the error persists.
ORDER_NOT_FOUNDAn order with the specified ID could not be found.
NOT_AUTHORIZEDThe request couldn’t be processed because authorization failed. Confirm that your API key is correct and try again.
NOT_FOUNDThe resource requested was not found
UNPROCESSABLE_RETURNThe return cannot be processed because it is in a state that keeps it from being processed. Check the state of the return and make sure it is eligible for processing.
UNPROCESSABLE_FLAGGED_RETURNUnless enabled, flagged returns cannot be processed. If you would like to configure your flagged returns to process, please adjust the “Allow flagged returns to process” setting in your Loop Admin.
FAILED_TO_GET_WEBHOOKSThe webhooks requested could not be returned. Contact Loop Support if the error persists.
FAILED_TO_DELETE_WEBHOOKThe webhook could not be deleted. Contact Loop Support if the error persists.
FAILED_TO_CREATE_WEBHOOKThe webhook could not be created. Contact Loop Support if the error persists.
FAILED_TO_UPDATE_WEBHOOKThe webhook could not be updated. Contact Loop Support if the error persists.
FAILED_TO_GET_SAMPLE_WEBHOOKThe sample webhook could not be returned. Contact Loop Support if the error persists.
DESTINATION_LIMIT_EXCEEDEDYou have exceeded the number of destinations included in your plan. Contact your Merchant Success Manager or Loop Support for more information.

Draft returns-specific errors

The following error codes may be returned as part of the draft return response when using the Return Creation API.

Error CodeDescription
draft-returns-not-enabledDraft returns are not enabled for this shop.
validation-failedValidation failed.
shop-not-foundShop not found.
order-lookup-failedFailed to lookup the order.
order-not-foundOrder not found.
error-retrieving-orderError retrieving order.
secondary-input-mismatchSecondary input mismatch.
returns-unavailable-from-order-addressReturns unavailable from order address.
returns-unavailable-for-orderReturns unavailable for order.
order-has-been-cancelledOrder has been cancelled.
order-get-data-failedFailed to get order data.
order-line-item-get-data-failedFailed to get order line item data.
draft-return-not-foundDraft return not found.
draft-return-version-mismatchDraft return version mismatch.
draft-return-not-actionableDraft return is not actionable.
unable-to-resolve-action-handlerUnable to resolve action handler.
action-failedAction failed.
partial-context-generationPartial context generation.
partial-available-action-generationPartial available action generation.
no-returning-itemsNo returning items.
cart-errorCart error.
totals-calculation-failedFailed to calculate totals.
return-creation-failedFailed to create return.
terminal-stateDraft return has been {state} and cannot be modified (where {state} is the current state). Terminal states include submitted, cancelled, and expired.
unsupported-featureUnsupported feature.
internal-errorAn unexpected error occurred.