---
updatedAt: 2026-07-28T05:05:38.000Z
agentTools:
  projectIndex: https://docs.cermatiprotect.com/llms.txt
---

# Subscribe to Application Notification

Create subscription to get notified whenever there is any status update on all created applications. See Application Notification section for the webhook specification.

Partners are currently limited to one subscription per notification type.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Operations",
    "version": "1.0.0",
    "description": "This is the documentation for Cermati Protect Insurance API Operations",
    "termsOfService": "https://www.cermatiprotect.com/pages/terms-and-conditions",
    "contact": {
      "email": "dev.cermati@cermati.com"
    },
    "x-logo": {
      "url": "https://static.cermatiprotect.com/static/dist/images/logo/cermati-protect-white.png"
    }
  },
  "tags": [
    {
      "name": "Insurance Application Operations",
      "description": "Get insurance applications that the partner has created or has access to."
    }
  ],
  "servers": [
    {
      "url": "https://api-staging.cermatiprotect.com/insurance/v1"
    },
    {
      "url": "https://api.cermatiprotect.com/insurance/v1"
    }
  ],
  "paths": {
    "/applications/subscribe": {
      "post": {
        "summary": "Subscribe to Application Notification",
        "description": "Create subscription to get notified whenever there is any status update on all created applications. See Application Notification section for the webhook specification.\n\nPartners are currently limited to one subscription per notification type.",
        "tags": [
          "Insurance Application Operations"
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ApplicationsSubscription"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/ApplicationsSubscription"
          }
        },
        "callbacks": {
          "Application Event": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "On Application Status Change",
                "description": "See [documentation](https://docs.cermatiprotect.com/reference/application-event-notification)",
                "parameters": [
                  {
                    "in": "header",
                    "name": "Cermati-Signature",
                    "schema": {
                      "type": "string"
                    },
                    "description": "Partners can optionally verify the authenticity of notifications sent by Cermati Protect. A signature will be included as Cermati-Signature request header with the following format:\n\nCermati-Signature: {prefix}={signature-value}\n\nExample:\n\nCermati-Signature: v1=6ffbb59b2300aae63f272406069a9788598b792a944a07aba816edb039989a39\n\nThe prefix will be used as a versioning mechanism for the signature. The signature value is generated using HMAC SHA256 as follows:\n\nsignature = HmacSHA256(trxId + updatedAt, secretKey)\n\ntrxId = Insurance transaction ID in the request body\n\nupdatedAt = Timestamp of the status change in the request body\n\nsecretKey = Key that will be provided by Cermati during the integration process",
                    "required": true
                  }
                ],
                "requestBody": {
                  "$ref": "#/components/requestBodies/ApplicationNotification"
                },
                "responses": {
                  "200": {
                    "description": "Your server implementation should return this HTTP status code if the data was received successfully."
                  },
                  "default": {
                    "description": "Other HTTP status codes will be marked as failure. Request will be retried up to 8 times with exponential backoff interval."
                  }
                }
              }
            }
          },
          "Flight Delay": {
            "{$request.body#/callbackUrl}": {
              "post": {
                "summary": "If there is any delayed flight",
                "description": "See [documentation](https://docs.cermatiprotect.com/reference/flight-delay-notification)",
                "parameters": [
                  {
                    "in": "header",
                    "name": "Cermati-Signature",
                    "schema": {
                      "type": "string"
                    },
                    "description": "Partners can optionally verify the authenticity of notifications sent by Cermati. A signature will be included as Cermati-Signature request header with the following format:\n\nCermati-Signature: {prefix}={signature-value}\n\nExample:\n\nCermati-Signature: v1=6ffbb59b2300aae63f272406069a9788598b792a944a07aba816edb039989a39\n\nThe prefix will be used as a versioning mechanism for the signature. The signature value is generated using HMAC SHA256 as follows:\n\nsignature = HmacSHA256(trxId + updatedAt, secretKey)\n\ntrxId = Insurance transaction ID in the request body\n\nupdatedAt = Timestamp of the status change in the request body\n\nsecretKey = Key that will be provided by Cermati Protect during the integration process",
                    "required": true
                  }
                ],
                "requestBody": {
                  "$ref": "#/components/requestBodies/FlightDelayNotification"
                },
                "responses": {
                  "200": {
                    "description": "Your server implementation should return this HTTP status code if the data was received successfully."
                  },
                  "default": {
                    "description": "Other HTTP status codes will be marked as failure. Request will be retried up to 8 times with exponential backoff interval."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "responses": {
      "ApplicationsSubscription": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "subscriptionId": {
                  "description": "UUID of the subscription.",
                  "type": "string",
                  "format": "UUID",
                  "example": "2574a4cd-0fa5-48a0-9c7b-473f411635b1"
                }
              }
            }
          }
        }
      }
    },
    "requestBodies": {
      "ApplicationsSubscription": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "callbackUrl": {
                  "type": "string",
                  "description": "The URL on client's side that will be hit by our service.",
                  "format": "uri",
                  "example": "https://partner-server.net/send/callback/here"
                },
                "type": {
                  "type": "string",
                  "description": "The notification type:\n* `Application Event` - The webhook notification that will be triggered every time there is any change in application status.\n    See [documentation](https://docs.cermati.com/reference/application-event-notification)\n* `Flight Delay` - The webhook notification that will be triggered if one of the flights in the transportation insurance transaction has delayed departure or arrival.\n    See [documentation](https://docs.cermati.com/reference/flight-delay-notification)\n",
                  "enum": [
                    "Application Event",
                    "Flight Delay"
                  ],
                  "example": "Application Event"
                }
              },
              "required": [
                "callbackUrl",
                "type"
              ]
            }
          }
        }
      },
      "ApplicationNotification": {
        "description": "Application notification callback",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "refNo": {
                  "type": "string",
                  "maxLength": 140,
                  "description": "Unique identifier from partner."
                },
                "trxId": {
                  "type": "string",
                  "maxLength": 200,
                  "description": "Application transaction ID."
                },
                "status": {
                  "type": "string",
                  "maxLength": 50,
                  "description": "The status of the application\nRefer to [Insurance Application Status section](https://docs.cermati.com/reference/insurance-application-status)\n"
                },
                "link": {
                  "type": "string",
                  "format": "uri",
                  "maxLength": 500,
                  "description": "Link to retrieve the resource. **{BASE_URL}/{productType}/{trxId}**\ne.g. *https://api.cermatiprotect.com/insurance/v1/goods/UniqueTrxId00001* \n"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "maxLength": 30,
                  "description": "Timestamp of the status change occured(ISO 8601 format)."
                }
              },
              "required": [
                "refNo",
                "trxId",
                "status",
                "link",
                "updatedAt"
              ]
            }
          }
        }
      },
      "FlightDelayNotification": {
        "description": "Flight delay notification callback",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "refNo": {
                  "type": "string",
                  "maxLength": 140,
                  "description": "Unique identifier from the partner, this must be unique per application.\n**Mandatory** if the orderId is not filled\n"
                },
                "orderId": {
                  "type": "string",
                  "maxLength": 140,
                  "description": "The order ID of the application in partner’s side.\n**Mandatory** if the refNo is not filled\n"
                },
                "trxId": {
                  "type": "string",
                  "maxLength": 200,
                  "description": "Application transaction ID."
                },
                "trips": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Trip"
                  },
                  "description": "List of trips included under the same order ID."
                },
                "benefitClaims": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BenefitClaim"
                  },
                  "description": "The benefits that can be claimed by the customer.."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "maxLength": 30,
                  "description": "Timestamp of the status change occured(ISO 8601 format)."
                }
              },
              "required": [
                "trxId",
                "trips",
                "benefitClaims",
                "updatedAt"
              ]
            }
          }
        }
      }
    },
    "schemas": {
      "Trip": {
        "type": "object",
        "description": "The trip details.",
        "properties": {
          "tripId": {
            "type": "string",
            "maxLength": 200,
            "description": "Unique identifier associated with the trip. Accepts alphanumeric without special characters"
          },
          "tripType": {
            "type": "string",
            "enum": [
              "TRAIN",
              "FLIGHT"
            ],
            "description": "Type of trip"
          },
          "tripLegs": {
            "$ref": "#/components/schemas/TripLeg"
          }
        },
        "required": [
          "tripId",
          "tripType",
          "tripLegs"
        ]
      },
      "TripLeg": {
        "type": "object",
        "description": "A leg taken for within a trip.",
        "properties": {
          "tripNo": {
            "type": "string",
            "maxLength": 100,
            "description": "Trip Number can be mapped into Flight Number, Train Number."
          },
          "tripName": {
            "type": "string",
            "maxLength": 140,
            "description": "Trip name associated with bus name, train name or airline name e.g. Taksaka Luxury, Argo Parahyangan, Citilink, Garuda Indonesia."
          },
          "class": {
            "type": "string",
            "maxLength": 50,
            "description": "Cabin class e.g. Economy, Business, Executive, First class."
          },
          "subclass": {
            "type": "string",
            "maxLength": 50,
            "description": "Cabin subclass e.g. if the class is \"Economy (CA)\", fill this field with CA"
          },
          "origin": {
            "$ref": "#/components/schemas/Location"
          },
          "destination": {
            "$ref": "#/components/schemas/Location"
          },
          "departureTime": {
            "type": "string",
            "format": "date-time",
            "description": "Scheduled trip departure time (ISO 8601 format with timezone)."
          },
          "arrivalTime": {
            "type": "string",
            "format": "date-time",
            "description": "Scheduled trip arrival time (ISO 8601 format with timezone). The value must be after or equal to the departureTime value."
          },
          "actualDepartureTime": {
            "type": "string",
            "format": "date-time",
            "description": "Actual trip departure time (ISO 8601 format with timezone)."
          },
          "actualArrivalTime": {
            "type": "string",
            "format": "date-time",
            "description": "Actual trip arrival time (ISO 8601 format with timezone)."
          },
          "isDelayedDeparture": {
            "type": "boolean",
            "description": "The flag to indicate whether the flight leg departure is delayed or not."
          },
          "isDelayedArrival": {
            "type": "boolean",
            "description": "The flag to indicate whether the flight leg arrival is delayed or not."
          }
        },
        "required": [
          "tripNo",
          "tripName",
          "class",
          "origin",
          "destination",
          "departureTime",
          "arrivalTime",
          "actualDepartureTime",
          "isDelayedDeparture"
        ]
      },
      "Location": {
        "type": "object",
        "description": "Location details.",
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 5,
            "description": "Can follow standard IATA airport code for flight, or station code for train."
          },
          "type": {
            "type": "string",
            "enum": [
              "STATION",
              "AIRPORT"
            ],
            "description": "Indicating the location type options."
          },
          "name": {
            "type": "string",
            "maxLength": 140,
            "description": "Name of the location."
          }
        },
        "required": [
          "code",
          "type"
        ]
      },
      "BenefitClaim": {
        "type": "object",
        "description": "The details of benefit that can be claimed.",
        "properties": {
          "type": {
            "type": "string",
            "maxLength": 200,
            "description": "The type of benefit that can be claimed",
            "example": "Keterlambatan oleh Pihak Maskapai"
          },
          "compensationValue": {
            "type": "integer",
            "format": "int64",
            "description": "The compensation value that can be claimed",
            "example": 500000
          },
          "claimUrl": {
            "type": "string",
            "maxLength": 500,
            "description": "Link for the customer to claim the insurance benefit.\nThe URL will be valid for 24 hours.\n",
            "example": "https://url.to.claim-center"
          },
          "termsAndConditionsUrl": {
            "type": "string",
            "maxLength": 500,
            "description": "Link for viewing/downloading the applied terms and conditions",
            "example": "https://url.to.terms-conditions-page"
          }
        },
        "required": [
          "type",
          "claimUrl"
        ]
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```