| Action Type | Embedded |
|---|---|
| Full Action ID | embedded.commerce.return.GetRmaLabels.before |
| Runs multiple custom functions? | Yes |
JavaScript File Structure
Action files share the following basic structure:callback—This argument follows the established JavaScript callback pattern: it takes an error as the first argument (or null if there is no error) and a result as the second argument (if required).
context—This argument provides the function access to relevant objects and methods that interface with Kibo.
Context: Return
The methods and objects documented here are available to this action through the use of thecontext argument.
Microservice OperationThis action corresponds to the microservice that creates RMA labels.
Get
get.getShipmentInfo
Retrieves shipment information for the return.
Example:
get.getPackage
Retrieves a specific package.
Example:
get.getPackagesCount
Returns the total number of packages associated with the return.
Example:
Exec
exec.setDestinationAddress
Sets the destination address for the RMA label.
Example:
exec.setOriginAddress
Sets the origin address for the RMA label.
Example:
exec.setShippingMethodCode
Sets the shipping method for the RMA label.
Example:
Context Objects Available to All Actions
apiContext
Accesses tenant information.
Example:

