Skip to main content

GraphQL API

Effortlessly integrate and retrieve all your RMA data with our GraphQL API. This API is designed to provide seamless access to your return management system, making it simple for developers to create custom integrations, offer personalized customer experiences, and automate processes with precision. With just a few queries, you can obtain detailed RMA data, including customer returns, statuses, and essential information.

For comprehensive information about GraphQL, refer to the GraphQL developer guide on the Magento DevDocs page.

To download RMA GraphQl collection press this download

RMA GraphQL objects overview​

The Query object can contain the following attributes:

AttributeData TypeDescription
customerRmasCustomerRmasList of customer RMAs. Can be filtered by 'status_id' and 'custom_fields'
guestCustomerRmasRmaGuestCustomerList of guest customer RMAs for a given order. Requires an input of type RmaGuestCustomerInput (order_id, customer_email, and optionally customer_name).
rmaDictionaryRmaDictionaryList of RMA dictionaries
orderRmas[OrderRmas]List of RMAs already created for a given order. Requires an order_id.

CustomerRmas object​

Array of RMAs

The CustomerRmas object can contain the following attributes:

AttributeData TypeDescription
itemsCustomerRmaArray of RMAs

CustomerRma object​

RMA mapping fields

The CustomerRma object can contain the following attributes:

AttributeData TypeDescription
idStringRMA ID
increment_idString(Deprecated: use id.) The RMA number
statusStringThe RMA status
return_addressStringThe RMA return address
created_atStringCreated at date
print_slip_urlStringURL to print the RMA Packing Slip
print_label_urlStringURL to print the RMA Shipping Label
custom_fieldsRmaCustomFieldList of custom fields associated with RMA
ordersRmaOrderRMA orders list
messagesRmaMessagesRMA messages information

RmaGuestCustomer object​

The RmaGuestCustomer object is returned by the guestCustomerRmas query.

AttributeData TypeDescription
itemsCustomerRmaArray of RMAs

OrderRmas object​

The OrderRmas object is returned by the orderRmas query.

AttributeData TypeDescription
idIntRMA ID
increment_idString(Deprecated.) The RMA number
created_atStringCreated at date

RmaFilterInput object​

The RmaFilterInput object allows you to filter RMAs based on specific criteria.

AttributeData TypeDescription
status_idIntStatus ID
custom_fieldsRmaCustomFieldInputCustom fields (code + value)

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

RmaCustomField object​

RMA Custom fields object

The RmaCustomField object can contain the following attributes:

AttributeData TypeDescription
codeStringCustom field code
nameStringCustom field name
typeStringCustom field type
valueStringCustom field value
descriptionStringCustom field description
is_activeBooleanIs custom field active
is_editableBooleanIs editable for customers
is_visibleBooleanIs visible for customers
visible_in_status[String]Visible for customers in statuses
is_requiredBooleanIs required for customers
is_shown_on_shippingBooleanIs shown on shipping confirmation

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
codeStringCustom field code
valueStringCustom field value

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

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
image_urlStringItem image
item_nameStringItem name
item_skuStringItem sku
qty_requestedIntItem qty requested
weightFloatItem weight, in the units defined by the store
condition_idIntCondition ID
reason_idIntReason ID
resolution_idIntResolution ID

RmaMessages object​

Defines RMA messages information. This is the type returned by the messages field of the CustomerRma object above (not by the createRma mutation response, which has no messages field).

The RmaMessages object can contain the following attributes:

AttributeData TypeDescription
message_idStringMessage ID
textStringMessage text
typeStringMessage type