Returns the whole configuration of a given policyId, including multi configuration, fields, sections and attachments.
OK
NOT_FOUND: Policy Id introduced does not exist.
INTERNAL: Internal server error. Typically, a server bug.
{- "attachments": [
- {
- "description": "This document is required for any Third party registration in MK local.",
- "id": "43342642354352344",
- "mandatory": true,
- "template": true,
- "title": "Third Party Authority Form"
}
], - "fees": true,
- "id": "43342642354352344",
- "jsonPolicy": {
- "companyDetailsTemplate": {
- "properties": [
- {
- "description": "Between 3 - 11 characters.\\nMust be related to the brand name.\\nMarketing SIDs are currently not allowed.",
- "maxLength": 11,
- "minLength": 3,
- "name": "senderId",
- "required": false,
- "title": "Alphanumeric Sender ID",
- "type": "string",
- "examples": [
- "By subscribing to our loyalty program",
- "By making a purchase in-store or online"
], - "enum": [
- "PROMOTIONAL",
- "TRANSACTIONAL",
- "OTP",
- "MULTIUSE"
], - "pattern": "^[+][0-9]+$",
- "message": {
- "pattern": "The number needs to start with country code. For example +1",
- "maxLength": 11,
- "minLength": 3
}
}
]
}, - "contactPersonTemplate": {
- "properties": [
- {
- "description": "Between 3 - 11 characters.\\nMust be related to the brand name.\\nMarketing SIDs are currently not allowed.",
- "maxLength": 11,
- "minLength": 3,
- "name": "senderId",
- "required": false,
- "title": "Alphanumeric Sender ID",
- "type": "string",
- "examples": [
- "By subscribing to our loyalty program",
- "By making a purchase in-store or online"
], - "enum": [
- "PROMOTIONAL",
- "TRANSACTIONAL",
- "OTP",
- "MULTIUSE"
], - "pattern": "^[+][0-9]+$",
- "message": {
- "pattern": "The number needs to start with country code. For example +1",
- "maxLength": 11,
- "minLength": 3
}
}
]
}, - "senderIdTemplate": {
- "properties": [
- {
- "description": "Between 3 - 11 characters.\\nMust be related to the brand name.\\nMarketing SIDs are currently not allowed.",
- "maxLength": 11,
- "minLength": 3,
- "name": "senderId",
- "required": false,
- "title": "Alphanumeric Sender ID",
- "type": "string",
- "examples": [
- "By subscribing to our loyalty program",
- "By making a purchase in-store or online"
], - "enum": [
- "PROMOTIONAL",
- "TRANSACTIONAL",
- "OTP",
- "MULTIUSE"
], - "pattern": "^[+][0-9]+$",
- "message": {
- "pattern": "The number needs to start with country code. For example +1",
- "maxLength": 11,
- "minLength": 3
}
}
]
}, - "marketSpecificDetailsTemplate": {
- "properties": [
- {
- "description": "Between 3 - 11 characters.\\nMust be related to the brand name.\\nMarketing SIDs are currently not allowed.",
- "maxLength": 11,
- "minLength": 3,
- "name": "senderId",
- "required": false,
- "title": "Alphanumeric Sender ID",
- "type": "string",
- "examples": [
- "By subscribing to our loyalty program",
- "By making a purchase in-store or online"
], - "enum": [
- "PROMOTIONAL",
- "TRANSACTIONAL",
- "OTP",
- "MULTIUSE"
], - "pattern": "^[+][0-9]+$",
- "message": {
- "pattern": "The number needs to start with country code. For example +1",
- "maxLength": 11,
- "minLength": 3
}
}
]
}
}, - "policyMultiType": "SINGLE",
- "policyStatus": "ENABLED",
- "price": {
- "mode": "SUBSCRIBED",
- "subscription": {
- "currency": "string",
- "frequency": 0,
- "recurrentFeeAmount": "string",
- "setupFeeAmount": "string"
}
}, - "isOpenPolicy": true,
- "statusDisclaimer": "Policy has been disabled as Registrations for these market conditions are now dynamic."
}
Download a policy template. Use this enpdoint to download the template for those policy attachments which template value is true.
Request Successful with binary file returned in octet stream
Policy/template not found
{- "error": {
- "code": 0,
- "details": [
- { }
], - "message": "string",
- "status": "string"
}
}