Skip to main content

GraphQL API

RMA GraphQL objects overview

The Query object can contain the following attributes:

AttributeData TypeDescription
customerRmasCustomerRmasList of customer RMAs
rmaDictionaryRmaDictionaryList of RMA dictionaries

CustomerRma object

RMA mapping fields

The CustomerRma object can contain the following attributes:

AttributeData TypeDescription
idStringRMA ID
increment_idStringThe RMA number
created_atStringCreated at date
statusStringStatus

CustomerRmas object

Array of RMAs

The CustomerRmas object can contain the following attributes:

AttributeData TypeDescription
itemsCustomerRmaArray of RMAs

RmaDictionary object

RMA Dictionary

The RmaDictionary object can contain the following attributes:

AttributeData TypeDescription
statusesRmaStatusArray of RMA statuses
conditionsRmaConditionArray of RMA conditions
reasonsRmaReasonArray of RMA reasons
resolutionsRmaResolutionArray of RMA resolutions

RmaStatus object

RMA Status object

The RmaStatus object can contain the following attributes:

AttributeData TypeDescription
nameStringStatus name
is_activeBooleanIs status active
colorStringStatus color
is_visibleBooleanIs the status visible in the status bar

RmaCondition object

RMA Condition object

The RmaCondition object can contain the following attributes:

AttributeData TypeDescription
nameStringCondition name
is_activeBooleanIs condition active

RmaReason object

RMA Reason object

The RmaReason object can contain the following attributes:

AttributeData TypeDescription
nameStringReason name
is_activeBooleanIs reason active

RmaResolution object

RMA Resolution object

The RmaResolution object can contain the following attributes:

AttributeData TypeDescription
nameStringResolution name
is_activeBooleanIs resolution active

Mutation object

The Mutation object can contain the following attributes:

AttributeData TypeDescription
createRmaCreateRmaOutputCreate RMA

CreateRmaInput object

Defines the input to the run createRma mutation

The CreateRmaInput object can contain the following attributes:

AttributeData TypeDescription
guest_customerRmaGuestCustomerInputDefines guest customer information
rma_ordersRmaOrderInput!Defines orders information
custom_fieldsRmaCustomFieldInputList of custom fields
agree_boxBooleanAgree with RMA policy text
replyStringRMA Customer message

CreateRmaOutput object

Defines the output for the createRma mutation

The CreateRmaOutput object can contain the following attributes:

AttributeData TypeDescription
rmaRma!Rma Object

RmaGuestCustomerInput object

Defines RMA guest customer information

The RmaGuestCustomerInput object can contain the following attributes:

AttributeData TypeDescription
order_idIntOrder ID
customer_emailString!Customer Email
customer_nameStringCustomer Name

RmaOrderInput object

Defines RMA order information

The RmaOrderInput object can contain the following attributes:

AttributeData TypeDescription
order_idString!Order or Receipt #
store_idInt!Storeview ID
typeString!Order type. Allowed values: regular, offline
itemsRmaItemInput!List of RMA order items

RmaItemInput object

Defines RMA order item information

The RmaItemInput object can contain the following attributes:

AttributeData TypeDescription
order_item_idInt!Order item ID
qty_requestedInt!Qty requested to return
product_skuString!Product Sku
condition_idIntCondition ID
reason_idIntReason ID
resolution_idIntResolution ID

RmaCustomFieldInput object

Defines RMA custom field information

The RmaCustomFieldInput object can contain the following attributes:

AttributeData TypeDescription
codeStringProduct Sku
valueStringCondition Code

Rma object

Defines RMA information

The Rma object can contain the following attributes:

AttributeData TypeDescription
increment_idStringRMA #
status_idIntStatus ID
date_requestedStringRequested date
ordersRmaOrderDefines RMA orders list
messagesRmaMessageDefines RMA messages information
return_addressStringRma return address information

RmaOrder object

Defines RMA orders list

The RmaOrder object can contain the following attributes:

AttributeData TypeDescription
order_numberStringOrder #
typeStringOrder type. Allowed values: regular, offline
itemsRmaItemDefines RMA order items information

RmaItem object

Defines RMA order item information

The RmaItem object can contain the following attributes:

AttributeData TypeDescription
order_numberStringOrder #
image_urlStringItem image
item_nameIntItem name
item_skuStringItem sku
qty_requestedIntItem qty requested
condition_idIntCondition ID
reason_idIntReason ID
resolution_idIntResolution ID

RmaMessage object

Defines RMA messages information

The RmaMessage object can contain the following attributes:

AttributeData TypeDescription
typeStringMessage type. Possible values are: customer, user, system
author_nameStringMessage author name
messageStringMessage text
dateStringMessage date
attachmentsMessageAttachmentMessage attachments information

MessageAttachment object

Message attachment information

The MessageAttachment object can contain the following attributes:

AttributeData TypeDescription
nameStringAttachment name
urlStringAttachment url