Returns > Return Reasons > returnReasonsModify
Commerce APIReturnsReturn ReasonsreturnReasonsModify
returnReasonsModify
POST:return_reasons.json

Description

Modify one or multiple return reasons.

Permission bit: "return_reasons.modify"

Topic: Return Reasons

Arguments

data: [ReturnReasonModify!]!

Main argument for mutations.


ids: [String!]!

List of return reason ids. See also: Unique Identifiers

Example: ["rr_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

description: String

Return reason description (custom reasons only)

Example: "No longer needed/wanted"

Valid when: description's length doesn't exceed 250 characters


enabled: Boolean

Whether return reason is enabled or not

Example: true


Result

[ReturnReason!]

Preview (typescript)

Loading module