Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme.

Path Parameters

code
string
required

The code of the Return rule to update.

Query Parameters

responseFields
string

limits which fields are returned in the response body

Body

application/json

Return Rule contract

auditInfo
object
code
string | null

Unique identifier of the Return.

customerRules
string[] | null

List of customer rule codes that apply to the Return

description
string | null

Return description

enabled
boolean | null

Indicates if the Return is enabled

endDate
string<date-time> | null

End of the rule's effective window. Null = never expires. Must be >= StartDate when both supplied.

isActive
boolean | null

Read-only. Computed server-side: true when the current UTC instant is inside the effective window (StartDate null/≤now AND EndDate null/≥now), false otherwise. A rule with no dates is always active. This reflects the effective window alone and does not incorporate the enabled flag.

isReturnable
boolean | null

Indicates if the Return is IsReturnable

maxDays
integer<int32> | null

Maximum Days of the Return

maxQty
integer<int32> | null

Maximum quantity of the Return

metaData
any | null

Metadata for the ReturnRule which is a json format, used to store additional information

name
string | null

Return name

productRules
string[] | null

List of product rule codes that apply to the Return

rank
integer<int32>

Rank of the Return

startDate
string<date-time> | null

Start of the rule's effective window. Null = no lower bound (already active).

validForAllSites
boolean | null

Indicates if the ReturnRule is valid for all sites

validSites
integer<int32>[] | null

List of site IDs that the ReturnRule is valid for

Response

OK

Return Rule contract

auditInfo
object
code
string | null

Unique identifier of the Return.

customerRules
string[] | null

List of customer rule codes that apply to the Return

description
string | null

Return description

enabled
boolean | null

Indicates if the Return is enabled

endDate
string<date-time> | null

End of the rule's effective window. Null = never expires. Must be >= StartDate when both supplied.

isActive
boolean | null

Read-only. Computed server-side: true when the current UTC instant is inside the effective window (StartDate null/≤now AND EndDate null/≥now), false otherwise. A rule with no dates is always active. This reflects the effective window alone and does not incorporate the enabled flag.

isReturnable
boolean | null

Indicates if the Return is IsReturnable

maxDays
integer<int32> | null

Maximum Days of the Return

maxQty
integer<int32> | null

Maximum quantity of the Return

metaData
any | null

Metadata for the ReturnRule which is a json format, used to store additional information

name
string | null

Return name

productRules
string[] | null

List of product rule codes that apply to the Return

rank
integer<int32>

Rank of the Return

startDate
string<date-time> | null

Start of the rule's effective window. Null = no lower bound (already active).

validForAllSites
boolean | null

Indicates if the ReturnRule is valid for all sites

validSites
integer<int32>[] | null

List of site IDs that the ReturnRule is valid for