Get Routing Groups
https://api.flxpoint.com/routing-groupsUse this when you want to pull routing data through the API.
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Endpoint to retrieve back a list of routing groups. To understand more about routing groups, visit our documentation : https://docs.flxpoint.com/flxpoint/routing-groups
You can also look at the `RoutingGroup` model for additional context.
Requires Account-level Token privileges.
Request
includeSourcesquerybooleanDetermines if `sources` are retrieved back and included in the response. Default `false`.
includeRulesquerybooleanDetermines if `routing priorities` are retrieved back and included in the response. Default `false`.
includeSettingquerybooleanDetermines if `routing group setting` is retrieved back and included in the response. Default `false`.
Example request
/routing-groupscurl -X GET "https://api.flxpoint.com/routing-groups" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN"Responses
200OKapplication/json
idintegernamestringsolutionWorkflowEventIdintegersourcesarray[RoutingGroupSource]idintegerroutingGroupIdintegersourceIdintegereligiblebooleanpriorityinteger999shippingAddressIdintegersuppressTrackingbooleansourceobjectidintegerrequirednamestringdescriptionstringinsertedAtstring (date-time)addressIdintegerrateShoppingbooleanreleaseCommittedStockOnShipmentAddedbooleandeprecatedreleaseCommittedStockOnQuantityUpdatebooleandeprecatedvendorIdintegertypeobjectidintegernamestringData SourceInternal WarehouseExternal WarehouseVendor Warehousehandlestringdata_sourceinternal_warehouseexternal_warehousevendor_warehousecurrencyobjectidintegerrequiredcodestringrequirednamestringsymbolstringunicodeDecimalstringaddressobjectidintegernamestringaddressLine1stringaddressLine2stringcitystringstatestringcountrystringstateCodestringcountryCodestringpostalstringemailstringphonestringcompanyNamestringfirstNamestringlastNamestringredactedbooleanhashstringcommitStockbooleanallowBackordersbooleanvendorobjectidintegercreatedByUserIdintegercreatedAtstring (date-time)deletedAtstring (date-time)namestringdescriptionstringportalEnabledbooleancontainsFirearmsWorkflowEventIdintegercontainsFirearmsbooleanshippingCostWorkflowEventIdintegerdropshipFeeWorkflowEventIdintegerintegrationsarray[any]settingsarray[SourceSetting]idintegerrequiredsettingSettingrequiredsourceIdintegervaluestringrequiredinsertedAtstring (date-time)updatedAtstring (date-time)autoCreateListingsWorkflowEventIdintegerautoRebuildEnabledOnstring (date-time)autoRebuildConfirmedByUserstringautoListEnabledOnstring (date-time)autoListConfirmedByUserstringautoCreateListingsForAllInventoriesbooleanautoCreateListingsForSpecificInventoriesbooleanautoGenerateInvoiceWorkflowIdintegershippingAddressobjectidintegernamestringaddressLine1stringaddressLine2stringcitystringstatestringcountrystringstateCodestringcountryCodestringpostalstringemailstringphonestringcompanyNamestringfirstNamestringlastNamestringredactedbooleanhashstringrulesarray[RoutingRule]idintegerorderRoutingGroupIdintegerorderRoutingRuleTypeobjectidintegernamestringhandlestringoptionalMarginAllowedbooleandescriptionstringhasBreakOutConditionbooleanbreakOutEnabledTextstringbreakOutDisabledTextstringtooltipstringpriorityintegerfixedValuenumberpercentageValuenumberenableBreakOutbooleanmarginInMilesnumberenabledbooleansettingobjectidintegerorderRoutingGroupIdintegerorderCannotBeRoutedActionHandlestringorderCannotBeRoutedEmailstringorderRouteBasedOnLowerCostbooleanpreferredSourceIdintegerholdFirearmsOrdersbooleanholdMultipleFrOrdersboolean[
{
"id": 0,
"name": "string",
"solutionWorkflowEventId": 0,
"sources": [
{
"id": 0,
"routingGroupId": 0,
"sourceId": 0,
"eligible": true,
"priority": 0,
"shippingAddressId": 0,
"suppressTracking": true,
"source": {
"id": null,
"name": null,
"description": null,
"insertedAt": null,
"addressId": null,
"rateShopping": null,
"releaseCommittedStockOnShipmentAdded": null,
"releaseCommittedStockOnQuantityUpdate": null,
"vendorId": null,
"type": null,
"currency": null,
"address": null,
"commitStock": null,
"allowBackorders": null,
"vendor": null,
"containsFirearmsWorkflowEventId": null,
"containsFirearms": null,
"shippingCostWorkflowEventId": null,
"dropshipFeeWorkflowEventId": null,
"integrations": null,
"settings": null,
"autoCreateListingsWorkflowEventId": null,
"autoRebuildEnabledOn": null,
"autoRebuildConfirmedByUser": null,
"autoListEnabledOn": null,
"autoListConfirmedByUser": null,
"autoCreateListingsForAllInventories": null,
"autoCreateListingsForSpecificInventories": null,
"autoGenerateInvoiceWorkflowId": null
},
"shippingAddress": {
"id": null,
"name": "Joe Smith",
"addressLine1": "120 1st Lane",
"addressLine2": "Suite 123",
"city": "Jacksonville",
"state": "Florida",
"country": "United States",
"stateCode": "FL",
"countryCode": "US",
"postal": "12345",
"email": "person@example.com",
"phone": "1-555-123-4567",
"companyName": null,
"firstName": "Joe",
"lastName": "Smith",
"redacted": null,
"hash": null
}
}
],
"rules": [
{
"id": 0,
"orderRoutingGroupId": 0,
"orderRoutingRuleType": {
"id": null,
"name": null,
"handle": null,
"optionalMarginAllowed": null,
"description": null,
"hasBreakOutCondition": null,
"breakOutEnabledText": null,
"breakOutDisabledText": null,
"tooltip": null
},
"priority": 0,
"fixedValue": 0,
"percentageValue": 0,
"enableBreakOut": true,
"marginInMiles": 0,
"enabled": true
}
],
"setting": {
"id": 0,
"orderRoutingGroupId": 0,
"orderCannotBeRoutedActionHandle": "string",
"orderCannotBeRoutedEmail": "string",
"orderRouteBasedOnLowerCost": true,
"preferredSourceId": 0,
"holdFirearmsOrders": true,
"holdMultipleFrOrders": true
}
}
]401Unauthorized
No schema documented for this status.
OpenAPI fragment
{
"get": {
"summary": "Get Routing Groups",
"description": "Endpoint to retrieve back a list of routing groups. To understand more about routing groups, visit our documentation : https://docs.flxpoint.com/flxpoint/routing-groups\n\nYou can also look at the `RoutingGroup` model for additional context.\n\nRequires Account-level Token privileges. ",
"parameters": [
{
"schema": {
"type": "boolean",
"default": false
},
"in": "query",
"name": "includeSources",
"description": "Determines if `sources` are retrieved back and included in the response. Default `false`. "
},
{
"schema": {
"type": "boolean",
"default": false
},
"in": "query",
"name": "includeRules",
"description": "Determines if `routing priorities` are retrieved back and included in the response. Default `false`. "
},
{
"schema": {
"type": "boolean",
"default": false
},
"in": "query",
"name": "includeSetting",
"description": "Determines if `routing group setting` is retrieved back and included in the response. Default `false`. "
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "array",
"description": "",
"items": {
"$ref": "#/components/schemas/RoutingGroup"
}
}
}
}
},
"401": {
"description": "Unauthorized"
}
}
}
}