Changed on:
12 June 2024
The rule creates a return entity. The return entity is then used to initiate the process of order items return.
Plugin Name | Order Reference Module |
---|---|
Namespace | [[account.id]].order |
The Order Reference Module is the foundation for order-related implementations. It provides reference workflows for click & collect, home delivery and mixed baskets and those needed to build your own. Extensible by design, use this Module as a base to build a solution to your customers' needs.
Creates a return entity. The return entity is then used to initiate the process of returning order items
This rule does not identify any input parameters.
Parameter | Description | Data Type | Required? |
returnItems | The list of return items | Array list | Required |
pickupLocation | The map of pickup address | Map | Optional |
lodgedLocation | The ref of lodged location | String | Optional |
type | The return order type | String | Required |
ref | The order ref | String | Optional |
returnAuthorisationKey | The return authorisation key. Metadata field | String | Optional |
returnAuthorisationKeyExpiry | The return authorisation key expiry. Metadata field | String | Optional |
returnAuthorisationDisposition | The return authorisation disposition. Example:
| JSON | Optional |
returnVerifications | The return verifications. Example:
| JSON | Optional |
destinationLocation | The destination location. | String | Optional |
currency | The currency. Example:
| JSON | Optional |
taxType |
| JSON | Optional |
subTotalAmount | Example:
| JSON | Optional |
totalTax | Example:
| JSON | Optional |
totalAmount | Example:
| JSON | Optional |
This rule will throw an IllegalArgumentException
`accountId/retailerId/entityId/entityType/entitySubtype/entityStatus/event name/attributes`
`DEFAULT_TAX_TYPE/DEFAULT_RETURN_DESTINATION_LOCATION`
All generated exceptions will be wrapped with RubixException: 422
1{
2 "name": "<ACCOUNTID>.order.CreateReturnOrderFromOrder",
3 "props": {}
4}
Language: json
Setting Name | User Type | Setting Type | Value |
DEFAULT_TAX_TYPE | RETAILER or ACCOUNT | JSON | Example: |
DEFAULT_RETURN_DESTINATION_LOCATION | RETAILER or ACCOUNT | STRING | Example: |
refers to plugin
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.