Step-by-step configuration guide to enable Returns functionality in ServicePoint.
The configurations include the following:
User Role assignments
Settings
workflows
Steps
Enable Return functionality in other modules
This article is for the ServicePoint module. Click on this link to find out more about Return functionality for Fluent OMS or Fluent Store.
Setup the following settings via GraphQL:
Setup the following settings via REST API:
a. RETURN_REASONPUT {{fluentApiHost}}/api/v4.1/settings/retailer/{{retailer_id}}/RETURN_REASONb. RETURN_CONDITIONPUT {{fluentApiHost}}/api/v4.1/settings/retailer/{{retailer_id}}/RETURN_CONDITION
Create and assign the In-store Return Role
a. Role CreationINSTORE_RETURNS Role Creation Expand sourceb. Role Assignment
Configure Order workflows for the returns
Workflows For returns there is some cross workflow communication occurring between the Orderworkflow and the Return Orderworkflow.a. Orderworkflow The Orderworkflow requires 2 new rulesets (if not already present): b. Return Workflow
Fluent Commerce
1mutation CreateSetting($retailerId:Int!) { returnOrchestrated: createSetting(input:{ name:"RETURN_ORCHESTRATED", valueType:"BOOLEAN", value:"TRUE", context:"RETAILER", contextId: $retailerId}) { id name } defaultReturnDestinationLocation: createSetting(input:{ name:"DEFAULT_RETURN_DESTINATION_LOCATION", valueType:"STRING", value:"{{rejectLocation}}",//needs to be set to the corresponding default return location context: "RETAILER", contextId: $retailerId}) { id name } returnOrderType: createSetting(input: { name: "RETURN_ORDER_TYPE", valueType: "STRING", value: "DEFAULT", context: "RETAILER", contextId: $retailerId}) { id name } returnOrchestratedAccount: createSetting(input: { name: "RETURN_ORCHESTRATED", valueType: "BOOLEAN", value: "TRUE", context: "ACCOUNT", contextId: 0}) { id name } }
1mutation { createRole(input:{name:"INSTORE_RETURNS", permissions:[{name:"ORDER_VIEW"},{name:"CUSTOMER_VIEW"},{name:"RETURN_VIEW"},{name:"ORDERITEM_VIEW"},{name:"PRODUCT_VIEW"},{name:"VARIANTPRODUCT_VIEW"},{name:"STANDARDPRODUCT_VIEW"},{name:"GROUPPRODUCT_VIEW"},{name:"CATEGORY_VIEW"}]}) { name permissions { name }}}