Returns > Return Reasons > returnReasonsCreate
Commerce APIReturnsReturn ReasonsreturnReasonsCreate
returnReasonsCreate
POST:return_reasons.json

Description

Create one or multiple return reasons.

Permission bit: "return_reasons.create"

Topic: Return Reasons

Arguments

data: [ReturnReasonCreate!]!

Main argument for mutations.


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


id: ReturnReasonType!

Unique return reason identifier. See also: Unique Identifiers


Result

[ReturnReason!]

Preview (typescript)

Loading module