# Decline an order return

Endpoint: POST /orderreturns/{returnID}/decline
Version: 1.0.448.36393
Security: OAuth2

## Path parameters:

  - `returnID` (string, required)
    ID of the return.

## Request fields (application/json):

  - `Comments` (string)
    Comments to be saved with the order approval or denial.

## Response 201 fields (application/json):

  - `ID` (string)

  - `OrderID` (string)

  - `PaymentIDs` (array)
    IDs of payments associated with this order return.
    Example: [""]

  - `Status` (string)
    Enum: "Unsubmitted", "AwaitingApproval", "Declined", "Open", "Completed", "Canceled"

  - `DateCreated` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `DateSubmitted` (string)
    Will be null until the order return passes from the buyer to the seller, including when Status is PendingApproval.
    Example: "2018-01-01T00:00:00-06:00"

  - `DateApproved` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `DateDeclined` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `DateCanceled` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `DateCompleted` (string)
    Populated when payment to customer has been completed.
    Example: "2018-01-01T00:00:00-06:00"

  - `LastUpdated` (string)
    Example: "2018-01-01T00:00:00-06:00"

  - `RefundAmount` (number)
    Sum of all RefundAmounts for items. This value can be overridden by a user with the OrderAdmin role. To remove the override set the value to null.

  - `Comments` (string)

  - `ItemsToReturn` (array)
    Example: [{"LineItemID":"","Quantity":0,"RefundAmount":0,"Comments":""}]

  - `ItemsToReturn.LineItemID` (string)

  - `ItemsToReturn.Quantity` (integer)

  - `ItemsToReturn.RefundAmount` (number)

  - `ItemsToReturn.Comments` (string)

  - `xp` (object)
    Example: {}

## Response 4XX fields (application/json):

  - `StatusCode` (integer)
    Example: "404"

  - `ErrorCode` (string)
    Example: "NotFoundError"

  - `Message` (string)
    Example: "Object not found"

  - `Data` (object)
    Example: {"ObjectType":"","ObjectID":""}


