Download OpenAPI specification:Download
Fabrics v2 Configurations Apis for multi tenant service
These endpoints help in performing CRUD operations on tenant configurations
Get all Tenant configurations for the given tenantId
required | object (XSiteContext) x-site-context value |
Configuration found and returned.
Bad Request
Configuration not found for tenant.
Internal Server Error
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Replace List of Tenant configuration with new configs for the given tenantId.
required | object (XSiteContext) x-site-context value |
Configuration updated.
Bad Request
Configuration not found for tenant.
Internal Server Error
[- {
- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD"
}
]
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Create Tenant configuration for the given tenantId
required | object (XSiteContext) x-site-context value |
Configuration created.
Bad Request
Configuration already exists for the tenant.
Internal Server Error
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD"
}
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Update Tenant configuration for the given tenantId
required | object (XSiteContext) x-site-context value |
Configuration updated.
Bad Request
Configuration not found for tenant.
Internal Server Error
[- {
- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD"
}
]
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Get Tenant configuration for the given tenantId
Configuration found and returned.
Bad Request
Configuration not found for tenant.
Internal Server Error
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Replace Tenant configuration with new configs for the given tenantId
required | object (XSiteContext) x-site-context value |
Configuration updated.
Bad Request
Configuration not found for tenant.
Internal Server Error
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD"
}
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Configuration deleted.
Bad Request
Configuration not found for tenant.
Internal Server Error
{- "message": "Bad Request"
}
Update Tenant configuration for the given tenantId,configName and configType
required | object (XSiteContext) x-site-context value |
Configuration updated.
Bad Request
Configuration not found for tenant.
Internal Server Error
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD"
}
{- "configName": "ENUM",
- "objectValue": "SYSTEM",
- "objectType": "SYSTEM",
- "configType": "HOLD",
- "tenantId": "erfvda5435234tgfdvsf"
}
Get Tenant info for the given tenantId
required | object (XSiteContext) x-site-context value |
Matched tenant configs
bad Request
No Configurations found for tenant.
Internal Server Error
{- "limit": 10,
- "offset": 0,
- "sortBy": "updatedAt",
- "sortDirection": "desc",
- "filters": {
- "retail": {
- "locationNum": 12
}, - "orderSubTotal": {
- "gte": 1300,
- "lt": 1400
}, - "orderNumber": "order-*Z",
- "statusCode": [
- "ORDER_CREATED"
], - "createdAt": {
- "lt": "2022-09-11T23:12:00.123Z"
}, - "shipInfo": {
- "shipToId": [
- "23434",
- "23436"
]
}
}
}
{- "count": 100,
- "limit": 10,
- "offset": 1
}
These endpoints help in performing CRUD operations on Target configurations
Get all Target configurations for the given tenantId
required | object (XSiteContext) x-site-context value |
Target Configuration updated.
Bad Request
Target Configuration not found for tenant.
Internal Server Error
[- {
- "tenantId": "asferf3r4safasdcd",
- "serviceName": "order-service",
- "processName": "order-create",
- "targetService": [
- {
- "serviceName": "NOTIFICATION_SERVICE",
- "serviceAttributes": {
- "property1": { },
- "property2": { }
}
}
]
}
]
Create Target configuration for the given tenantId
Target Configuration updated.
Bad Request
Target Configuration not found for tenant.
Target Configuration already exists for the tenant.
Internal Server Error
{- "serviceName": "order-service",
- "processName": "order-create",
- "targetService": [
- {
- "serviceName": "NOTIFICATION_SERVICE",
- "serviceAttributes": {
- "property1": { },
- "property2": { }
}
}
]
}
{- "tenantId": "asferf3r4safasdcd",
- "serviceName": "order-service",
- "processName": "order-create",
- "targetService": [
- {
- "serviceName": "NOTIFICATION_SERVICE",
- "serviceAttributes": {
- "property1": { },
- "property2": { }
}
}
]
}
Get Tenant configuration for the given tenantId
Target Configuration updated.
Bad Request
Target Configuration not found for tenant.
Internal Server Error
{- "tenantId": "asferf3r4safasdcd",
- "serviceName": "order-service",
- "processName": "order-create",
- "targetService": [
- {
- "serviceName": "NOTIFICATION_SERVICE",
- "serviceAttributes": {
- "property1": { },
- "property2": { }
}
}
]
}
Target Configuration deleted.
Bad Request
Target Configuration not found for tenant.
Internal Server Error
{- "message": "Bad Request"
}
These endpoints help in performing CRUD operations on Fraud configurations
Get all Fraud configurations for the given tenantId
Fraud Configuration updated.
Bad Request
Fraud Configuration not found for tenant
Internal Server Error
{- "tenantId": "asferf3r4safasdcd",
- "serviceName": "FRAUD_RELEASE_SERVICE",
- "processName": "ORDER_CREATE",
- "configuration": {
- "conditions": "[ // OR BLOCK START\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lte\",\n \"type\": \"date\",\n \"value\": [-59, \"SECONDS\"] // now -59 sec\n },\n {\n \"key\": \"type\",\n \"operator\": \"in\",\n \"value\": [\"web\", \"mobile\"]\n }\n ], // AND BLOCK END\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lt\",\n \"type\": \"date\",\n \"value\": [-10, \"MINUTES\"]\n },\n {\n \"key\": \"type\",\n \"operator\": \"is\",\n \"value\": \"postman\"\n }\n ] // AND BLOCK ENDS\n ] // OR BLOCK ENDS\n"
}
}
Replace Fraud configuration with new configs for the given tenantId
Fraud Configuration updated.
Bad Request
Fraud Configuration not found for tenant.
Fraud Configuration already exists for the tenant.
Internal Server Error
{- "conditions": "[ // OR BLOCK START\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lte\",\n \"type\": \"date\",\n \"value\": [-59, \"SECONDS\"] // now -59 sec\n },\n {\n \"key\": \"type\",\n \"operator\": \"in\",\n \"value\": [\"web\", \"mobile\"]\n }\n ], // AND BLOCK END\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lt\",\n \"type\": \"date\",\n \"value\": [-10, \"MINUTES\"]\n },\n {\n \"key\": \"type\",\n \"operator\": \"is\",\n \"value\": \"postman\"\n }\n ] // AND BLOCK ENDS\n ] // OR BLOCK ENDS\n"
}
{- "tenantId": "asferf3r4safasdcd",
- "serviceName": "FRAUD_RELEASE_SERVICE",
- "processName": "ORDER_CREATE",
- "configuration": {
- "conditions": "[ // OR BLOCK START\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lte\",\n \"type\": \"date\",\n \"value\": [-59, \"SECONDS\"] // now -59 sec\n },\n {\n \"key\": \"type\",\n \"operator\": \"in\",\n \"value\": [\"web\", \"mobile\"]\n }\n ], // AND BLOCK END\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lt\",\n \"type\": \"date\",\n \"value\": [-10, \"MINUTES\"]\n },\n {\n \"key\": \"type\",\n \"operator\": \"is\",\n \"value\": \"postman\"\n }\n ] // AND BLOCK ENDS\n ] // OR BLOCK ENDS\n"
}
}
Fraud Configuration deleted.
Bad Request
Fraud Configuration not found for tenant.
Internal Server Error
{- "message": "Bad Request"
}
Get all Fraud configurations for the given tenantId
required | object (XSiteContext) x-site-context value |
Fraud Configuration updated.
Bad Request
Fraud Configuration not found for tenant
Internal Server Error
[- {
- "tenantId": "asferf3r4safasdcd",
- "serviceName": "FRAUD_RELEASE_SERVICE",
- "processName": "ORDER_CREATE",
- "configuration": {
- "conditions": "[ // OR BLOCK START\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lte\",\n \"type\": \"date\",\n \"value\": [-59, \"SECONDS\"] // now -59 sec\n },\n {\n \"key\": \"type\",\n \"operator\": \"in\",\n \"value\": [\"web\", \"mobile\"]\n }\n ], // AND BLOCK END\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lt\",\n \"type\": \"date\",\n \"value\": [-10, \"MINUTES\"]\n },\n {\n \"key\": \"type\",\n \"operator\": \"is\",\n \"value\": \"postman\"\n }\n ] // AND BLOCK ENDS\n ] // OR BLOCK ENDS\n"
}
}
]
Create Fraud configuration for the given tenantId
Configuration updated.
Bad Request
Configuration not found for tenant.
Fraud Configuration already exists for the tenant.
Internal Server Error
{- "serviceName": "FRAUD_RELEASE_SERVICE",
- "processName": "ORDER_CREATE",
- "configuration": {
- "conditions": "[ // OR BLOCK START\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lte\",\n \"type\": \"date\",\n \"value\": [-59, \"SECONDS\"] // now -59 sec\n },\n {\n \"key\": \"type\",\n \"operator\": \"in\",\n \"value\": [\"web\", \"mobile\"]\n }\n ], // AND BLOCK END\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lt\",\n \"type\": \"date\",\n \"value\": [-10, \"MINUTES\"]\n },\n {\n \"key\": \"type\",\n \"operator\": \"is\",\n \"value\": \"postman\"\n }\n ] // AND BLOCK ENDS\n ] // OR BLOCK ENDS\n"
}
}
{- "tenantId": "asferf3r4safasdcd",
- "serviceName": "FRAUD_RELEASE_SERVICE",
- "processName": "ORDER_CREATE",
- "configuration": {
- "conditions": "[ // OR BLOCK START\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lte\",\n \"type\": \"date\",\n \"value\": [-59, \"SECONDS\"] // now -59 sec\n },\n {\n \"key\": \"type\",\n \"operator\": \"in\",\n \"value\": [\"web\", \"mobile\"]\n }\n ], // AND BLOCK END\n [ // AND BLOCK STARTS\n {\n \"key\": \"orderDate\",\n \"operator\": \"lt\",\n \"type\": \"date\",\n \"value\": [-10, \"MINUTES\"]\n },\n {\n \"key\": \"type\",\n \"operator\": \"is\",\n \"value\": \"postman\"\n }\n ] // AND BLOCK ENDS\n ] // OR BLOCK ENDS\n"
}
}