Decline an order

POST
/orders/{direction}/{orderID}/decline

Roles

At least one of the roles below is required to access this endpoint

FullAccess
OrderAdmin
Shopper

Parameters

NameTypeDescriptionPossible Values
directionstringDirection of the order, from the current user's perspective. Possible values: incoming, outgoing, all.Incoming, Outgoing, All
orderIDstringID of the order.---

Request Body

PropertyTypeFormatMax LengthPossible Values
AllowResubmitboolean---------

Commentsstring---2000 characters---

Response Body

PropertyTypeFormatMax LengthPossible Values
IDstring---100 characters---
FromUser
Read Only
object---------

PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---100 characters---
Username
Read Only
string---100 characters---

Password
Read Only
stringpassword------
FirstName
Read Only
string---100 characters---
LastName
Read Only
string---100 characters---
Email
Read Only
string---200 characters---
Phone
Read Only
string---100 characters---
TermsAccepted
Read Only
stringdate-time------
Active
Read Only
boolean---------

xp
Read Only
object---------
AvailableRoles
Read Only
array---------

Locale
Read Only
object---------

PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---100 characters---
OwnerID
Read Only
string---------

Currency
Read Only
string---100 characters---

Language
Read Only
string---100 characters---

DateCreated
Read Only
stringdate-time------
PasswordLastSetDate
Read Only
stringdate-time------

FromCompanyIDstring---------

ToCompanyIDstring---------

FromUserIDstring---------

BillingAddressIDstring---------
BillingAddress
Read Only
object---------
PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---100 characters---
DateCreated
Read Only
stringdate-time------
CompanyName
Read Only
string---100 characters---
FirstName
Read Only
string---100 characters---
LastName
Read Only
string---100 characters---
Street1
Read Only
string---100 characters---
Street2
Read Only
string---100 characters---
City
Read Only
string---100 characters---
State
Read Only
string---100 characters---
Zip
Read Only
string---100 characters---
Country
Read Only
string---2 characters---
Phone
Read Only
string---100 characters---
AddressName
Read Only
string---100 characters---
xp
Read Only
object---------
ShippingAddressIDstring---------

Commentsstring---2000 characters---
LineItemCount
Read Only
integerint32------
Status
Read Only
string------Unsubmitted, AwaitingApproval, Declined, Open, Completed, Canceled
DateCreated
Read Only
stringdate-time------
DateSubmitted
Read Only
stringdate-time------

DateApproved
Read Only
stringdate-time------
DateDeclined
Read Only
stringdate-time------
DateCanceled
Read Only
stringdate-time------
DateCompleted
Read Only
stringdate-time------

LastUpdated
Read Only
stringdate-time------
Subtotal
Read Only
numberfloat------

ShippingCostnumberfloat------

TaxCostnumberfloat------

PromotionDiscount
Read Only
numberfloat------

Currency
Read Only
string---------

Total
Read Only
numberfloat------

IsSubmitted
Read Only
boolean---------

xpobject---------