{
  "openapi": "3.1.0",
  "info": {
    "title": "CouponGoGoGo public snapshots",
    "version": "1.0.0",
    "description": "Read-only static JSON. No authentication, live quotes, ordering or payment. Query parameters do not filter the snapshot; filter offers locally. Unknown policy values are not guarantees."
  },
  "servers": [
    {
      "url": "https://coupongogogo.com"
    }
  ],
  "security": [],
  "paths": {
    "/data/offers.json": {
      "get": {
        "operationId": "getOffersSnapshot",
        "summary": "Read selected official-source eSIM observations",
        "responses": {
          "200": {
            "description": "Public static snapshot; check timestamps at read time.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "generated_at",
                    "offers",
                    "price_freshness_policy"
                  ],
                  "properties": {
                    "generated_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "last_run_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "price_freshness_policy": {
                      "type": "object"
                    },
                    "offers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "offer_id",
                          "destination",
                          "provider_id",
                          "currency",
                          "price_amount",
                          "price_verified_at",
                          "price_review_after",
                          "price_display_until",
                          "needs_review"
                        ],
                        "properties": {
                          "offer_id": {
                            "type": "string"
                          },
                          "destination": {
                            "type": "string",
                            "enum": [
                              "china",
                              "thailand",
                              "singapore",
                              "australia",
                              "maldives",
                              "japan"
                            ]
                          },
                          "provider_id": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string",
                            "enum": [
                              "USD"
                            ]
                          },
                          "price_amount": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Decimal USD string; null when unavailable at generation."
                          },
                          "regular_price": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "data_type": {
                            "type": "string",
                            "enum": [
                              "fixed",
                              "unlimited"
                            ]
                          },
                          "data_amount_gb": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "validity_days": {
                            "type": "integer"
                          },
                          "source_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "checkout_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "price_verified_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "price_review_after": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "price_display_until": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "price_status_as_of": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "expires_at": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "format": "date-time"
                          },
                          "needs_review": {
                            "type": "boolean"
                          },
                          "price_status_at_generation": {
                            "type": "string",
                            "enum": [
                              "active",
                              "stale",
                              "unavailable",
                              "expired"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/status.json": {
      "get": {
        "operationId": "getCollectionStatus",
        "summary": "Read last collection status (not a live uptime check)",
        "responses": {
          "200": {
            "description": "Public static snapshot; check timestamps at read time.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}
