Description
Use this task to perform "GET requests" towards the Nexus GO Cards ordering API and extract any attributes from the response.
Configuration
To use this task, configure the following delegate expression in your service task:
The parameters in the examples below can be configured in Identity Manager Admin.
Get order info:
Parameter | Mandatory | Value | Description |
---|
URL |
| /api/order/{orderId} | The endpoint to call. |
param_orderId |
(for this endpoint) | Example value: | Will replace the {orderId} value from the URL. |
costCentre | - | Example value: | Will add the variable with the name costCentre_Output to the process map. The value will be taken from the response body. |
orderer.email | - | Example value: | Will add the variable with the name ordererEmail_Output to the process map. The value will be taken from the response body. |
cardIds | - | Example value: | Will add the variable with the name cardIds_Output to the process map as a list. The value will be taken from the response body. |
accessories.articleId | - | Example value: | Will add the variable with the name accessories_articleIds_Output to the process map as a list. The value will be taken from the response body. |
Get available accessories:
Example: /api/accessory
Parameter | Mandatory | Value | Description |
---|
URL |
| /api/accessory | The endpoint to call. |
queryParam_showDetails | - | Valid values: | You can override the default query parameters by setting them yourself, or keep the default. |
queryParam_languageId | - | Valid values: | You can override the default query parameters by setting them yourself, or keep the default. |
articleId | - | Example value: | Will add the variable with the name articleId_Output to the process map as a list. The value will be taken from the response body. |
price | - | Example value: | Will add the variable with the name price to the process map as a list. The value will be taken from the response body. |
Error cases
There are three major error cases:
Wrong URL
Mandatory parameter not defined, for example {cardId}
Resource not found, for example {cardId} does not exist
For these three error cases you will find two variables in the process map that describe what happened:
HTTP_STATUS_CODE
requestErrorMessage
You can use these variables to adjust your process flow accordingly.