{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tokolaku-id/json-schema/tokolaku-id-message-response-schema.json",
  "title": "MessageResponse",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tokolaku-id-openapi.yml#/components/schemas/MessageResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Id internal (dipakai untuk idempotensi charge)"
    },
    "channel_id": {
      "type": "string"
    },
    "to": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "text",
        "template"
      ]
    },
    "status": {
      "type": "string"
    },
    "provider_message_id": {
      "type": "string"
    },
    "charged_idr": {
      "type": "number",
      "description": "0 untuk pesan sesi atau saat billing pesan OFF"
    }
  },
  "required": [
    "id",
    "channel_id",
    "to",
    "type",
    "status",
    "provider_message_id",
    "charged_idr"
  ]
}