Request syntax
To run a flow, use the following request syntax:
{
"partnerName":"<partner name>",
"direction":"<direction of flow>"
}
partner name
is the name of the partner to run the flow for. The name must not contain angled brackets (<>), backslashes (\), or double quotes ("). If the defined partner name contains backslashes, add another backslash before each existing backslash (\\). If the defined partner name contains double quotes, add a backslash before each double quote (\").
direction of flow
is the flow to run for the customer:
INBOUND
for an inbound flow and
OUTBOUND
for an outbound flow. The direction is not case sensitive.
To run the inbound flow for the customer My_Customer, use the following request syntax:
{
"partnerName":"My_Customer",
"direction":"INBOUND"
}
To run the outbound flow for the customer My_Customer, use the following request syntax:
{
"partnerName":"My_Customer",
"direction":"OUTBOUND"
}
When you run partner flows, you can also include the mapping task advanced session parameters in the Run Partner API using the mctAdvSessionProperties object.
Use the following request syntax that includes the buffer block size as advance session mapping parameter session when you run an inbound flow:
{
"partnerName":
"<Customer name>",
"direction":"INBOUND",
"mappingParameters": {
"inputParameters": {"param": "no"},
{
"inOutParameters": {
"ob_customer_param": "<parameter value>"
},
{"mctAdvSessionProperties":
{"Default buffer block size": "<Buffer block size in megabytes>"
}
}
}
Use the following request syntax that includes the buffer block size as advance session mapping parameter session when you run an outbound flow:
{
"direction": "outbound",
"partnerName": "ob_with_parameters",
"mappingParameters":
{
"inputParameters":
{
"param": "no"
},
"inOutParameters":
{"ob_customer_param": "60"
},
"mctAdvSessionProperties": { "Default buffer block size": "18MB"
}
}
}