{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0",
    "title": "mSpace API Documentation",
    "x-logo": {
      "url": "../images/logo.png"
    }
  },
  "tags": [
    {
      "name": "sms/send",
      "description": " This service allows the user to send SMS to one or more terminals (phones or any SMS-enabled device) from their application.\n\n SMS send service supports only POST HTTP requests. This is used when sending SMS to a mobile phone from an application.\n\n An application wishing to initiate an MT SMS message should use this operation type. "
    },
    {
      "name": "sms/receive",
      "description": " This service retrieves the SMS sent to the web application. Receive service returns only a list of SMS messages received since the previous invocation of the method. "
    },
    {
      "name": "sms/report",
      "description": " When performing a SendSms Operation if an application has requested for a Delivery Response message from the Message Centre, then TAP will initiate the Delivery Report service to hand over the Delivery Response message to the application. The messageId should be used to match the MT response with the Delivery Report. "
    },
    {
      "name": "ussd/send",
      "description": " This service is used when sending USSD messages to a mobile phone from an application.USSD send service supports only POST HTTP requests."
    },
    {
      "name": "ussd/receive",
      "description": " This service allows TAP to deliver MO messages to the application using HTTP – based API. The flow of messages is initiated by a MO request sent to an application,TAP will deliver the message to the application as an acknowledgement. Hence it could be either request-response exchange or a request-exception exchange.\n\n Receive USSD request is a MO message which will be sent to the application through mSpace as a delivery request. "
    },
    {
      "name": "caas/otpGeneration",
      "description": "This service is used by the developer to initiate a one time charging for the subscriber on his/her mobile account. Upon the request, Applink will generate and send an OTP to the subscriber's MSISDN. This OTP must be entered by the subscriber into the mobile/web application to authorize the one time charge."
    },
    {
      "name": "caas/otpVerify",
      "description": "This service is used by the developer to verify an OTP entered by a subscriber into the application. Upon a successful verification, one time charging will be deducted from the subscriber's mobile account."
    },
    {
      "name": "caas/chargingNotification",
      "description": "Charging notification is returned to the developer application upon a charging attempt. It will denote whether the charging is successful or not. Charging notification is returned to the endpoint you have configured under the 'charging notification URL' section in CaaS API when creating the application."
    },
    {
      "name": "subscription/userSubscription",
      "description": "This service handles user subscription process(subscription/unsubscription)"
    },
    {
      "name": "subscription/baseSize",
      "description": "This service returns the number of registered subscribers"
    },
    {
      "name": "subscription/subscriberStatus",
      "description": "This service returns the user subscription status(unregistered,registered)"
    },
    {
      "name": "subscription/notify",
      "description": "This service sends notifications to the users"
    },
    {
      "name": "subscription/getSubscriberList",
      "description": "This service provides an opportunity for the developers to retrieve subscriber list. This API allows the developer to stay updated with the subscription notifications which he/she has missed receiving."
    },
    {
      "name": "otp/request",
      "description": " This service is used by the developer to request an OTP for a subscriber's MSISDN. Upon the request, mSpace will generate and send an OTP to the subscriber's MSISDN. This OTP must be entered by the subscriber into the mobile/web application to activate a subscription. "
    },
    {
      "name": "otp/verify",
      "description": " This service is used by the developer to verify an OTP entered by a subscriber into the application. Upon a successful verification the subscription process of mSpace will be activated. "
    },
    {
      "name": "lbs/request",
      "description": "This service is used by the developer to request a location of a subscriber. Upon the request, mSpace will communicate the location of the subscriber if he/she has granted the permission."
    },
    {
      "name": "otp/verify",
      "description": " This service is used by the developer to verify an OTP entered by a subscriber into the application. Upon a successful verification the subscription process of mSpace will be activated. "
    },
    {
      "name": "lbs/request",
      "description": "This service is used by the developer to request a location of a subscriber. Upon the request, mSpace will communicate the location of the subscriber if he/she has granted the permission."
    }
  ],
  "x-tagGroups": [
    {
      "name": "sms",
      "tags": [
        "sms/send",
        "sms/receive",
        "sms/report"
      ]
    },
    {
      "name": "ussd",
      "tags": [
        "ussd/send",
        "ussd/receive"
      ]
    },
    {
      "name": "caas",
      "tags": [
        "caas/otpGeneration",
        "caas/otpVerify",
        "caas/chargingNotification"
      ]
    },
    {
      "name": "subscription",
      "tags": [
        "subscription/userSubscription",
        "subscription/baseSize",
        "subscription/subscriberStatus",
        "subscription/getSubscriberChargingInfo",
        "subscription/notify",
        "subscription/getSubscriberList"
      ]
    },
    {
      "name": "otp",
      "tags": [
        "otp/request",
        "otp/verify"
      ]
    },
    {
      "name": "lbs",
      "tags": [
        "lbs/request"
      ]
    }
  ],
  "paths": {
    "/sms/send": {
      "post": {
        "tags": [
          "sms/send"
        ],
        "summary": "SMS Mobile Termination",
        "description": "",
        "operationId": "smsSendServices",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/sendServices"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfSendServices"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/sms/receive": {
      "post": {
        "tags": [
          "sms/receive"
        ],
        "summary": "SMS Mobile Origination",
        "description": "",
        "operationId": "smsReceiveServices",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/receiveServices"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfReceiveServices"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/sms/report": {
      "post": {
        "tags": [
          "sms/report"
        ],
        "summary": "Delivery Status Report Service",
        "description": "",
        "operationId": "reportServices",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/reportServices"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfReportServices"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/ussd/send": {
      "post": {
        "tags": [
          "ussd/send"
        ],
        "summary": "Ussd Send Services",
        "description": "",
        "operationId": "ussdSendServices",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/sendServices-2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfSendServices-2"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/ussd/receive": {
      "post": {
        "tags": [
          "ussd/receive"
        ],
        "summary": "Ussd Receive Services",
        "description": "",
        "operationId": "ussdReceiveServices",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/receiveServices-2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfReceiveServices-2"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/caas/direct/debit": {
      "post": {
        "tags": [
          "caas/otpGeneration"
        ],
        "summary": "OTP Generation",
        "description": "",
        "operationId": "caasOtpGeneration",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/directDebit"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfDirectDebit"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/caas/otp/verify": {
      "post": {
        "tags": [
          "caas/otpVerify"
        ],
        "summary": "OTP Verification",
        "description": "",
        "operationId": "caasOtpVerify",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/caasOtpVerify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfCaasOtpVerify"
                },
                "example": {
                  "applicationId": "APP_000XXX",
                  "password": "Your API Key",
                  "referenceNo": "8801442233146169943053700500040",
                  "otp": "xxxxxx",
                  "sourceAddress": "tel:8801973579363"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/caas/charger/notification/callback": {
      "post": {
        "tags": [
          "caas/chargingNotification"
        ],
        "summary": "Charging Notification",
        "description": "Request Body schema: application/json;charset=utf-8\nThere is no request to be triggered in order to obtain this charging notification. It will be automatically returned as a callback to the initial charging request once the transaction is completed within the system. (chargingNotificatio)",
        "operationId": "caasChargingNotification",
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfChargerNotificationCallback"
                },
                "example": {
                  "timeStamp": "15-Nov-2026 11:55",
                  "TotalAmount": "5.00",
                  "externalTrxId": "256091234",
                  "balanceDue": "0",
                  "statusDetail": "Request was Successfully processed, Due amount fully paid.",
                  "currency": "LKR",
                  "version": "1.0",
                  "internalTrxId": "9111511550014764",
                  "paidAmount": "5.00",
                  "referenceId": "8801422222550170004932307900016",
                  "statusCode": "S1000"
                }
              }
            }
          }
        }
      }
    },
    "/subscription/send": {
      "post": {
        "tags": [
          "subscription/userSubscription"
        ],
        "summary": "User Subscription",
        "description": "",
        "operationId": "userSubscription",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/userSubscription"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfUserSubscription"
                },
                "examples": {
                  "success": {
                    "summary": "Success",
                    "value": {
                      "version": "1.0.",
                      "statusCode": "S1000",
                      "statusDetail": "not registered",
                      "subscriptionStatus": "UNREGISTERED."
                    }
                  },
                  "E1347": {
                    "summary": "E1347 - Maximum active subscription limit reached",
                    "value": {
                      "version": "1.0",
                      "statusCode": "E1347",
                      "statusDetail": "Subscription request for tel:94716177301 could not be processed as the maximum active subscription limit of 20 has been reached. The subscriber must unsubscribe from an existing application before subscribing to a new one.",
                      "subscriptionStatus": "UNREGISTERED"
                    }
                  }
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/subscription/query-base": {
      "post": {
        "tags": [
          "subscription/baseSize"
        ],
        "summary": "Base Size",
        "description": "",
        "operationId": "baseSize",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/baseSize"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfBaseSize"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/subscription/getStatus": {
      "post": {
        "tags": [
          "subscription/subscriberStatus"
        ],
        "summary": "Subscriber Status",
        "description": "",
        "operationId": "subscriberStatus",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/subscriberStatus"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfSubscriberStatus"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/subscription/getSubscriberChargingInfo": {
      "post": {
        "tags": [
          "subscription/getSubscriberChargingInfo"
        ],
        "summary": "Get Subscriber Charging Info",
        "description": "",
        "operationId": "getSubscriberChargingInfo",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/getSubscriberChargingInfo"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfgetSubscriberChargingInfo"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/subscription/notify": {
      "post": {
        "tags": [
          "subscription/notify"
        ],
        "summary": "Subscriber Notifications",
        "description": "",
        "operationId": "subscriberNotify",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/subscriberNotify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfSubscriberNotify"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/subscription/getSubscriberList": {
      "post": {
        "tags": [
          "subscription/getSubscriberList"
        ],
        "summary": "Subscriber List",
        "description": "",
        "operationId": "getSubscriberList",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/getSubscriberList"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfgetSubscriberList"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/otp/request": {
      "post": {
        "tags": [
          "otp/request"
        ],
        "summary": "Request OTP ",
        "description": "",
        "operationId": "otpRequest",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/otpRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfOtpRequest"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/otp/verify": {
      "post": {
        "tags": [
          "otp/verify"
        ],
        "summary": "Verify OTP",
        "description": "",
        "operationId": "otpVerify",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/otpVerify"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfOtpVerify"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    },
    "/lbs/request": {
      "post": {
        "tags": [
          "lbs/request"
        ],
        "summary": "Request Location",
        "description": "",
        "operationId": "requestLocation",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/requestLocation"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/responseOfRequestLocation"
                }
              }
            }
          }
        },
        "x-code-samples": [
          {
            "lang": "Java",
            "source": "coming soon"
          },
          {
            "lang": "PHP",
            "source": "coming soon"
          },
          {
            "lang": "javaScript",
            "source": "coming soon"
          },
          {
            "lang": ".net",
            "source": "coming soon"
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.mspace.lk"
    }
  ],
  "components": {
    "schemas": {
      "type": {
        "allOf": [
          {
            "$ref": "#/components/schemas/index"
          },
          {
            "$ref": "#/components/schemas/index-2"
          },
          {
            "$ref": "#/components/schemas/index-3"
          },
          {
            "$ref": "#/components/schemas/index-4"
          },
          {
            "$ref": "#/components/schemas/index-5"
          },
          {
            "$ref": "#/components/schemas/index-6"
          }
        ]
      },
      "sendServices": {
        "type": "object",
        "required": [
          "version",
          "applicationId",
          "password",
          "message",
          "destinationAddresses"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "applicationId": {
            "type": "string",
            "example": "APP_999999",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "password",
            "description": "Used to authenticate the application originated message against the credentials of the service provider.\n\nEncoded, single value."
          },
          "message": {
            "type": "string",
            "example": "Hello",
            "description": "Content of the message that needs to be sent.\n\nMessages over the limit shall be broken up by the platform before sending"
          },
          "destinationAddresses": {
            "type": "array",
            "description": "List of destination addresses should be telephone numbers.(tel - for MSISDN).\n\ntel:94702725777.\n\nAddress can also have the value - tel: all\n\n which will in return be a message to the subscribed base of the application \n\nat least one should be specified\n\nNote : tel might be a masked number depending on the type of application",
            "items": {
              "type": "string",
              "example": "tel:94702725777"
            }
          },
          "sourceAddress": {
            "type": "string",
            "example": "77000",
            "description": "Address of the source.\n\nsourceAddress: tel:94702725777\n\n at least one will be specified"
          },
          "deliveryStatusRequest": {
            "type": "string",
            "enum": [
              0,
              1
            ],
            "example": "1",
            "description": "Indicates the need of a Delivery Status Report for the message.\n\n 0 - Delivery Report not required\n\n1 - Delivery Report Required"
          },
          "encoding": {
            "type": "string",
            "enum": [
              0,
              240,
              245
            ],
            "example": "245",
            "description": "Encoding scheme used in the message\n\nIf not specified taken as Text\n\nIf the encoding type is “Binary” then the message content will be represented as hex encoded.\n\n0 - Text\n\n240 - Flash SMS\n\n245 - Binary SMS"
          },
          "binaryHeader": {
            "type": "string",
            "format": "hexadecimal",
            "example": "526574697265206170706c69636174696f6e20616e642072656c6561736520524b7320696620666f756e642065787069726564",
            "description": "For advanced type of messages where the binary header shall be sent from the application"
          }
        }
      },
      "destinationResponses": {
        "type": "object",
        "description": "The list of responses for the full list of addresses.It will be a collection with individual entry for each element in the address list of the request.address,timeStamp - Processed Time stamp,messageId - Message Identifier,statusCode - Status Code,statusDetail – Status detail",
        "properties": {
          "timeStamp": {
            "type": "string",
            "example": "20190103165801"
          },
          "address": {
            "type": "string",
            "example": "tel:94702725777"
          },
          "messageId": {
            "type": "string",
            "example": "101901031657410007"
          },
          "statusCode": {
            "type": "string",
            "enum": [
              "S1000",
              "E1303",
              "E1308",
              "E1309",
              "E1311",
              "E1312",
              "E1313",
              "E1315",
              "E1317",
              "E1318",
              "E1319",
              "E1325",
              "E1331",
              "E1334",
              "E1335",
              "E1341",
              "E1342",
              "E1343",
              "E1601",
              "E1603"
            ],
            "description": "The status code for the entire request",
            "example": "S1000"
          },
          "statusDetail": {
            "type": "string",
            "example": "Success",
            "description": " The status detail for the entire request\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send request to application <application-id>. Please use a provisioned system to send request or contact system admin to provision the new IP. E1308  - Permanent charging error due to <specify_reason E.g., Insufficient Balance>.\n\n E1309  - Requested SMS service is not allowed for this application. Please check the issue with mSpace system administrator.\n\n E1311  - Mobile terminated SMS messages are not enabled. Check your NCS configuration in provisioning.\n\n E1312  - Request is Invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1315  - Cannot find the requested service SMS or it is not active.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1318  - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\n E1319  - Transaction limit for today has exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\n E1325  - Format of the address is invalid. Expected format is tel:94702725777.\n\n E1331  - < sourceAddress > is not allowed. Please use one of the values configured in alias configuration in the SLAs or send the request without < sourceAddres s>, so mSpace will use the default source address to send the message to subscriber.\n\n E1334  - SMS sent to < application name > application could not be processed as the message length is too long. Maximum message length allowed is < specify_max_limit >.\n\n E1335  - SMS sent to < application name > application could not be processed as the advertisement message length is too long. Maximum message length allowed for advertisements is < specify_max_adv_limit >.\n\n E1341  - Request failed. Errors occurred while sending the request for all the destinations.\n\n E1342  - MSISDN is black listed. Not authorized to use the application <application_name>.\n\n E1343  - MSISDN is not white listed. Only white list numbers are allowed to send messages at this state.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary System Error occurred while delivering your request "
          }
        }
      },
      "responseOfSendServices": {
        "type": "object",
        "required": [
          "version",
          "requestId",
          "statusCode",
          "statusDetail",
          "destinationResponses"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "requestId": {
            "type": "string",
            "example": "101901031657410007",
            "description": "Uniquely identifies a request within TAP"
          },
          "destinationResponses": {
            "type": "array",
            "description": "The list of responses for the full list of addresses\n\nIt will be a collection with individual entry for each element in the address list of the request.\n\n -Address\n\n - timeStamp - Processed Time stamp\n\n - messageId - Message Identifier\n\n - statusCode - Status Code\n\n - statusDetail – Status detail",
            "items": {
              "$ref": "#/components/schemas/destinationResponses"
            }
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request",
            "enum": [
              "S1000",
              "E1303",
              "E1308",
              "E1309",
              "E1311",
              "E1312",
              "E1313",
              "E1315",
              "E1317",
              "E1318",
              "E1319",
              "E1325",
              "E1331",
              "E1334",
              "E1335",
              "E1341",
              "E1342",
              "E1343",
              "E1601",
              "E1603"
            ]
          },
          "statusDetail": {
            "type": "string",
            "example": "Success.",
            "description": " Description of the status for the entire request.\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send requests to application <application-id>. Please use a provisioned system to send requests or contact system admin to provision the new IP.\n\n E1308  - Permanent charging error due to <specify_reason E.g., Insufficient Balance>.\n\n E1309  - Requested SMS service is not allowed for this application. Please check the issue with mSpace system administrator.\n\n E1311  - Mobile terminated SMS messages are not enabled. Check your NCS configuration in provisioning.\n\n E1312  - Request is invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1315  - Cannot find the requested service SMS or it is not active.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1318  - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\n E1319  - Transaction limit for today has exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\n E1325  - Format of the address is invalid. Expected format is tel:94702725777.\n\n E1331  - < sourceAddress > is not allowed. Please use one of the values configured in alias configuration in the SLAs or send the request without < sourceAddress>, so mSpace will use the default source address to send the message to subscriber.\n\n E1334  - SMS sent to < application name > application could not be processed as the message length is too long. Maximum message length allowed is < specify_max_limit >.\n\n E1335  - SMS sent to < application name > application could not be processed as the advertisement message length is too long. Maximum message length allowed for advertisements is < specify_max_adv_limit >.\n\n E1341  - Request failed.An error occurred while sending the request for all the destinations.\n\n E1342  - MSISDN is black listed. Not authorized to use the application <application_name>.\n\n E1343  - MSISDN is not white listed. Only white listed numbers are allowed to send messages at this state.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary system error occurred while delivering your request "
          }
        }
      },
      "receiveServices": {
        "type": "object",
        "required": [
          "version",
          "applicationId",
          "sourceAddress",
          "message",
          "requestId",
          "encoding"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "applicationId": {
            "type": "string",
            "example": "APP_000029",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "sourceAddress": {
            "type": "string",
            "example": "tel:94702725777",
            "description": "Address of the source.\n\nsourceAddress: tel:94702725777\n\n at least one will be specified"
          },
          "message": {
            "type": "string",
            "description": "Content of the message sent by the user"
          },
          "requestId": {
            "type": "string",
            "example": "APP_000001",
            "description": "Uniquely identifies a request within TAP"
          },
          "encoding": {
            "type": "string",
            "enum": [
              0,
              240,
              245
            ],
            "example": "0",
            "description": "Encoding scheme used in the message.\n\nIf the encoding type is “Binary” then the message content will be represented as hex encoded.\n\n 0 - Text\n\n 240 - Flash SMS\n\n 245 - Binary SMS\n\n "
          }
        }
      },
      "responseOfReceiveServices": {
        "type": "object",
        "required": [
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request",
            "enum": [
              "S1000",
              "E1303",
              "E1308",
              "E1309",
              "E1311",
              "E1312",
              "E1313",
              "E1315",
              "E1317",
              "E1318",
              "E1319",
              "E1325",
              "E1331",
              "E1334",
              "E1335",
              "E1341",
              "E1342",
              "E1343",
              "E1601",
              "E1603"
            ]
          },
          "statusDetail": {
            "type": "string",
            "example": "Success.",
            "description": " Description of the status for the entire request.\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send requests to application <application-id>. Please use a provisioned system to send requests or contact system admin to provision the new IP.\n\n E1308  - Permanent charging error due to <specify_reason E.g., Insufficient Balance>.\n\n E1309  - Requested SMS service is not allowed for this application. Please check the issue with mSpace system administrator.\n\n E1311  - Mobile terminated SMS messages are not enabled. Check your NCS configuration in provisioning.\n\n E1312  - Request is invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1315  - Cannot find the requested service SMS or it is not active.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1318  - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\n E1319  - Transaction limit for today has exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\n E1325  - Format of the address is invalid. Expected format is tel:94702725777.\n\n E1331  - < sourceAddress > is not allowed. Please use one of the values configured in alias configuration in the SLAs or send the request without < sourceAddress>, so mSpace will use the default source address to send the message to subscriber.\n\n E1334  - SMS sent to < application name > application could not be processed as the message length is too long. Maximum message length allowed is < specify_max_limit >.\n\n E1335  - SMS sent to < application name > application could not be processed as the advertisement message length is too long. Maximum message length allowed for advertisements is < specify_max_adv_limit >.\n\n E1341  - Request failed.An error occurred while sending the request for all the destinations.\n\n E1342  - MSISDN is black listed. Not authorized to use the application <application_name>.\n\n E1343  - MSISDN is not white listed. Only white listed numbers are allowed to send messages at this state.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary system error occurred while delivering your request "
          }
        },
        "reportServices": {
          "type": "object",
          "required": [
            "destinationAddress",
            "timeStamp",
            "requestId",
            "deliveryStatus"
          ],
          "properties": {
            "destinationAddress": {
              "type": "string",
              "example": "tel:94712323232",
              "description": "Address of the subscriber"
            },
            "timeStamp": {
              "type": "string",
              "example": "20120113082110",
              "description": "The timestamp sent from the SMS.\n\"yyMMddHHmm\"\nyy – last two digits of the year (00-99)\nMM – month (01-12)\ndd – day (01-31)\nHH – hour (00-23)\nmm- minute (00-59)"
            },
            "requestId": {
              "type": "string",
              "example": "MSG_000111",
              "description": "Uniquely identifies a request within TAP"
            },
            "deliveryStatus": {
              "type": "string",
              "enum": [
                "DELIVERED",
                "EXPIRED",
                "DELETED",
                "UNDELIVERABLE",
                "ACCEPTED",
                "UNKNOWN",
                "REJECTED"
              ],
              "example": "DELIVERED",
              "description": "Enum from TAP to Application:DELIVERED, EXPIRED, DELETED,UNDELIVERABLE, ACCEPTED,UNKNOWN, REJECTED"
            }
          }
        }
      },
      "reportServices": {
        "type": "object",
        "required": [
          "destinationAddress",
          "timeStamp",
          "requestId",
          "deliveryStatus"
        ],
        "properties": {
          "destinationAddress": {
            "type": "string",
            "example": "tel:94702725777",
            "description": "Address of the subscriber"
          },
          "timeStamp": {
            "type": "string",
            "example": "20120113082110",
            "description": "The timestamp sent from the SMS\n\n\"yyMMddHHmm\"\n\n yy – last two digits of the year (00-99)\n\n MM – month (01-12)\n\ndd – day (01-31)\n\nHH – hour (00-23)\n\n mm- minute (00-59)\n\n"
          },
          "requestId": {
            "type": "string",
            "example": "MSG_000111",
            "description": "Uniquely identifies a request within TAP"
          },
          "deliveryStatus": {
            "type": "string",
            "enum": [
              "DELIVERED",
              "EXPIRED",
              "DELETED",
              "UNDELIVERABLE",
              "ACCEPTED",
              "UNKNOWN",
              "REJECTED"
            ],
            "example": "DELIVERED",
            "description": "Enum from TAP to Application:\n\n DELIVERED ,EXPIRED ,DELETED ,UNDELIVERABLE ,ACCEPTED ,UNKNOWN ,REJECTED"
          }
        }
      },
      "responseOfReportServices": {
        "type": "object",
        "required": [
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request",
            "enum": [
              "S1000",
              "E1303",
              "E1308",
              "E1309",
              "E1311",
              "E1312",
              "E1313",
              "E1315",
              "E1317",
              "E1318",
              "E1319",
              "E1325",
              "E1331",
              "E1334",
              "E1335",
              "E1341",
              "E1342",
              "E1343",
              "E1601",
              "E1603"
            ]
          },
          "statusDetail": {
            "type": "string",
            "example": "Success.",
            "description": " Description of the status for the entire request.\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send requests to application <application-id>. Please use a provisioned system to send requests or contact system admin to provision the new IP.\n\n E1308  - Permanent charging error due to <specify_reason E.g., Insufficient Balance>.\n\n E1309  - Requested SMS service is not allowed for this application. Please check the issue with mSpace system administrator.\n\n E1311  - Mobile terminated SMS messages are not enabled. Check your NCS configuration in provisioning.\n\n E1312  - Request is invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1315  - Cannot find the requested service SMS or it is not active.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1318  - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\n E1319  - Transaction limit for today has exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\n E1325  - Format of the address is invalid. Expected format is tel:94702725777.\n\n E1331  - < sourceAddress > is not allowed. Please use one of the values configured in alias configuration in the SLAs or send the request without < sourceAddress>, so mSpace will use the default source address to send the message to subscriber.\n\n E1334  - SMS sent to < application name > application could not be processed as the message length is too long. Maximum message length allowed is < specify_max_limit >.\n\n E1335  - SMS sent to < application name > application could not be processed as the advertisement message length is too long. Maximum message length allowed for advertisements is < specify_max_adv_limit >.\n\n E1341  - Request failed.An error occurred while sending the request for all the destinations.\n\n E1342  - MSISDN is black listed. Not authorized to use the application <application_name>.\n\n E1343  - MSISDN is not white listed. Only white listed numbers are allowed to send messages at this state.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary system error occurred while delivering your request "
          }
        }
      },
      "sendServices-2": {
        "type": "object",
        "required": [
          "version",
          "applicationId",
          "password",
          "sessionId",
          "message",
          "ussdOperation",
          "destinationAddress"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "applicationId": {
            "type": "string",
            "example": "APP_000001",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "message": {
            "type": "string",
            "example": "1. Press One\n 2. Press two\n 3. Press three\n 4. Exit\n",
            "description": "Content of the message sent by the application"
          },
          "password": {
            "type": "string",
            "example": "password",
            "description": "Used to authenticate the application originated message against the credentials of the service provider.\n\nEncoded, single value."
          },
          "sessionId": {
            "type": "string",
            "example": "1330929317043",
            "description": "Unique number that USSD Gateway assigns to the application for the duration of the session. This number will be maintained in all the messages throughout a single session. "
          },
          "ussdOperation": {
            "type": "string",
            "enum": [
              "mo-init",
              "mo-cont",
              "mt-init",
              "mt-cont",
              "mt-fin"
            ],
            "example": "mt-cont",
            "description": "USSD operation\n\n mo-cont:TAP to assign for and USSD message originated from subscriber, that comes after a init\n\nnmt-init: App to assign when a USSD session is initiated by an application\n\nmt-cont: App to assign for any USSD message originated from application, that comes after a init\n\nmt-fin: App to assign when session ends in final message\n\nData type will be string where the operation name itself will be used in the parameter value."
          },
          "destinationAddress": {
            "type": "string",
            "description": "Destination address should be a telephone number (tel - for MSISDN)\n\nNote : tel might be a masked number depending on the type of application ",
            "example": "tel:94702725777 "
          },
          "encoding": {
            "type": "string",
            "enum": [
              440
            ],
            "example": "440",
            "description": "Encoding scheme used in the message \n\n440 - Plain ASCII characters"
          }
        }
      },
      "responseOfSendServices-2": {
        "type": "object",
        "required": [
          "version",
          "requestId",
          "timeStamp",
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "requestId": {
            "type": "string",
            "example": "101901031657410007",
            "description": "Uniquely identifies a request within TAP"
          },
          "timeStamp": {
            "type": "string",
            "example": "20190103165801",
            "description": "Processed timestamp "
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "enum": [
              "S1000",
              "E1303",
              "E1308",
              "E1309",
              "E1312",
              "E1313",
              "E1315",
              "E1317",
              "E1318",
              "E1319",
              "E1325",
              "E1334",
              "E1341",
              "E1342",
              "E1343",
              "E1601",
              "E1603"
            ],
            "description": "The status code for the entire request"
          },
          "statusDetail": {
            "type": "string",
            "example": "Success.",
            "description": "Description of the status for the entire request.\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send requests to application <application-id>. Please use a provisioned system to send requests or contact system admin to provision the new IP.\n\n E1308  - Permanent charging error due to<specify_reason E.g., Insufficient Balance>.\n\n E1309  - Requested SMS service is not allowed for this Application. Please check the issue with Idea Mart system administrator.\n\n E1312  - Request is invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1315  - Cannot find the requested service SMS or it is not active.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1318  - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\n E1319  - Transaction limit for today has exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\n E1325  - Format of the address is invalid. Expected format is tel:94716177301.\n\n E1334  - SMS sent to < application name > application could not be processed as the message length is too long. Maximum message length allowed is < specify_max_limit >.\n\n E1341  - Request failed.An error occurred while sending the request for all the destinations.\n\n E1342  - MSISDN is black listed. Not authorized to use the application <application_name>.\n\n E1343  - MSISDN is not white listed. Only white list numbers are allowed to send messages at this state.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary system error occurred while delivering your request "
          }
        }
      },
      "receiveServices-2": {
        "type": "object",
        "required": [
          "version",
          "applicationId",
          "sessionId",
          "ussdOperation",
          "sourceAddress",
          "message",
          "requestId",
          "encoding"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "applicationId": {
            "type": "string",
            "example": "APP_000029",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "message": {
            "type": "string",
            "example": "*141#",
            "description": "Content of the message sent by the user "
          },
          "requestId": {
            "type": "string",
            "example": "1330933229901",
            "description": "Uniquely identifies a request within TAP"
          },
          "sessionId": {
            "type": "string",
            "example": "1330929317043",
            "description": "Unique number that USSD Gateway assigns to the application for the duration of the session. This number will be maintained in all the messages throughout a single session. "
          },
          "ussdOperation": {
            "type": "string",
            "enum": [
              "mo-init",
              "mo-cont",
              "mt-init",
              "mt-cont",
              "mt-fin"
            ],
            "example": "mt-cont",
            "description": "USSD operation\n\nmo-cont:TAP to assign for and USSD message originated from subscriber, that comes after a init\n\nmt-init: App to assign when a USSD session is initiated by an application\n\nmt-cont: App to assign for any USSD message originated from application, that comes after a init\n\nmt-fin: App to assign when session ends in final message"
          },
          "sourceAddress": {
            "type": "string",
            "example": "tel:94702725777",
            "description": "Address of the source.\n\nsourceAddress:tel:94702725777\n\n at least one will be specified"
          },
          "vlrAddress": {
            "type": "string",
            "example": "tel:94702725777",
            "description": "VLR(Visitor Location Register) address of the sender"
          },
          "encoding": {
            "type": "string",
            "enum": [
              440
            ],
            "example": "440",
            "description": "Encoding scheme used in the message \n\n440 - Plain ASCII characters"
          }
        }
      },
      "responseOfReceiveServices-2": {
        "type": "object",
        "required": [
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "enum": [
              "S1000",
              "E1303",
              "E1308",
              "E1309",
              "E1312",
              "E1313",
              "E1315",
              "E1317",
              "E1318",
              "E1319",
              "E1325",
              "E1334",
              "E1341",
              "E1342",
              "E1343",
              "E1601",
              "E1603"
            ],
            "description": "The status code for the entire request"
          },
          "statusDetail": {
            "type": "string",
            "example": "Success",
            "description": "Description of the status for the entire request.\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send requests to application <application-id>. Please use a provisioned system to send requests or contact system admin to provision the new IP.\n\n E1308  - Permanent charging error due to<specify_reason E.g., Insufficient Balance>.\n\n E1309  - Requested SMS service is not allowed for this Application. Please check the issue with Idea Mart system administrator.\n\n E1312  - Request is invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1315  - Cannot find the requested service SMS or it is not active.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1318  - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\n E1319  - Transaction limit for today has exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\n E1325  - Format of the address is invalid. Expected format is tel:94716177301.\n\n E1334  - SMS sent to < application name > application could not be processed as the message length is too long. Maximum message length allowed is < specify_max_limit >.\n\n E1341  - Request failed.An error occurred while sending the request for all the destinations.\n\n E1342  - MSISDN is black listed. Not authorized to use the application <application_name>.\n\n E1343  - MSISDN is not white listed. Only white list numbers are allowed to send messages at this state.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary system error occurred while delivering your request "
          }
        }
      },
      "directDebit": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "externalTrxId",
          "amount",
          "paymentInstrumentName",
          "subscriberId",
          "Currency"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_000XXX",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "a07118cda5215fc6d01db5b2ab848edd",
            "description": "This API key will be sent to your registered email address on the platform upon application approval."
          },
          "externalTrxId": {
            "type": "string",
            "example": "256091232",
            "description": "This is the transaction ID generated by the application to map the request with the response. This is needed to provide information when there are inquiries related to a transaction.\n\nOnly a single value can be sent per request."
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:8801973579363",
            "description": "This is the MSISDN of the subscriber to be charged. This is a unique identifier. Eg: tel: 8801975355595 Note: This can be a masked number depending on the type of the application.\n\nOnly a single value can be sent per request."
          },
          "paymentInstrumentName": {
            "type": "string",
            "example": "Mobile Account",
            "enum": [
              "Mobile Account"
            ],
            "description": "The name of the payment instrument.\n\nOnly a single value can be sent per request."
          },
          "amount": {
            "type": "string",
            "example": "5.00",
            "description": "Amount to be reserved for charging.\n\nOnly a single value can be sent per request."
          },
          "Currency": {
            "type": "string",
            "example": "BDT",
            "description": "Currency unit of the amount.\n\nOnly a single value can be sent per request.\n\nOnly 'BDT' is allowed."
          },
          "applicationHash": {
            "type": "string",
            "example": "a7f5f354",
            "description": "A unique hash value generated by the SP application to ensure request integrity and authenticity. This value shall be generated using a mutually agreed hashing algorithm (e.g., SHA-256) based on agreed request parameters.\n\nOnly a single value can be sent per request."
          }
        }
      },
      "responseOfDirectDebit": {
        "type": "object",
        "required": [
          "timeStamp",
          "externalTrxId",
          "statusDetail",
          "requestCorrelator",
          "internalTrxId",
          "statusCode"
        ],
        "properties": {
          "timeStamp": {
            "type": "string",
            "example": "2023-11-08T08:02:16.913Z",
            "description": "The time that the request was sent"
          },
          "externalTrxId": {
            "type": "string",
            "example": "256091232",
            "description": "This is the transaction ID generated by the application to map the request with the response.\n\nOnly a single value can be sent per request."
          },
          "statusDetail": {
            "type": "string",
            "example": "Request successfully proceed. OTP will send to user.",
            "description": "Detailed description explaining the status of the entire request"
          },
          "requestCorrelator": {
            "type": "string",
            "example": "8801442233146169943053700500040",
            "description": "The unique identifier used internally within the system to identify the transaction"
          },
          "internalTrxId": {
            "type": "string",
            "example": "9110808020001876",
            "description": "The transaction ID generated by the service provider which can be used to track the transaction"
          },
          "statusCode": {
            "type": "string",
            "example": "P1003",
            "enum": [
              "P1003",
              "E1300",
              "E1301",
              "E1302",
              "E1303",
              "E1312",
              "E1313",
              "E1315",
              "E1316",
              "E1325",
              "E1329",
              "E1330",
              "E1342",
              "E1343",
              "E1371",
              "E1601",
              "E1603",
              "E1604",
              "E1607",
              "E1608",
              "E1852"
            ],
            "description": "This code will show the status of the request.<br/>This code will show the status of the request. If the code is in the format for “E1xxx”<br/>P1003: Successfully sent OTP to user.<br/>E1300: Unknown/unclassified error<br/>E1301: Requested ApplicationID is not allowed within the System for operator<br/>E1302: Requested SP is not allowed within the System<br/>E1303: IP address, which the request originates from, is not listed within the allowed-host-address list.<br/>E1312: Invalid request<br/>E1313: Authentication failure<br/>E1315: NCS system unavailable<br/>E1316: Connection to app refused<br/>E1325: Format of the address is invalid<br/>E1329: Charging amount too high<br/>E1330: Charging amount too low<br/>E1342: Your phone number is blacklisted to use this application<br/>E1343: Non white listed mobile number accessing services of application cloud.<br/>E1371: App does not accept payments from given Payment Instrument<br/>E1601: An unexpected error has occurred<br/>E1603: Temporary system error<br/>E1604: Endpoint configuration missing<br/>E1607: Unable to read application response<br/>E1608: SLA configuration error<br/>E1852: Maximum number of OTP attempts had reached"
          }
        }
      },
      "userSubscription": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "subscriberId",
          "action"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_999999",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "95904999aa8edb0c038b3295fdd271de",
            "description": "Used to authenticate the application originated message against the credentials of the service provider.\n\nEncoded, single value."
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:94716177301",
            "description": "This can be the MSISDN of the subscriber to be charged. This is a unique identifier.\n\ntel: is for MSISDN\n\nSubcriber: tel:94716177301\n\n Note: tel might be a masked number depending on the type of the application\n\nOnly a single value can be sent per request."
          },
          "action": {
            "type": "string",
            "enum": [
              0,
              1
            ],
            "example": "0",
            "description": " 0 -user unsubscription\n\n 1 -user subscription\n\n "
          }
        }
      },
      "responseOfUserSubscription": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "statusDetail",
          "subscriptionStatus"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0.",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request.\n\nNote: When the request is successful, statusCode will be S1000."
          },
          "statusDetail": {
            "type": "string",
            "example": "not registered",
            "description": "Description of the status for the entire request.\n\nS1000  - Request was successfully processed.\n\nE1346  - Subscription request for < MSISDN > could not be processed as the subscription rate limit has been exceeded. Maximum of < MAX_SUBS_PER_WINDOW > subscription attempts allowed within < WINDOW_SECONDS > seconds. Please try again after < retryAfter > seconds.\n\nE1347  - Subscription request for < MSISDN > could not be processed as the maximum active subscription limit of < MAX_ACTIVE_SUBS > has been reached. The subscriber must unsubscribe from an existing application before subscribing to a new one.\n\nNote: E1346 and E1347 are returned only for subscription requests (action = 1)."
          },
          "subscriptionStatus": {
            "type": "string",
            "example": "UNREGISTERED.",
            "description": "Status of the subscription eg:UNREGISTERED,REGISTERED"
          }
        }
      },
      "baseSize": {
        "type": "object",
        "required": [
          "applicationId",
          "password"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_000201",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "39a8d1cb245029d0560619a2b388669c",
            "description": "Used to authenticate the application originated message against the credentials of the service provider.\n\nEncoded, single value."
          }
        }
      },
      "responseOfBaseSize": {
        "type": "object",
        "required": [
          "version",
          "baseSize",
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "baseSize": {
            "type": "string",
            "example": "0",
            "description": "Number of registered users"
          },
          "version": {
            "type": "string",
            "example": "1.0.",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request."
          },
          "statusDetail": {
            "type": "string",
            "example": "Success.",
            "description": "Description of the status for the entire request."
          }
        }
      },
      "subscriberStatus": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "subscriberId"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_999999",
            "description": "Unique identification of the application within the platform"
          },
          "password": {
            "type": "string",
            "example": "95904999aa8edb0c038b3295fdd271de",
            "description": "Password given when provisioning the application"
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:94716177301",
            "description": "This is the MSISDN of the subscriber to be charged"
          }
        }
      },
      "responseOfSubscriberStatus": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "statusDetail",
          "subscriptionStatus"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0.",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request."
          },
          "statusDetail": {
            "type": "string",
            "example": "Request was successfully processed",
            "description": "Description of the status for the entire request."
          },
          "subscriptionStatus": {
            "type": "string",
            "example": "UNREGISTERED.",
            "description": "Status of the subscription INITIAL,REG_PENDING,TRIAL,\n\n REGISTERED,UNREGISTERED and TEMPORARY_BLOCKED"
          }
        }
      },
      "getSubscriberChargingInfo": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "subscriberId"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_102672",
            "description": "Unique identification of the application within the platform"
          },
          "password": {
            "type": "string",
            "example": "cf2b9e361c13bc54b86d3c8180b0582fd",
            "description": "Password given when provisioning the application"
          },
          "subscriberIds": {
            "type": "string",
            "example": [
              "tel: 94712342345",
              "tel: 94712678845",
              "tel: 9471982563"
            ],
            "description": "MSISDNs of the list of subscribers. Eg: [tel: 94712342345, tel: 94712678845, tel:9471982563]\n\n If the application accepts masked numbers, list of\n\n masked numbers must be communicated in this parameter\n\n List can contain maximum of 10 MSISDNs per request"
          }
        }
      },
      "subscriberInfo": {
        "type": "object",
        "required": [
          "subscriberId"
        ],
        "properties": {
          "subscriberId": {
            "type": "string",
            "example": "tel:94712342345",
            "description": "MSISDN of the subscriber.\n\n If the application accepts masked numbers, \n\n list of masked numbers must be communicated in this parameter\n\n THIS IS A MANDATORY FILED"
          },
          "subscriptionStatus": {
            "type": "string",
            "example": "REGISTERED",
            "description": "Status of the subscription \n\n Eg: INITIAL,\n\n REG_PENDING, TRIAL, REGISTERED,\n\n UNREGISTERED and TEMPORARY_BLOCKED"
          },
          "lastChargedDate": {
            "type": "string",
            "example": "2020-01-23 22:03:22",
            "description": "The successful last charged date of the subscriber\n\n in the format of YYYY-MM-DD hh:mm:ss"
          },
          "lastChargedAmount": {
            "type": "string",
            "example": "30.00 LKR",
            "description": "The successful last charged amount for the\n\n subscriber with the currency code"
          },
          "numberType": {
            "type": "string",
            "example": "postpaid",
            "description": "Denotes whether the subscriber is prepaid or postpaid"
          },
          "statusCode": {
            "type": "string",
            "description": "Success or error code for each subscriber and for\n\n the entire request",
            "example": "S1000"
          },
          "statusDetail": {
            "type": "string",
            "example": "Request was successfully processes"
          }
        }
      },
      "responseOfgetSubscriberChargingInfo": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": ""
          },
          "destinationResponses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/subscriberInfo"
            }
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request"
          },
          "statusDetail": {
            "type": "string",
            "example": "Success.",
            "description": " Below table provides information on different subscription statuses returned \n\n by the getSubscriptionChargingInfo service.\n\n INITIAL - Subscription request is sent to the system. The subscription request\n\n might not be completed may be due to a system error. Not even the charging\n\n call is made during this instance.\n\n Parameters returns in response : subscriberId,subscriptionStatus,\n\n numberType,statusCode,statusDetail\n\n \n\n REG_PENDING - Subscription request is made and charging request is also sent\n\n but charging is not yet success.(Eg: Charging response not yet received from the IN,\n\n Insufficient balance)\n\n Parameters returns in response : subscriberId,subscriptionStatus,\n\n numberType,statusCode,statusDetail\n\n TRIAL - Subscription request is made and the platform allows subscribers to use\n\n the service without charging as they have a free trial period enabled.\n\n Parameters returns in response : subscriberId,subscriptionStatus,\n\n numberType,statusCode,statusDetail\n\n REGISTERED - Subscription request is made, charging is successful and the\n\n subscriber can receive the service.If the application registered to is a free\n\n application lastChargedDate to be omitted and lastChargedAmount to be sent as\n\n 0.00 LKR\n\n Parameters returns in response : subscriberId,subscriptionStatus,\n\n lastChargedDate,lastChargedAmount,numberType,statusCode,statusDetail\n\n UNREGISTERED - Subscription request is made and unsubscription is also\n\n done by the subscriber for the particular service.If the application unregistered\n\n from is a free application lastChargedDate to be omitted and lastChargedAmount to be\n\n sent as 0.00 LKR\n\n Parameters returns in response : subscriberId,subscriptionStatus, lastChargedDate,lastChargedAmount,numberType,statusCode,statusDetail\n\n TEMPORARY_BLOCKED - Subscription request is made initial charging was\n\n also successful and was in the registered status once but\n\n recursive charging has failed\n\n (Eg: Due to insufficient balance) and service is temporarily blocked for this subscriber\n\n If the application registered to is a free\n\n application lastChargedDate to be omitted and lastChargedAmount to be sent as 0.00 LKR\n\n Parameters returns in response : subscriberId,subscriptionStatus,lastChargedDate,lastChargedAmount,\n\n numberType,statusCode,statusDetail\n\n The status detail for the entire request\n\n S1000  - Process completed successfully for all the available destination numbers.\n\n E1303  - IP address from which this request originated is not provisioned to send request to application <application-id>. Please use a provisioned system to send request or contact system admin to provision the new IP.\n\n E1312  - Request is Invalid. <specify_the_reason> Refer the TAP NBL API Developer Guide for the mandatory fields and correct format of the request.\n\n E1313  - Authentication failed. No such active application with applicationId <application-id>, or no active service provider or the given password in the request is invalid.\n\n E1317  - < MSISDN > in request is invalid or not allowed.\n\n E1325  - Format of the address is invalid. Expected format is tel: 94712342345.\n\n E1601  - System experienced an unexpected error.\n\n E1603  - Temporary System Error occurred while delivering your request "
          }
        }
      },
      "subscriberNotify": {
        "type": "object",
        "required": [
          "timeStamp",
          "version",
          "password",
          "applicationId",
          "password",
          "subscriberId",
          "frequency",
          "status"
        ],
        "properties": {
          "timeStamp": {
            "type": "string",
            "example": "20120113082110",
            "description": "The timestamp sent from the SMS.\n\"yyMMddHHmm\"\nyy – last two digits of the year (00-99)\nMM – month (01-12)\ndd – day (01-31)\nHH – hour (00-23)\nmm- minute (00-59)"
          },
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\n\nIf version is specified in the request, same version must be sent in the response.\n\nIf version is not specified in the request, the latest version will be specified in the response."
          },
          "applicationId": {
            "type": "string",
            "example": "APP_999999",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "95904999aa8edb0c038b3295fdd271de",
            "description": "Used to authenticate the application originated message against the credentials of the service provider.\n\nEncoded, single value."
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:94716177301",
            "description": "This can be the MSISDN of the subscriber to be charged. This is a unique identifier.\n\ntel:94716177301 is for MSISDN\n\nSubcriber: tel:94716177301\n\n Note: tel might be a masked number depending on the type of the application\n\nOnly a single value can be sent per request."
          },
          "frequency": {
            "type": "string",
            "enum": [
              "daily",
              "weekly",
              "monthly",
              "yearly"
            ],
            "example": "monthly",
            "description": "Frequency of notifications being sent"
          },
          "status": {
            "type": "string",
            "example": "REGISTERED.",
            "description": "Status of the subscription eg:UNREGISTERED,REGISTERED"
          }
        }
      },
      "responseOfSubscriberNotify": {
        "type": "object",
        "required": [
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request."
          },
          "statusDetail": {
            "type": "string",
            "example": "Request was successfully processed",
            "description": "Description of the status for the entire request."
          }
        }
      },
      "getSubscriberList": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "requestPage"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_102672",
            "description": "Unique identification of the application within the platform"
          },
          "password": {
            "type": "string",
            "example": "cf2b9e361c13bc54b86d3c8180b0582fd",
            "description": "Password given when provisioning the application"
          },
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version"
          },
          "requestPage": {
            "type": "Integer",
            "example": 2,
            "description": "The specific page number from a list of pages containing subscription notifications."
          }
        }
      },
      "subscribersData": {
        "type": "object",
        "required": [
          "subscriberId"
        ],
        "properties": {
          "subscriberId": {
            "type": "string",
            "example": "tel: 94712342345",
            "description": "MSISDN of the subscriber\n\n Eg: tel: 94712342345\n\n If the application accepts masked numbers, list of masked numbers must be communicated in this parameter"
          },
          "subscriptionStatus": {
            "type": "string",
            "example": "REGISTERED",
            "description": "Status of the subscription Eg: TRIAL, REGISTERED and TEMPORARY_BLOCKED"
          },
          "lastChargedDate": {
            "type": "string",
            "example": "2020-01-23 22.03.22",
            "description": "The successful last charged date of the subscriber in the format of  \"YYYY-MM-DD\" \"hh:mm:ss\"\n"
          },
          "lastChargedAmount": {
            "type": "string",
            "example": "30.00 LKR",
            "description": "The successful last charged amount for the subscriber with the currency code"
          }
        }
      },
      "responseOfgetSubscriberList": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "statusDetail",
          "nextPageNumber",
          "moreDataAvailable",
          "subscriberId"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc. If version is specified in the request, same version must be sent in the response. If version is not specified in the request, the latest version will be specified in the response"
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "enum": [
              "S1000",
              "S1001",
              "E1100",
              "E1102",
              "E1103",
              "E1104",
              "E1105",
              "E1106",
              "E1107"
            ],
            "description": "Succes or error code for each subscriber and for the entire request \n\n\n"
          },
          "statusDetail": {
            "type": "string",
            "example": "Request was successfully processed",
            "description": "Description corresponding to the status code \n\n S1000 Request Was Successfully Processed.\n\n S1001 No Subscribers Found\n\n E1100 System Experienced an Unexpected Error.\n\n E1102 Service Provider Is Not In Active Status.\n\n E1103 Request Parameters are Invalid. Refer the API Documentation\n\n E1104 Application is Not in Active or Limited Production Status.\n\n E1105 TPS Exceeded\n\n E1106 Invalid Request Page, Page Number Should Be 1 Or Greater\n\n E1107 Request Is Invalid.\n\n Refer The API Documentation For The Mandatory Fields And Correct Format Of The Request.\n\n "
          },
          "nextPageNumber": {
            "type": "Integer",
            "example": 3,
            "description": "Display the next page number available. If there is no page available next, -1 will be displayed."
          },
          "moreDataAvailable": {
            "type": "Boolean",
            "example": "true",
            "description": "Indicates if there is more data available"
          },
          "subscribers": {
            "$ref": "#/components/schemas/subscribersData"
          }
        }
      },
      "applicationMetaData": {
        "type": "object",
        "properties": {
          "client": {
            "type": "ENUM",
            "example": "MOBILEAPP",
            "description": "Client type. values will be web browser or mobile app"
          },
          "device": {
            "type": "string",
            "example": "Samsung S10",
            "description": "Type/OS of device iPhone 6,Galaxy S5,PC, etc."
          },
          "os": {
            "type": "string",
            "example": "android 8",
            "description": "OS/Device version Android 6, iOS 5, Windows 10"
          },
          "appCode": {
            "type": "string",
            "description": "If you use app in store, your app identifier. If you use the web browser, web link",
            "example": "https://play.google.com/store/apps/details?id=lk"
          }
        }
      },
      "otpRequest": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "subscriberId"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_000375",
            "description": "ID of the application"
          },
          "password": {
            "type": "string",
            "example": "a07118cda5215fc6d01db5b2ab848edd",
            "description": "Password/API key given to uniquely identify the application"
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:94716177301",
            "description": "Mobile number of the end consumer"
          },
          "applicationHash": {
            "type": "string",
            "example": "abcdefgh",
            "description": "Hash string to determine which verification messages to send to your app."
          },
          "applicationMetaData": {
            "$ref": "#/components/schemas/applicationMetaData"
          }
        }
      },
      "responseOfOtpRequest": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "referenceNo",
          "statusDetail"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version"
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request.\n\n Note: When the request is successful, statusCode will be S1000."
          },
          "referenceNo": {
            "type": "string",
            "example": "213561321321613",
            "description": "Reference key to uniquely Identify the request"
          },
          "statusDetail": {
            "type": "string",
            "example": "Success",
            "description": " The status detail for the entire request\n\n S1000  - Successfully send OTP challenge to [msisdn/sender ID]\n\n E1853  - Maximum number of OTP requests reached for [msisdn/sender ID]\n\n E1856  - Invalid Request\n\n E1857  - Internal Server Error Occur\n\n E1301  - Requested ApplicationID is not allowed within the System for operator unknown.\n\n E1346  - Subscription request for < MSISDN > could not be processed as the subscription rate limit has been exceeded. Maximum of < MAX_SUBS_PER_WINDOW > subscription attempts allowed within < WINDOW_SECONDS > seconds. Please try again after < retryAfter > seconds.\n\n E1347  - Subscription request for < MSISDN > could not be processed as the maximum active subscription limit of < MAX_ACTIVE_SUBS > has been reached. The subscriber must unsubscribe from an existing application before subscribing to a new one.\n\n Note: When E1346 or E1347 is returned, no OTP is sent to the subscriber.\n\n "
          }
        }
      },
      "otpVerify": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "referenceNo",
          "otp"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_000375",
            "description": "ID of the application"
          },
          "password": {
            "type": "string",
            "example": "a07118cda5215fc6d01db5b2ab848edd",
            "description": "Password/API key given to uniquely identify the application"
          },
          "referenceNo": {
            "type": "string",
            "example": "213561321321613",
            "description": "Reference number returned with request OTP API"
          },
          "otp": {
            "type": "string",
            "example": "123564",
            "description": "One time password (OTP) to be used to MSISDN verification for the application"
          }
        }
      },
      "caasOtpVerify": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "referenceNo",
          "otp",
          "sourceAddress"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_000XXX",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "Your API Key",
            "description": "This API key will be sent to your registered email address on the platform upon application approval."
          },
          "referenceNo": {
            "type": "string",
            "example": "8801442233146169943053700500040",
            "description": "The value returned for parameter 'requestCorrelator' in the response of the CaaS OTP generation request must be used here as the reference of the transaction."
          },
          "otp": {
            "type": "string",
            "example": "xxxxxx",
            "description": "Specify the OTP entered by the subscriber on the developer application."
          },
          "sourceAddress": {
            "type": "string",
            "example": "tel:8801973579363",
            "description": "Source Address shows the MSISDN that requested the OTP."
          }
        }
      },
      "responseOfCaasOtpVerify": {
        "type": "object",
        "required": [
          "statusCode",
          "statusDescription",
          "status"
        ],
        "properties": {
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code shows the status of the request. If the code starts with a:<br/>S1000: Request was successfully processed<br/>E1850: Invalid OTP<br/>E1852: Maximum number of OTP attempts had reached<br/>E1854: Could not find OTP<br/>E1855: Invalid OTP Reference Number<br/>E1856: Invalid Request<br/>E1337: Subscriber authentication failed",
            "enum": [
              "S1000",
              "E1850",
              "E1852",
              "E1854",
              "E1855",
              "E1856",
              "E1337"
            ]
          },
          "statusDescription": {
            "type": "string",
            "example": "Request was successfully processed",
            "description": "Human-readable description of the outcome."
          },
          "status": {
            "type": "boolean",
            "example": true,
            "description": "true if OTP was valid and charging proceeded; false otherwise."
          }
        }
      },
      "responseOfOtpVerify": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "subscriptionStatus",
          "statusDetail"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version"
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "description": "The status code for the entire request.\n\n Note: When the request is successful, statusCode will be S1000."
          },
          "subscriptionStatus": {
            "type": "ENUM",
            "example": "REGISTERED",
            "description": "Subscription status of the user"
          },
          "statusDetail": {
            "type": "string",
            "example": "Success",
            "description": "The status detail for the entire request\n\n S1000  - Successfully validated OTP for [msisdn/sender ID]\n\n E1850  - Invalid OTP\n\n E1851  - OTP request has being expired\n\n E1852  - Maximum number of OTP attempts had reached\n\n E1854  - Could not find OTP\n\n E1855  - Invalid Reference Number\n\n E1857  - Internal Server Error Occur \n\n E1301  - Requested ApplicationID is not allowed within the System for operator unknown.\n\n "
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:sdfasdfasdfwqerqwtgfgsafgasfgasdfasdfasdfasdfasdfasf",
            "description": " Masked mobile number of the end consumer.\n\n Application has to use this for any subsequent request sent to TAP."
          }
        }
      },
      "requestLocation": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "requesterId",
          "subscriberId"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_001768",
            "description": "Application identification within the platform"
          },
          "password": {
            "type": "string",
            "example": "729fdf8ea178cdea9857eeb9a059fd6e",
            "description": "Password of the application"
          },
          "version": {
            "type": "string",
            "example": "2.0",
            "description": "API version"
          },
          "requesterId": {
            "type": "string",
            "example": "tel:94711275563",
            "description": "MSISDN of the subscriber who is requesting the location updates. This is a unique identifier. Note: MSISDN might be a masked number depending on the type of the application"
          },
          "subscriberId": {
            "type": "string",
            "example": "tel:94711275563",
            "description": "MSISDN of the subscriber whose location is needed. This is a unique identifier. Note: MSISDN might be a masked number depending on the type of the application"
          },
          "serviceType": {
            "type": "ENUM",
            "example": "IMMEDIATE",
            "description": "Required MLP service type. Currently supports: IMMEDIATE"
          }
        }
      },
      "responseOfRequestLocation": {
        "type": "object",
        "required": [
          "version",
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version"
          },
          "messageID": {
            "type": "string",
            "example": "101304051248020083",
            "description": "MessageID to uniquely Identify the request within the SDP"
          },
          "latitude": {
            "type": "string",
            "example": "38.8951",
            "description": "Latitude coordinate of the location of the subscriber"
          },
          "longitude": {
            "type": "string",
            "example": "-77.0364",
            "description": "Longitude coordinate of the location of the subscriber"
          },
          "subscriberState": {
            "type": "Boolean",
            "example": "false",
            "description": "Power on/off state of the target subscriber's mobile phone. True: power on, False: power off"
          },
          "timestamp": {
            "type": "string",
            "example": "2022-01-20'T'13:20:10",
            "description": "System date and time of success or failed transaction"
          },
          "statusCode": {
            "type": "string",
            "example": "E1303",
            "description": "The error code for the request"
          },
          "statusDetail": {
            "type": "string",
            "example": "IP address, which the request originates from, is not listed within the allowed-host-address list",
            "description": "The error detail for the request"
          }
        }
      },
      "responseOfChargerNotificationCallback": {
        "type": "object",
        "required": [
          "timeStamp",
          "version",
          "externalTrxId",
          "internalTrxId",
          "referenceId",
          "currency",
          "TotalAmount",
          "paidAmount",
          "balanceDue",
          "statusCode",
          "statusDetail"
        ],
        "properties": {
          "timeStamp": {
            "type": "string",
            "format": "date-time",
            "example": "2025-10-02T14:59:00+05:30",
            "description": "The time which the request was sent."
          },
          "version": {
            "type": "string",
            "example": "1.0",
            "description": "API version shall be numbered as 1.0, 2.0 etc.\nIf version is specified in the request, same version must be sent\nin the response.\nIf version is not specified in the request, the latest version will\nbe specified in the response."
          },
          "externalTrxId": {
            "type": "string",
            "example": "256091234",
            "description": "This is the transaction ID generated by the application to map\nthe request with the response. This is needed to provide\ninformation when there are inquiries related to a transaction.\nOnly a single value can be sent per request."
          },
          "internalTrxId": {
            "type": "string",
            "example": "125100214570415",
            "description": "The unique identifier used to track the request at the developer\napplication end."
          },
          "referenceId": {
            "type": "string",
            "example": "12526",
            "description": "The unique reference used to identify the transaction within the\nsystem"
          },
          "currency": {
            "type": "string",
            "example": "LKR",
            "description": "Currency unit of the amount. Only 'LKR' is allowed."
          },
          "TotalAmount": {
            "type": "string",
            "example": "5.00",
            "description": "Amount deducted from the subscriber as the one time charge."
          },
          "paidAmount": {
            "type": "string",
            "example": "5.00",
            "description": "The amount that is paid by the subscriber."
          },
          "balanceDue": {
            "type": "string",
            "example": "0.00",
            "description": "The amount that is due will be displayed if there is any, if not it will show 0."
          },
          "statusCode": {
            "type": "string",
            "example": "S1000",
            "enum": [
              "S1000",
              "E1404",
              "E1405",
              "E1852",
              "E1854",
              "E1855",
              "E1856",
              "E1857"
            ],
            "description": "This code will show the status of the request.<br/>S1000: Request was Successfully processed, Due amount fully paid<br/>E1404: Charging request failed<br/>E1405: Charging request timed out, No payments done<br/>E1852: Maximum number of OTP attempts had reached<br/>E1854: Could not find OTP<br/>E1855: Invalid OTP Reference Number<br/>E1856: OTP Not Found<br/>E1857: Invalid Reference Number"
          },
          "statusDetail": {
            "type": "string",
            "example": "Request was Successfully processed, Due amount fully paid.",
            "description": "Detailed description explaining the status of the entire request"
          }
        }
      },
      "index": {
        "x-sendServices": {
          "$ref": "sendServices.yaml"
        },
        "x-responseOfSendServices": {
          "$ref": "responseOfSendServices.yaml"
        },
        "x-receiveServices": {
          "$ref": "receiveServices.yaml"
        },
        "x-responseOfReceiveServices": {
          "$ref": "responseOfReceiveServices.yaml"
        },
        "x-reportServices": {
          "$ref": "reportServices.yaml"
        },
        "x-responseOfReportServices": {
          "$ref": "responseOfReportServices.yaml"
        },
        "x-destinationResponses": {
          "$ref": "destinationResponses.yaml"
        }
      },
      "index-2": {
        "x-sendServices": {
          "$ref": "sendServices.yaml"
        },
        "x-responseOfSendServices": {
          "$ref": "responseOfSendServices.yaml"
        },
        "x-receiveServices": {
          "$ref": "receiveServices.yaml"
        },
        "x-responseOfReceiveServices": {
          "$ref": "responseOfReceiveServices.yaml"
        }
      },
      "index-3": {
        "x-directDebit": {
          "$ref": "directDebit.yaml"
        },
        "x-responseOfDirectDebit": {
          "$ref": "responseOfDirectDebit.yaml"
        }
      },
      "index-4": {
        "x-getSubscriberList": {
          "$ref": "getSubscriberList.yaml"
        },
        "x-responseOfgetSubscriberList": {
          "$ref": "responseOfgetSubscriberList.yaml"
        },
        "x-userSubscription": {
          "$ref": "userSubscription.yaml"
        },
        "x-responseOfUserSubscription": {
          "$ref": "responseOfUserSubscription.yaml"
        },
        "x-baseSize": {
          "$ref": "baseSize.yaml"
        },
        "x-responseOfBaseSize": {
          "$ref": "responseOfBaseSize.yaml"
        },
        "x-subscriberStatus": {
          "$ref": "subscriberStatus.yaml"
        },
        "x-responseOfSubscriberStatus": {
          "$ref": "responseOfSubscriberStatus.yaml"
        },
        "x-responseOfSubscriberNotify": {
          "$ref": "responseOfSubscriberNotify.yaml"
        },
        "x-getSubscriberChargingInfo": {
          "$ref": "getSubscriberChargingInfo.yaml"
        },
        "x-responseOfgetSubscriberChargingInfo": {
          "$ref": "responseOfgetSubscriberChargingInfo.yaml"
        },
        "x-subscriberinfo": {
          "$ref": "subscriberInfo.yaml"
        }
      },
      "index-5": {
        "x-otpRequest": {
          "$ref": "otpRequest.yaml"
        },
        "x-responseOfOtpRequest": {
          "$ref": "responseOfOtpRequest.yaml"
        },
        "x-otpVerify": {
          "$ref": "otpVerify.yaml"
        },
        "x-responseOfOtpVerify": {
          "$ref": "responseOfOtpVerify.yaml"
        },
        "x-applicationMetaData": {
          "$ref": "applicationMetaData.yaml"
        }
      },
      "index-6": {
        "x-directDebit": {
          "$ref": "requestLocation.yaml"
        },
        "x-responseOfDirectDebit": {
          "$ref": "responseOfRequestLocation.yaml"
        }
      },
      "queryBalance": {
        "type": "object",
        "required": [
          "applicationId",
          "password",
          "subscriberId",
          "paymentInstrumentName"
        ],
        "properties": {
          "applicationId": {
            "type": "string",
            "example": "APP_999999",
            "description": "Used to identify the application. This is a unique identifier generated while provisioning an application.\n\nOnly a single value can be sent per request."
          },
          "password": {
            "type": "string",
            "example": "95904999aa8edb0c038b3295fdd271de",
            "description": "Used to authenticate the application originated message against the service providers credentials.\n\nEncoded, single value."
          },
          "subscriberId": {
            "type": "string",
            "example": "94716351232",
            "description": "This can be the MSISDN or the Username of the subscriber whose account balance is being queried.\n\nNote: tel might be a masked number depending on the type of the application\n\nOnly a single value can be sent per request."
          },
          "paymentInstrumentName": {
            "type": "string",
            "example": "MobileAccount",
            "enum": [
              "MobileAccount"
            ],
            "description": "The name of the payment instrument.\n\nOnly a single value can be sent per request."
          },
          "accountId": {
            "type": "string",
            "example": "12345",
            "description": "The account of the payment instrument.\n\nOnly a single value can be sent per request."
          },
          "currency": {
            "type": "string",
            "example": "LKR",
            "enum": [
              "LKR"
            ],
            "description": "The currency of the amount.\n\nOnly a single value can be sent per request.\n\nOnly 'LKR' is allowed."
          }
        }
      },
      "responseOfQueryBalance": {
        "type": "object",
        "required": [
          "accountType",
          "accountStatus",
          "statusCode",
          "statusDetail",
          "chargeableBalance"
        ],
        "properties": {
          "accountType": {
            "type": "string",
            "description": "Account type of the subscriber id. E.g. Prepaid/Post paid for GSM domain.\n\nOnly a single set of elements can be sent per request",
            "example": "Pre Paid"
          },
          "accountStatus": {
            "type": "string",
            "description": "Account status of the subscriber ID.\n\nOnly a single set of elements can be sent per request",
            "example": "Active"
          },
          "statusCode": {
            "type": "string",
            "enum": [
              "S1000",
              "E1313",
              "E1303",
              "E1317",
              "E1328",
              "E1337",
              "E1601",
              "E1343",
              "E1318",
              "E1319",
              "E1326",
              "E1602",
              "E1603"
            ],
            "description": "Status of the operation.\n\nOnly a single set of elements can be sent per request.\n\nS1000 - Process completed successfully for all the available destination numbers.\n\nE1313 - Authentication failed. No such active application with applicationId , or no active service provider or the given password in the request is invalid.\n\nE1303 - IP address from which this request originated is not provisioned to send request to application . Please use a provisioned system to send request or contact system admin to provision the new IP.\n\nE1317 - in request is invalid or not allowed.\n\nE1601 - System experienced an unexpected error.\n\nE1328 - Charging operation {operation} not allowed. Please check the NCS configuration.\n\nE1337 - Duplicate request.\n\nE1343 - MSISDN is not white listed. Only white list numbers are allowed to send messages at this state.\n\nE1318 - Transaction limit per second has exceeded. Please throttle requests not to exceed the transaction limit. Contact TAP admin to increase the traffic limit.\n\nE1319 - Transaction limit for today is exceeded. Please try again tomorrow or contact TAP admin to increase the transaction per day limit.\n\nE1326 - Insufficient balance.\n\nE1602 - Message delivery failed. Please retry\n\nE1603 - Temporary System Error occurred while delivering your request",
            "example": "S1000"
          },
          "statusDetail": {
            "type": "string",
            "description": "The textual description of the operation's status.\n\nOnly a single set of elements can be sent per request.",
            "example": "Success."
          },
          "chargeableBalance": {
            "type": "string",
            "description": "Available chargeable balance of the subscriber.\n\nRefers to either remaining account balance (prepaid user) or the difference between credit limit and outstanding bill (postpaid user).\n\nrounded up to two decimal points",
            "example": "300.0"
          }
        }
      }
    }
  }
}