{
  "openapi": "3.1.0",
  "info": {
    "title": "eSIMPricing Partner API",
    "version": "1",
    "summary": "A brand's profile facts, plan feed, listing, clicks and webhooks on eSIMPricing.",
    "description": "Specification: https://esimpricing.com/partners/api-docs"
  },
  "servers": [
    {
      "url": "https://esimpricing.com/partners/api/v1"
    }
  ],
  "security": [
    {
      "key": []
    }
  ],
  "paths": {
    "/profile": {
      "get": {
        "operationId": "getProfile",
        "summary": "The brand's profile",
        "responses": {
          "200": {
            "description": "The brand and every fact of its profile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "changeProfile",
        "summary": "Change facts of the profile",
        "description": "At most 30 facts in one request. Facts left out are not touched. PUT does the same.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "facts"
                ],
                "properties": {
                  "facts": {
                    "type": "object",
                    "description": "field id → value (see /fields for each field's type)",
                    "additionalProperties": true
                  },
                  "dry_run": {
                    "type": "boolean",
                    "description": "true: validate every value and store nothing"
                  }
                }
              },
              "example": {
                "facts": {
                  "terms.refund": {
                    "policy": "unused",
                    "days": 30
                  },
                  "terms.hotspot": "yes"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "At least one fact was stored. One result per fact, in the order sent.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchResult"
                }
              }
            }
          },
          "400": {
            "description": "The body is not JSON, has no facts object, is empty or has too many facts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "A method other than GET, PATCH or PUT.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The body is over 100 kB.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The body was not sent as application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Nothing in the request could be stored.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchResult"
                }
              }
            }
          },
          "429": {
            "description": "The hourly limit refused every change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchResult"
                }
              }
            }
          }
        }
      }
    },
    "/options": {
      "get": {
        "operationId": "listOptions",
        "summary": "Every list of values the profile's facts take",
        "security": [],
        "responses": {
          "200": {
            "description": "The lists and their values, keyed by fact id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "lists": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "options": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/OptionValue"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/options/{fact}": {
      "get": {
        "operationId": "getOptions",
        "summary": "The values one fact takes",
        "security": [],
        "parameters": [
          {
            "name": "fact",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "the fact's id (facts.payments) or the last part of it (payments)",
            "example": "facts.payments"
          }
        ],
        "responses": {
          "200": {
            "description": "The list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "field",
                    "values"
                  ],
                  "properties": {
                    "version": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "multiple": {
                      "type": "boolean"
                    },
                    "own_entries": {
                      "type": "boolean"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "values": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OptionValue"
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No list of that name; the body names the lists that exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/me": {
      "get": {
        "operationId": "getKey",
        "summary": "The key's brand and what it may still do this hour",
        "responses": {
          "200": {
            "description": "Brand, key and limits.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/profile/{fact}": {
      "get": {
        "operationId": "getFact",
        "summary": "One fact",
        "parameters": [
          {
            "name": "fact",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "terms.hotspot"
          }
        ],
        "responses": {
          "200": {
            "description": "The fact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fact"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such fact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "setFact",
        "summary": "State one fact",
        "parameters": [
          {
            "name": "fact",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "terms.hotspot"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "value": "yes"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "result and fact.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such fact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The value was refused; result says what the fact takes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "429": {
            "description": "The hourly limit.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "withdrawFact",
        "summary": "Withdraw what the brand stated for a fact",
        "parameters": [
          {
            "name": "fact",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "terms.hotspot"
          }
        ],
        "responses": {
          "200": {
            "description": "withdrawn and the fact as it now stands.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No such fact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/profile/history": {
      "get": {
        "operationId": "factHistory",
        "summary": "What was sent for the facts and what came of it",
        "parameters": [
          {
            "name": "fact",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "fact, count, entries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/feed": {
      "get": {
        "operationId": "getFeed",
        "summary": "The plan feed: how it stands, its last reads",
        "responses": {
          "200": {
            "description": "feed, last_run (with report), runs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No feed is connected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "connectFeed",
        "summary": "Connect or change the feed, then read it",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "url": "https://example-mobile.com/.well-known/esimpricing/plans.json",
                "token": {
                  "header": "Authorization",
                  "value": "Bearer abc123"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "feed, last_run, runs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The address or the token header can't be used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeFeed",
        "summary": "Disconnect the feed",
        "responses": {
          "200": {
            "description": "removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No feed is connected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/feed/{action}": {
      "post": {
        "operationId": "feedAction",
        "summary": "Read the feed now, release a held-back read, pause or resume",
        "parameters": [
          {
            "name": "action",
            "in": "path",
            "required": true,
            "schema": {
              "enum": [
                "run",
                "confirm",
                "pause",
                "resume"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "feed, last_run, runs; run and confirm add read.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No feed is connected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The feed is paused, or nothing is held back.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Six reads on request an hour.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/listing": {
      "get": {
        "operationId": "getListing",
        "summary": "Progress into the price tables and what the site shows",
        "responses": {
          "200": {
            "description": "listed, ready, missing, next_step, steps, on_site.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/program": {
      "get": {
        "operationId": "getProgram",
        "summary": "The affiliate program page or tracking link on record",
        "responses": {
          "200": {
            "description": "program (status, kind, program_url, tracking_link, checked_at, and reason when the check did not pass), or null.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "setProgram",
        "summary": "Check and store a program page or a tracking link",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "program_url": "https://example-mobile.com/affiliates"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "program.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Neither program_url nor tracking_link was usable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The link did not pass the check.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/logo": {
      "get": {
        "operationId": "getLogo",
        "summary": "The brand's logo on record",
        "responses": {
          "200": {
            "description": "logo, in_review, image_url.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "setLogo",
        "summary": "Set the logo from an image on the brand's site, or automatically",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "url": "https://example-mobile.com/assets/logo.png"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "status saved or in_review.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The image can't be used; the message says why.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/webhook": {
      "get": {
        "operationId": "getWebhook",
        "summary": "The webhook and its last deliveries",
        "responses": {
          "200": {
            "description": "webhook, events_available, deliveries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No webhook is set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "setWebhook",
        "summary": "Set the webhook; the signing secret is answered once",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "url": "https://example-mobile.com/hooks/esimpricing",
                "events": [
                  "feed.failed",
                  "feed.held"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "webhook, and secret when new or rotated.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "The address or an event name can't be used.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeWebhook",
        "summary": "Remove the webhook",
        "responses": {
          "200": {
            "description": "removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No webhook is set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/webhook/test": {
      "post": {
        "operationId": "testWebhook",
        "summary": "Send a test event now",
        "responses": {
          "200": {
            "description": "delivered, status, id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No webhook is set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Ten test events an hour.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/clicks": {
      "get": {
        "operationId": "getClicks",
        "summary": "People's clicks from eSIMPricing to the brand",
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 90,
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "total, by_day, by_destination.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that no longer works.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Click numbers are not available right now.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/feed-check": {
      "post": {
        "operationId": "checkFeed",
        "summary": "Check a plan feed against the Plan Feed API",
        "description": "The feed checker from code: the same reader and rules as a connected feed's runs. Nothing is stored. A key is optional: without one, 20 checks an hour per address and 1 MB / 2 pages per check; with one, 120 an hour per brand, 8 MB / 20 pages, and links checked against the brand's own domains, as a connected feed's runs are.",
        "security": [
          {},
          {
            "key": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "the feed's https URL: we read it"
                  },
                  "headers": {
                    "type": "object",
                    "maxProperties": 1,
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "with url: one token header we send, such as Authorization or X-Api-Key"
                  },
                  "feed": {
                    "description": "the feed document itself (a list of plans, or an object with plans): we check it as sent"
                  }
                },
                "oneOf": [
                  {
                    "required": [
                      "url"
                    ]
                  },
                  {
                    "required": [
                      "feed"
                    ]
                  }
                ]
              },
              "examples": {
                "url": {
                  "value": {
                    "url": "https://example.com/esim/plans.json",
                    "headers": {
                      "Authorization": "Bearer …"
                    }
                  }
                },
                "document": {
                  "value": {
                    "feed": {
                      "plans": [
                        "…"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The check ran. `ok` is false when the report has an error; read `report.groups`.",
            "headers": {
              "X-RateLimit-Limit": {
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedCheck"
                }
              }
            }
          },
          "400": {
            "description": "Not JSON, or not exactly one of url / feed, or a header we don't send.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "An Authorization header with a key that does not work. Send a good key or none.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The body is over the check's size, or nests deeper than a catalog needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "The body was not sent as application/json.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The hourly limit is used up. Retry-After says when to try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "operationId": "apiIndex",
        "summary": "Where this API's description lives",
        "security": [],
        "responses": {
          "200": {
            "description": "The addresses of the documentation, this description, the field catalogue and the lists of values.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "api": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "openapi": {
                      "type": "string",
                      "format": "uri"
                    },
                    "fields": {
                      "type": "string",
                      "format": "uri"
                    },
                    "options": {
                      "type": "string",
                      "format": "uri"
                    },
                    "auth": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/fields": {
      "get": {
        "operationId": "listFields",
        "summary": "The profile's fields and the value each takes",
        "security": [],
        "responses": {
          "200": {
            "description": "Groups and fields.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fields"
                },
                "example": {
                  "version": "1",
                  "groups": [
                    {
                      "id": "company",
                      "label": "Company"
                    },
                    {
                      "id": "apps",
                      "label": "Apps and languages"
                    },
                    {
                      "id": "buying",
                      "label": "Buying and paying"
                    },
                    {
                      "id": "policies",
                      "label": "Installing and using"
                    },
                    {
                      "id": "support",
                      "label": "Refunds and support"
                    }
                  ],
                  "fields": [
                    {
                      "id": "company.name",
                      "group": "company",
                      "label": "Company or individual",
                      "type": "seller",
                      "value": "A company's legal name, as a string; or { \"type\": \"individual\", \"name\": trading name or null } for a sole trader",
                      "example": "Example Mobile Ltd"
                    },
                    {
                      "id": "company.hq",
                      "group": "company",
                      "label": "Head office",
                      "type": "country",
                      "value": "An ISO 3166-1 alpha-2 country code, as a string.",
                      "example": "SG"
                    },
                    {
                      "id": "apps.ios",
                      "group": "apps",
                      "label": "iPhone app",
                      "type": "store_url",
                      "value": "The URL of the app's own store listing.",
                      "example": "https://apps.apple.com/app/id123456789"
                    },
                    {
                      "id": "apps.android",
                      "group": "apps",
                      "label": "Android app",
                      "type": "store_url",
                      "value": "The URL of the app's own store listing.",
                      "example": "https://play.google.com/store/apps/details?id=com.example.mobile"
                    },
                    {
                      "id": "facts.siteLanguages",
                      "group": "apps",
                      "label": "Website languages",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "en",
                        "es"
                      ],
                      "options": [
                        {
                          "value": "en",
                          "label": "English"
                        },
                        {
                          "value": "es",
                          "label": "Spanish"
                        },
                        {
                          "value": "fr",
                          "label": "French"
                        },
                        {
                          "value": "de",
                          "label": "German"
                        },
                        {
                          "value": "ja",
                          "label": "Japanese"
                        },
                        {
                          "value": "it",
                          "label": "Italian"
                        },
                        {
                          "value": "pt",
                          "label": "Portuguese"
                        },
                        {
                          "value": "ar",
                          "label": "Arabic"
                        },
                        {
                          "value": "ru",
                          "label": "Russian"
                        },
                        {
                          "value": "tr",
                          "label": "Turkish"
                        },
                        {
                          "value": "ko",
                          "label": "Korean"
                        },
                        {
                          "value": "zh-Hans",
                          "label": "Simplified Chinese"
                        },
                        {
                          "value": "zh-Hant",
                          "label": "Traditional Chinese"
                        },
                        {
                          "value": "pl",
                          "label": "Polish"
                        },
                        {
                          "value": "nl",
                          "label": "Dutch"
                        },
                        {
                          "value": "id",
                          "label": "Indonesian"
                        },
                        {
                          "value": "vi",
                          "label": "Vietnamese"
                        },
                        {
                          "value": "hi",
                          "label": "Hindi"
                        },
                        {
                          "value": "th",
                          "label": "Thai"
                        },
                        {
                          "value": "sv",
                          "label": "Swedish"
                        },
                        {
                          "value": "uk",
                          "label": "Ukrainian"
                        },
                        {
                          "value": "he",
                          "label": "Hebrew"
                        },
                        {
                          "value": "da",
                          "label": "Danish"
                        },
                        {
                          "value": "ro",
                          "label": "Romanian"
                        },
                        {
                          "value": "cs",
                          "label": "Czech"
                        },
                        {
                          "value": "no",
                          "label": "Norwegian"
                        },
                        {
                          "value": "el",
                          "label": "Greek"
                        },
                        {
                          "value": "fi",
                          "label": "Finnish"
                        },
                        {
                          "value": "hu",
                          "label": "Hungarian"
                        },
                        {
                          "value": "ms",
                          "label": "Malay"
                        },
                        {
                          "value": "bg",
                          "label": "Bulgarian"
                        },
                        {
                          "value": "sk",
                          "label": "Slovak"
                        },
                        {
                          "value": "sr",
                          "label": "Serbian"
                        },
                        {
                          "value": "hr",
                          "label": "Croatian"
                        },
                        {
                          "value": "sq",
                          "label": "Albanian"
                        },
                        {
                          "value": "lt",
                          "label": "Lithuanian"
                        },
                        {
                          "value": "fa",
                          "label": "Persian"
                        },
                        {
                          "value": "et",
                          "label": "Estonian"
                        },
                        {
                          "value": "lv",
                          "label": "Latvian"
                        },
                        {
                          "value": "sl",
                          "label": "Slovenian"
                        },
                        {
                          "value": "az",
                          "label": "Azerbaijani"
                        },
                        {
                          "value": "ka",
                          "label": "Georgian"
                        },
                        {
                          "value": "fil",
                          "label": "Filipino"
                        },
                        {
                          "value": "ur",
                          "label": "Urdu"
                        },
                        {
                          "value": "bn",
                          "label": "Bangla"
                        },
                        {
                          "value": "uz",
                          "label": "Uzbek"
                        },
                        {
                          "value": "kk",
                          "label": "Kazakh"
                        },
                        {
                          "value": "bs",
                          "label": "Bosnian"
                        },
                        {
                          "value": "hy",
                          "label": "Armenian"
                        },
                        {
                          "value": "mk",
                          "label": "Macedonian"
                        },
                        {
                          "value": "ky",
                          "label": "Kyrgyz"
                        },
                        {
                          "value": "km",
                          "label": "Khmer"
                        },
                        {
                          "value": "ca",
                          "label": "Catalan"
                        },
                        {
                          "value": "sw",
                          "label": "Swahili"
                        },
                        {
                          "value": "ta",
                          "label": "Tamil"
                        },
                        {
                          "value": "is",
                          "label": "Icelandic"
                        },
                        {
                          "value": "ne",
                          "label": "Nepali"
                        },
                        {
                          "value": "te",
                          "label": "Telugu"
                        },
                        {
                          "value": "mr",
                          "label": "Marathi"
                        },
                        {
                          "value": "ku",
                          "label": "Kurdish"
                        },
                        {
                          "value": "lo",
                          "label": "Lao"
                        },
                        {
                          "value": "my",
                          "label": "Burmese"
                        },
                        {
                          "value": "mn",
                          "label": "Mongolian"
                        },
                        {
                          "value": "si",
                          "label": "Sinhala"
                        },
                        {
                          "value": "gu",
                          "label": "Gujarati"
                        },
                        {
                          "value": "kn",
                          "label": "Kannada"
                        },
                        {
                          "value": "ml",
                          "label": "Malayalam"
                        },
                        {
                          "value": "pa",
                          "label": "Punjabi"
                        },
                        {
                          "value": "am",
                          "label": "Amharic"
                        },
                        {
                          "value": "af",
                          "label": "Afrikaans"
                        },
                        {
                          "value": "eu",
                          "label": "Basque"
                        },
                        {
                          "value": "gl",
                          "label": "Galician"
                        },
                        {
                          "value": "ga",
                          "label": "Irish"
                        },
                        {
                          "value": "cy",
                          "label": "Welsh"
                        },
                        {
                          "value": "mt",
                          "label": "Maltese"
                        },
                        {
                          "value": "lb",
                          "label": "Luxembourgish"
                        },
                        {
                          "value": "be",
                          "label": "Belarusian"
                        },
                        {
                          "value": "tg",
                          "label": "Tajik"
                        },
                        {
                          "value": "tk",
                          "label": "Turkmen"
                        },
                        {
                          "value": "ps",
                          "label": "Pashto"
                        }
                      ]
                    },
                    {
                      "id": "facts.appLanguages",
                      "group": "apps",
                      "label": "App languages",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "en",
                        "es"
                      ],
                      "options": [
                        {
                          "value": "en",
                          "label": "English"
                        },
                        {
                          "value": "es",
                          "label": "Spanish"
                        },
                        {
                          "value": "fr",
                          "label": "French"
                        },
                        {
                          "value": "de",
                          "label": "German"
                        },
                        {
                          "value": "ja",
                          "label": "Japanese"
                        },
                        {
                          "value": "it",
                          "label": "Italian"
                        },
                        {
                          "value": "pt",
                          "label": "Portuguese"
                        },
                        {
                          "value": "ar",
                          "label": "Arabic"
                        },
                        {
                          "value": "ru",
                          "label": "Russian"
                        },
                        {
                          "value": "tr",
                          "label": "Turkish"
                        },
                        {
                          "value": "ko",
                          "label": "Korean"
                        },
                        {
                          "value": "zh-Hans",
                          "label": "Simplified Chinese"
                        },
                        {
                          "value": "zh-Hant",
                          "label": "Traditional Chinese"
                        },
                        {
                          "value": "pl",
                          "label": "Polish"
                        },
                        {
                          "value": "nl",
                          "label": "Dutch"
                        },
                        {
                          "value": "id",
                          "label": "Indonesian"
                        },
                        {
                          "value": "vi",
                          "label": "Vietnamese"
                        },
                        {
                          "value": "hi",
                          "label": "Hindi"
                        },
                        {
                          "value": "th",
                          "label": "Thai"
                        },
                        {
                          "value": "sv",
                          "label": "Swedish"
                        },
                        {
                          "value": "uk",
                          "label": "Ukrainian"
                        },
                        {
                          "value": "he",
                          "label": "Hebrew"
                        },
                        {
                          "value": "da",
                          "label": "Danish"
                        },
                        {
                          "value": "ro",
                          "label": "Romanian"
                        },
                        {
                          "value": "cs",
                          "label": "Czech"
                        },
                        {
                          "value": "no",
                          "label": "Norwegian"
                        },
                        {
                          "value": "el",
                          "label": "Greek"
                        },
                        {
                          "value": "fi",
                          "label": "Finnish"
                        },
                        {
                          "value": "hu",
                          "label": "Hungarian"
                        },
                        {
                          "value": "ms",
                          "label": "Malay"
                        },
                        {
                          "value": "bg",
                          "label": "Bulgarian"
                        },
                        {
                          "value": "sk",
                          "label": "Slovak"
                        },
                        {
                          "value": "sr",
                          "label": "Serbian"
                        },
                        {
                          "value": "hr",
                          "label": "Croatian"
                        },
                        {
                          "value": "sq",
                          "label": "Albanian"
                        },
                        {
                          "value": "lt",
                          "label": "Lithuanian"
                        },
                        {
                          "value": "fa",
                          "label": "Persian"
                        },
                        {
                          "value": "et",
                          "label": "Estonian"
                        },
                        {
                          "value": "lv",
                          "label": "Latvian"
                        },
                        {
                          "value": "sl",
                          "label": "Slovenian"
                        },
                        {
                          "value": "az",
                          "label": "Azerbaijani"
                        },
                        {
                          "value": "ka",
                          "label": "Georgian"
                        },
                        {
                          "value": "fil",
                          "label": "Filipino"
                        },
                        {
                          "value": "ur",
                          "label": "Urdu"
                        },
                        {
                          "value": "bn",
                          "label": "Bangla"
                        },
                        {
                          "value": "uz",
                          "label": "Uzbek"
                        },
                        {
                          "value": "kk",
                          "label": "Kazakh"
                        },
                        {
                          "value": "bs",
                          "label": "Bosnian"
                        },
                        {
                          "value": "hy",
                          "label": "Armenian"
                        },
                        {
                          "value": "mk",
                          "label": "Macedonian"
                        },
                        {
                          "value": "ky",
                          "label": "Kyrgyz"
                        },
                        {
                          "value": "km",
                          "label": "Khmer"
                        },
                        {
                          "value": "ca",
                          "label": "Catalan"
                        },
                        {
                          "value": "sw",
                          "label": "Swahili"
                        },
                        {
                          "value": "ta",
                          "label": "Tamil"
                        },
                        {
                          "value": "is",
                          "label": "Icelandic"
                        },
                        {
                          "value": "ne",
                          "label": "Nepali"
                        },
                        {
                          "value": "te",
                          "label": "Telugu"
                        },
                        {
                          "value": "mr",
                          "label": "Marathi"
                        },
                        {
                          "value": "ku",
                          "label": "Kurdish"
                        },
                        {
                          "value": "lo",
                          "label": "Lao"
                        },
                        {
                          "value": "my",
                          "label": "Burmese"
                        },
                        {
                          "value": "mn",
                          "label": "Mongolian"
                        },
                        {
                          "value": "si",
                          "label": "Sinhala"
                        },
                        {
                          "value": "gu",
                          "label": "Gujarati"
                        },
                        {
                          "value": "kn",
                          "label": "Kannada"
                        },
                        {
                          "value": "ml",
                          "label": "Malayalam"
                        },
                        {
                          "value": "pa",
                          "label": "Punjabi"
                        },
                        {
                          "value": "am",
                          "label": "Amharic"
                        },
                        {
                          "value": "af",
                          "label": "Afrikaans"
                        },
                        {
                          "value": "eu",
                          "label": "Basque"
                        },
                        {
                          "value": "gl",
                          "label": "Galician"
                        },
                        {
                          "value": "ga",
                          "label": "Irish"
                        },
                        {
                          "value": "cy",
                          "label": "Welsh"
                        },
                        {
                          "value": "mt",
                          "label": "Maltese"
                        },
                        {
                          "value": "lb",
                          "label": "Luxembourgish"
                        },
                        {
                          "value": "be",
                          "label": "Belarusian"
                        },
                        {
                          "value": "tg",
                          "label": "Tajik"
                        },
                        {
                          "value": "tk",
                          "label": "Turkmen"
                        },
                        {
                          "value": "ps",
                          "label": "Pashto"
                        }
                      ]
                    },
                    {
                      "id": "facts.payments",
                      "group": "buying",
                      "label": "Payment methods",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "card",
                        "card:visa"
                      ],
                      "options": [
                        {
                          "value": "card",
                          "label": "Card"
                        },
                        {
                          "value": "card:visa",
                          "label": "Card · Visa"
                        },
                        {
                          "value": "card:mastercard",
                          "label": "Card · Mastercard"
                        },
                        {
                          "value": "card:amex",
                          "label": "Card · American Express"
                        },
                        {
                          "value": "card:discover",
                          "label": "Card · Discover"
                        },
                        {
                          "value": "card:jcb",
                          "label": "Card · JCB"
                        },
                        {
                          "value": "card:union-pay",
                          "label": "Card · UnionPay"
                        },
                        {
                          "value": "card:diners",
                          "label": "Card · Diners Club"
                        },
                        {
                          "value": "card:maestro",
                          "label": "Card · Maestro"
                        },
                        {
                          "value": "card:cartes-bancaires",
                          "label": "Card · Cartes Bancaires"
                        },
                        {
                          "value": "card:mir",
                          "label": "Card · Mir"
                        },
                        {
                          "value": "card:elo",
                          "label": "Card · Elo"
                        },
                        {
                          "value": "card:rupay",
                          "label": "Card · RuPay"
                        },
                        {
                          "value": "card:troy",
                          "label": "Card · Troy"
                        },
                        {
                          "value": "card:interac",
                          "label": "Card · Interac"
                        },
                        {
                          "value": "paypal",
                          "label": "PayPal"
                        },
                        {
                          "value": "apple-pay",
                          "label": "Apple Pay"
                        },
                        {
                          "value": "google-pay",
                          "label": "Google Pay"
                        },
                        {
                          "value": "alipay",
                          "label": "Alipay"
                        },
                        {
                          "value": "wechat-pay",
                          "label": "WeChat Pay"
                        },
                        {
                          "value": "klarna",
                          "label": "Klarna"
                        },
                        {
                          "value": "ideal",
                          "label": "iDEAL"
                        },
                        {
                          "value": "bancontact",
                          "label": "Bancontact"
                        },
                        {
                          "value": "amazon-pay",
                          "label": "Amazon Pay"
                        },
                        {
                          "value": "bank-transfer",
                          "label": "Bank transfer"
                        },
                        {
                          "value": "crypto",
                          "label": "Crypto"
                        },
                        {
                          "value": "shop-pay",
                          "label": "Shop Pay"
                        },
                        {
                          "value": "link",
                          "label": "Link"
                        },
                        {
                          "value": "revolut-pay",
                          "label": "Revolut Pay"
                        },
                        {
                          "value": "blik",
                          "label": "BLIK"
                        },
                        {
                          "value": "twint",
                          "label": "TWINT"
                        },
                        {
                          "value": "pix",
                          "label": "Pix"
                        },
                        {
                          "value": "upi",
                          "label": "UPI"
                        },
                        {
                          "value": "paypay",
                          "label": "PayPay"
                        },
                        {
                          "value": "kakao-pay",
                          "label": "Kakao Pay"
                        },
                        {
                          "value": "naver-pay",
                          "label": "Naver Pay"
                        },
                        {
                          "value": "grabpay",
                          "label": "GrabPay"
                        },
                        {
                          "value": "gcash",
                          "label": "GCash"
                        },
                        {
                          "value": "union-pay",
                          "label": "UnionPay"
                        },
                        {
                          "value": "mobile-pay",
                          "label": "Mobile wallet"
                        },
                        {
                          "value": "internet-banking",
                          "label": "Online banking"
                        },
                        {
                          "value": "convenience-store",
                          "label": "Convenience store"
                        },
                        {
                          "value": "sofort",
                          "label": "Sofort"
                        },
                        {
                          "value": "account-balance",
                          "label": "Account balance"
                        },
                        {
                          "value": "affirm",
                          "label": "Affirm"
                        },
                        {
                          "value": "aftee",
                          "label": "AFTEE"
                        },
                        {
                          "value": "afterpay",
                          "label": "Afterpay"
                        },
                        {
                          "value": "airline-miles",
                          "label": "Airline miles"
                        },
                        {
                          "value": "airmoney",
                          "label": "AirMoney"
                        },
                        {
                          "value": "airtel-money",
                          "label": "Airtel Money"
                        },
                        {
                          "value": "alipayhk",
                          "label": "AlipayHK"
                        },
                        {
                          "value": "alocash",
                          "label": "AloCash"
                        },
                        {
                          "value": "app-store",
                          "label": "App store billing"
                        },
                        {
                          "value": "arca",
                          "label": "ArCa"
                        },
                        {
                          "value": "atm-bersama",
                          "label": "ATM Bersama"
                        },
                        {
                          "value": "atome",
                          "label": "Atome"
                        },
                        {
                          "value": "au-pay",
                          "label": "au PAY"
                        },
                        {
                          "value": "bancomat-pay",
                          "label": "BANCOMAT Pay"
                        },
                        {
                          "value": "bangkok-bank",
                          "label": "Bangkok Bank"
                        },
                        {
                          "value": "baridimob",
                          "label": "BaridiMob"
                        },
                        {
                          "value": "bca",
                          "label": "BCA"
                        },
                        {
                          "value": "benefit",
                          "label": "BenefitPay"
                        },
                        {
                          "value": "billease",
                          "label": "BillEase"
                        },
                        {
                          "value": "billie",
                          "label": "Billie"
                        },
                        {
                          "value": "binance-pay",
                          "label": "Binance Pay"
                        },
                        {
                          "value": "bit",
                          "label": "Bit"
                        },
                        {
                          "value": "bizum",
                          "label": "Bizum"
                        },
                        {
                          "value": "bkash",
                          "label": "bKash"
                        },
                        {
                          "value": "bni",
                          "label": "BNI"
                        },
                        {
                          "value": "boost",
                          "label": "Boost"
                        },
                        {
                          "value": "bpi",
                          "label": "BPI"
                        },
                        {
                          "value": "bre-b",
                          "label": "Bre-B"
                        },
                        {
                          "value": "bsi",
                          "label": "BSI"
                        },
                        {
                          "value": "carrier-billing",
                          "label": "Carrier billing"
                        },
                        {
                          "value": "cash",
                          "label": "Cash"
                        },
                        {
                          "value": "cash-app-pay",
                          "label": "Cash App Pay"
                        },
                        {
                          "value": "cib",
                          "label": "CIB"
                        },
                        {
                          "value": "cimb-niaga",
                          "label": "CIMB Niaga"
                        },
                        {
                          "value": "click",
                          "label": "Click"
                        },
                        {
                          "value": "comnpay",
                          "label": "ComNpay"
                        },
                        {
                          "value": "dana",
                          "label": "DANA"
                        },
                        {
                          "value": "daviplata",
                          "label": "DaviPlata"
                        },
                        {
                          "value": "duitnow",
                          "label": "DuitNow"
                        },
                        {
                          "value": "d-barai",
                          "label": "d払い (d Barai)"
                        },
                        {
                          "value": "easy-pay",
                          "label": "EasyPay"
                        },
                        {
                          "value": "edahabia",
                          "label": "Edahabia"
                        },
                        {
                          "value": "eps",
                          "label": "EPS"
                        },
                        {
                          "value": "famipay",
                          "label": "FamiPay"
                        },
                        {
                          "value": "fib",
                          "label": "FIB (First Iraqi Bank)"
                        },
                        {
                          "value": "fpx",
                          "label": "FPX"
                        },
                        {
                          "value": "giropay",
                          "label": "giropay"
                        },
                        {
                          "value": "gjirafa-money",
                          "label": "Gjirafa Money"
                        },
                        {
                          "value": "gopay",
                          "label": "GoPay"
                        },
                        {
                          "value": "gsb",
                          "label": "Government Savings Bank"
                        },
                        {
                          "value": "halyk-qr",
                          "label": "Halyk QR"
                        },
                        {
                          "value": "hi-wallet",
                          "label": "hi! wallet"
                        },
                        {
                          "value": "hipay",
                          "label": "HiPay"
                        },
                        {
                          "value": "humo",
                          "label": "Humo"
                        },
                        {
                          "value": "idram",
                          "label": "Idram"
                        },
                        {
                          "value": "invoice",
                          "label": "Invoice"
                        },
                        {
                          "value": "iris",
                          "label": "IRIS"
                        },
                        {
                          "value": "iyzico",
                          "label": "iyzico"
                        },
                        {
                          "value": "izipay",
                          "label": "Izipay"
                        },
                        {
                          "value": "jkopay",
                          "label": "JKOPay"
                        },
                        {
                          "value": "kplus",
                          "label": "K PLUS"
                        },
                        {
                          "value": "kaspi",
                          "label": "Kaspi.kz"
                        },
                        {
                          "value": "kbank",
                          "label": "KBank"
                        },
                        {
                          "value": "kbc-cbc",
                          "label": "KBC/CBC Payment Button"
                        },
                        {
                          "value": "khqr",
                          "label": "KHQR"
                        },
                        {
                          "value": "knet",
                          "label": "KNET"
                        },
                        {
                          "value": "kredivo",
                          "label": "Kredivo"
                        },
                        {
                          "value": "krungsri",
                          "label": "Krungsri (Bank of Ayudhya)"
                        },
                        {
                          "value": "krungthai",
                          "label": "Krungthai Bank"
                        },
                        {
                          "value": "kueski-pay",
                          "label": "Kueski Pay"
                        },
                        {
                          "value": "line-pay",
                          "label": "LINE Pay"
                        },
                        {
                          "value": "line-pay-jp",
                          "label": "LINE Pay"
                        },
                        {
                          "value": "linkaja",
                          "label": "LinkAja"
                        },
                        {
                          "value": "m-pesa",
                          "label": "M-PESA"
                        },
                        {
                          "value": "machbank",
                          "label": "MACHBANK"
                        },
                        {
                          "value": "mada",
                          "label": "mada"
                        },
                        {
                          "value": "maya",
                          "label": "Maya"
                        },
                        {
                          "value": "mb-way",
                          "label": "MB WAY"
                        },
                        {
                          "value": "mercado-pago",
                          "label": "Mercado Pago"
                        },
                        {
                          "value": "merpay",
                          "label": "Merpay"
                        },
                        {
                          "value": "mir-sbp",
                          "label": "Mir / SBP"
                        },
                        {
                          "value": "mir-pay",
                          "label": "Mir Pay"
                        },
                        {
                          "value": "mobile-money",
                          "label": "Mobile money"
                        },
                        {
                          "value": "mobilepay",
                          "label": "MobilePay"
                        },
                        {
                          "value": "modo",
                          "label": "MODO"
                        },
                        {
                          "value": "momo",
                          "label": "MoMo"
                        },
                        {
                          "value": "mpay",
                          "label": "MPay"
                        },
                        {
                          "value": "multibanco",
                          "label": "Multibanco"
                        },
                        {
                          "value": "n26-account",
                          "label": "N26"
                        },
                        {
                          "value": "nagad",
                          "label": "Nagad"
                        },
                        {
                          "value": "octo",
                          "label": "Octo"
                        },
                        {
                          "value": "octopus",
                          "label": "Octopus"
                        },
                        {
                          "value": "omannet",
                          "label": "OmanNet"
                        },
                        {
                          "value": "onepay",
                          "label": "OnePay"
                        },
                        {
                          "value": "ovo",
                          "label": "OVO"
                        },
                        {
                          "value": "pagaleve",
                          "label": "Pagaleve"
                        },
                        {
                          "value": "paidy",
                          "label": "Paidy"
                        },
                        {
                          "value": "pay-easy",
                          "label": "Pay-easy"
                        },
                        {
                          "value": "payco",
                          "label": "PAYCO"
                        },
                        {
                          "value": "payconiq",
                          "label": "Payconiq"
                        },
                        {
                          "value": "payme",
                          "label": "PayMe"
                        },
                        {
                          "value": "paynow",
                          "label": "PayNow"
                        },
                        {
                          "value": "paypo",
                          "label": "PayPo"
                        },
                        {
                          "value": "paysafecard",
                          "label": "paysafecard"
                        },
                        {
                          "value": "paysera",
                          "label": "Paysera"
                        },
                        {
                          "value": "paytm",
                          "label": "Paytm"
                        },
                        {
                          "value": "payu",
                          "label": "PayU"
                        },
                        {
                          "value": "permata",
                          "label": "PermataBank"
                        },
                        {
                          "value": "picpay",
                          "label": "PicPay"
                        },
                        {
                          "value": "postfinance",
                          "label": "PostFinance"
                        },
                        {
                          "value": "promptpay",
                          "label": "PromptPay"
                        },
                        {
                          "value": "przelewy24",
                          "label": "Przelewy24"
                        },
                        {
                          "value": "pse",
                          "label": "PSE"
                        },
                        {
                          "value": "qiwi",
                          "label": "QIWI"
                        },
                        {
                          "value": "qr-code",
                          "label": "QR payment"
                        },
                        {
                          "value": "qrph",
                          "label": "QR Ph"
                        },
                        {
                          "value": "qris",
                          "label": "QRIS"
                        },
                        {
                          "value": "rabbit-line-pay",
                          "label": "Rabbit LINE Pay"
                        },
                        {
                          "value": "rakuten-pay",
                          "label": "Rakuten Pay"
                        },
                        {
                          "value": "razorpay",
                          "label": "Razorpay"
                        },
                        {
                          "value": "rocket",
                          "label": "Rocket"
                        },
                        {
                          "value": "samsung-pay",
                          "label": "Samsung Pay"
                        },
                        {
                          "value": "satispay",
                          "label": "Satispay"
                        },
                        {
                          "value": "sberpay",
                          "label": "SberPay"
                        },
                        {
                          "value": "sbp",
                          "label": "SBP"
                        },
                        {
                          "value": "scalapay",
                          "label": "Scalapay"
                        },
                        {
                          "value": "scb-easy",
                          "label": "SCB Easy"
                        },
                        {
                          "value": "sequra",
                          "label": "seQura"
                        },
                        {
                          "value": "shopback",
                          "label": "ShopBack"
                        },
                        {
                          "value": "shopeepay",
                          "label": "ShopeePay"
                        },
                        {
                          "value": "shoreaccess-pay",
                          "label": "ShoreAccess Pay"
                        },
                        {
                          "value": "stc-pay",
                          "label": "stc pay"
                        },
                        {
                          "value": "swish",
                          "label": "Swish"
                        },
                        {
                          "value": "t-wallet",
                          "label": "T-Wallet"
                        },
                        {
                          "value": "tabby",
                          "label": "Tabby"
                        },
                        {
                          "value": "tamara",
                          "label": "Tamara"
                        },
                        {
                          "value": "telegram-stars",
                          "label": "Telegram Stars"
                        },
                        {
                          "value": "tiko",
                          "label": "Tiko"
                        },
                        {
                          "value": "tinaba",
                          "label": "Tinaba"
                        },
                        {
                          "value": "ton",
                          "label": "TON"
                        },
                        {
                          "value": "toss-pay",
                          "label": "Toss Pay"
                        },
                        {
                          "value": "touch-n-go",
                          "label": "Touch 'n Go eWallet"
                        },
                        {
                          "value": "truemoney",
                          "label": "TrueMoney"
                        },
                        {
                          "value": "trustly",
                          "label": "Trustly"
                        },
                        {
                          "value": "unionbank",
                          "label": "UnionBank"
                        },
                        {
                          "value": "upay",
                          "label": "Upay"
                        },
                        {
                          "value": "uzcard",
                          "label": "Uzcard"
                        },
                        {
                          "value": "venmo",
                          "label": "Venmo"
                        },
                        {
                          "value": "verum-pay",
                          "label": "Verum Pay"
                        },
                        {
                          "value": "vietqr",
                          "label": "VietQR"
                        },
                        {
                          "value": "viettel-money",
                          "label": "Viettel Money"
                        },
                        {
                          "value": "vipps",
                          "label": "Vipps"
                        },
                        {
                          "value": "vnpay",
                          "label": "VNPAY"
                        },
                        {
                          "value": "voucher",
                          "label": "Voucher"
                        },
                        {
                          "value": "wero",
                          "label": "Wero"
                        },
                        {
                          "value": "wise",
                          "label": "Wise"
                        },
                        {
                          "value": "xcoins",
                          "label": "Xcoins"
                        },
                        {
                          "value": "yape",
                          "label": "Yape"
                        },
                        {
                          "value": "yoomoney",
                          "label": "YooMoney"
                        },
                        {
                          "value": "zalopay",
                          "label": "ZaloPay"
                        }
                      ],
                      "own_entries": true
                    },
                    {
                      "id": "facts.currencies",
                      "group": "buying",
                      "label": "Currencies charged",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "USD",
                        "EUR"
                      ],
                      "options": [
                        {
                          "value": "USD",
                          "label": "USD · US Dollar"
                        },
                        {
                          "value": "EUR",
                          "label": "EUR · Euro"
                        },
                        {
                          "value": "GBP",
                          "label": "GBP · British Pound"
                        },
                        {
                          "value": "JPY",
                          "label": "JPY · Japanese Yen"
                        },
                        {
                          "value": "AUD",
                          "label": "AUD · Australian Dollar"
                        },
                        {
                          "value": "CAD",
                          "label": "CAD · Canadian Dollar"
                        },
                        {
                          "value": "CHF",
                          "label": "CHF · Swiss Franc"
                        },
                        {
                          "value": "CNY",
                          "label": "CNY · Chinese Yuan"
                        },
                        {
                          "value": "HKD",
                          "label": "HKD · Hong Kong Dollar"
                        },
                        {
                          "value": "SGD",
                          "label": "SGD · Singapore Dollar"
                        },
                        {
                          "value": "KRW",
                          "label": "KRW · South Korean Won"
                        },
                        {
                          "value": "TWD",
                          "label": "TWD · New Taiwan Dollar"
                        },
                        {
                          "value": "INR",
                          "label": "INR · Indian Rupee"
                        },
                        {
                          "value": "BRL",
                          "label": "BRL · Brazilian Real"
                        },
                        {
                          "value": "MXN",
                          "label": "MXN · Mexican Peso"
                        },
                        {
                          "value": "AED",
                          "label": "AED · United Arab Emirates Dirham"
                        },
                        {
                          "value": "AFN",
                          "label": "AFN · Afghan Afghani"
                        },
                        {
                          "value": "ALL",
                          "label": "ALL · Albanian Lek"
                        },
                        {
                          "value": "AMD",
                          "label": "AMD · Armenian Dram"
                        },
                        {
                          "value": "ANG",
                          "label": "ANG · Netherlands Antillean Guilder"
                        },
                        {
                          "value": "AOA",
                          "label": "AOA · Angolan Kwanza"
                        },
                        {
                          "value": "ARS",
                          "label": "ARS · Argentine Peso"
                        },
                        {
                          "value": "AWG",
                          "label": "AWG · Aruban Florin"
                        },
                        {
                          "value": "AZN",
                          "label": "AZN · Azerbaijani Manat"
                        },
                        {
                          "value": "BAM",
                          "label": "BAM · Bosnia-Herzegovina Convertible Mark"
                        },
                        {
                          "value": "BBD",
                          "label": "BBD · Barbadian Dollar"
                        },
                        {
                          "value": "BDT",
                          "label": "BDT · Bangladeshi Taka"
                        },
                        {
                          "value": "BGN",
                          "label": "BGN · Bulgarian Lev"
                        },
                        {
                          "value": "BHD",
                          "label": "BHD · Bahraini Dinar"
                        },
                        {
                          "value": "BIF",
                          "label": "BIF · Burundian Franc"
                        },
                        {
                          "value": "BMD",
                          "label": "BMD · Bermudan Dollar"
                        },
                        {
                          "value": "BND",
                          "label": "BND · Brunei Dollar"
                        },
                        {
                          "value": "BOB",
                          "label": "BOB · Bolivian Boliviano"
                        },
                        {
                          "value": "BSD",
                          "label": "BSD · Bahamian Dollar"
                        },
                        {
                          "value": "BTN",
                          "label": "BTN · Bhutanese Ngultrum"
                        },
                        {
                          "value": "BWP",
                          "label": "BWP · Botswanan Pula"
                        },
                        {
                          "value": "BYN",
                          "label": "BYN · Belarusian Ruble"
                        },
                        {
                          "value": "BZD",
                          "label": "BZD · Belize Dollar"
                        },
                        {
                          "value": "CDF",
                          "label": "CDF · Congolese Franc"
                        },
                        {
                          "value": "CLP",
                          "label": "CLP · Chilean Peso"
                        },
                        {
                          "value": "COP",
                          "label": "COP · Colombian Peso"
                        },
                        {
                          "value": "CRC",
                          "label": "CRC · Costa Rican Colón"
                        },
                        {
                          "value": "CUC",
                          "label": "CUC · Cuban Convertible Peso"
                        },
                        {
                          "value": "CUP",
                          "label": "CUP · Cuban Peso"
                        },
                        {
                          "value": "CVE",
                          "label": "CVE · Cape Verdean Escudo"
                        },
                        {
                          "value": "CZK",
                          "label": "CZK · Czech Koruna"
                        },
                        {
                          "value": "DJF",
                          "label": "DJF · Djiboutian Franc"
                        },
                        {
                          "value": "DKK",
                          "label": "DKK · Danish Krone"
                        },
                        {
                          "value": "DOP",
                          "label": "DOP · Dominican Peso"
                        },
                        {
                          "value": "DZD",
                          "label": "DZD · Algerian Dinar"
                        },
                        {
                          "value": "EGP",
                          "label": "EGP · Egyptian Pound"
                        },
                        {
                          "value": "ERN",
                          "label": "ERN · Eritrean Nakfa"
                        },
                        {
                          "value": "ETB",
                          "label": "ETB · Ethiopian Birr"
                        },
                        {
                          "value": "FJD",
                          "label": "FJD · Fijian Dollar"
                        },
                        {
                          "value": "FKP",
                          "label": "FKP · Falkland Islands Pound"
                        },
                        {
                          "value": "GEL",
                          "label": "GEL · Georgian Lari"
                        },
                        {
                          "value": "GHS",
                          "label": "GHS · Ghanaian Cedi"
                        },
                        {
                          "value": "GIP",
                          "label": "GIP · Gibraltar Pound"
                        },
                        {
                          "value": "GMD",
                          "label": "GMD · Gambian Dalasi"
                        },
                        {
                          "value": "GNF",
                          "label": "GNF · Guinean Franc"
                        },
                        {
                          "value": "GTQ",
                          "label": "GTQ · Guatemalan Quetzal"
                        },
                        {
                          "value": "GYD",
                          "label": "GYD · Guyanaese Dollar"
                        },
                        {
                          "value": "HNL",
                          "label": "HNL · Honduran Lempira"
                        },
                        {
                          "value": "HRK",
                          "label": "HRK · Croatian Kuna"
                        },
                        {
                          "value": "HTG",
                          "label": "HTG · Haitian Gourde"
                        },
                        {
                          "value": "HUF",
                          "label": "HUF · Hungarian Forint"
                        },
                        {
                          "value": "IDR",
                          "label": "IDR · Indonesian Rupiah"
                        },
                        {
                          "value": "ILS",
                          "label": "ILS · Israeli New Shekel"
                        },
                        {
                          "value": "IQD",
                          "label": "IQD · Iraqi Dinar"
                        },
                        {
                          "value": "IRR",
                          "label": "IRR · Iranian Rial"
                        },
                        {
                          "value": "ISK",
                          "label": "ISK · Icelandic Króna"
                        },
                        {
                          "value": "JMD",
                          "label": "JMD · Jamaican Dollar"
                        },
                        {
                          "value": "JOD",
                          "label": "JOD · Jordanian Dinar"
                        },
                        {
                          "value": "KES",
                          "label": "KES · Kenyan Shilling"
                        },
                        {
                          "value": "KGS",
                          "label": "KGS · Kyrgyz Som"
                        },
                        {
                          "value": "KHR",
                          "label": "KHR · Cambodian Riel"
                        },
                        {
                          "value": "KMF",
                          "label": "KMF · Comorian Franc"
                        },
                        {
                          "value": "KPW",
                          "label": "KPW · North Korean Won"
                        },
                        {
                          "value": "KWD",
                          "label": "KWD · Kuwaiti Dinar"
                        },
                        {
                          "value": "KYD",
                          "label": "KYD · Cayman Islands Dollar"
                        },
                        {
                          "value": "KZT",
                          "label": "KZT · Kazakhstani Tenge"
                        },
                        {
                          "value": "LAK",
                          "label": "LAK · Laotian Kip"
                        },
                        {
                          "value": "LBP",
                          "label": "LBP · Lebanese Pound"
                        },
                        {
                          "value": "LKR",
                          "label": "LKR · Sri Lankan Rupee"
                        },
                        {
                          "value": "LRD",
                          "label": "LRD · Liberian Dollar"
                        },
                        {
                          "value": "LSL",
                          "label": "LSL · Lesotho Loti"
                        },
                        {
                          "value": "LYD",
                          "label": "LYD · Libyan Dinar"
                        },
                        {
                          "value": "MAD",
                          "label": "MAD · Moroccan Dirham"
                        },
                        {
                          "value": "MDL",
                          "label": "MDL · Moldovan Leu"
                        },
                        {
                          "value": "MGA",
                          "label": "MGA · Malagasy Ariary"
                        },
                        {
                          "value": "MKD",
                          "label": "MKD · Macedonian Denar"
                        },
                        {
                          "value": "MMK",
                          "label": "MMK · Myanmar Kyat"
                        },
                        {
                          "value": "MNT",
                          "label": "MNT · Mongolian Tugrik"
                        },
                        {
                          "value": "MOP",
                          "label": "MOP · Macanese Pataca"
                        },
                        {
                          "value": "MRU",
                          "label": "MRU · Mauritanian Ouguiya"
                        },
                        {
                          "value": "MUR",
                          "label": "MUR · Mauritian Rupee"
                        },
                        {
                          "value": "MVR",
                          "label": "MVR · Maldivian Rufiyaa"
                        },
                        {
                          "value": "MWK",
                          "label": "MWK · Malawian Kwacha"
                        },
                        {
                          "value": "MYR",
                          "label": "MYR · Malaysian Ringgit"
                        },
                        {
                          "value": "MZN",
                          "label": "MZN · Mozambican Metical"
                        },
                        {
                          "value": "NAD",
                          "label": "NAD · Namibian Dollar"
                        },
                        {
                          "value": "NGN",
                          "label": "NGN · Nigerian Naira"
                        },
                        {
                          "value": "NIO",
                          "label": "NIO · Nicaraguan Córdoba"
                        },
                        {
                          "value": "NOK",
                          "label": "NOK · Norwegian Krone"
                        },
                        {
                          "value": "NPR",
                          "label": "NPR · Nepalese Rupee"
                        },
                        {
                          "value": "NZD",
                          "label": "NZD · New Zealand Dollar"
                        },
                        {
                          "value": "OMR",
                          "label": "OMR · Omani Rial"
                        },
                        {
                          "value": "PAB",
                          "label": "PAB · Panamanian Balboa"
                        },
                        {
                          "value": "PEN",
                          "label": "PEN · Peruvian Sol"
                        },
                        {
                          "value": "PGK",
                          "label": "PGK · Papua New Guinean Kina"
                        },
                        {
                          "value": "PHP",
                          "label": "PHP · Philippine Peso"
                        },
                        {
                          "value": "PKR",
                          "label": "PKR · Pakistani Rupee"
                        },
                        {
                          "value": "PLN",
                          "label": "PLN · Polish Zloty"
                        },
                        {
                          "value": "PYG",
                          "label": "PYG · Paraguayan Guarani"
                        },
                        {
                          "value": "QAR",
                          "label": "QAR · Qatari Riyal"
                        },
                        {
                          "value": "RON",
                          "label": "RON · Romanian Leu"
                        },
                        {
                          "value": "RSD",
                          "label": "RSD · Serbian Dinar"
                        },
                        {
                          "value": "RUB",
                          "label": "RUB · Russian Ruble"
                        },
                        {
                          "value": "RWF",
                          "label": "RWF · Rwandan Franc"
                        },
                        {
                          "value": "SAR",
                          "label": "SAR · Saudi Riyal"
                        },
                        {
                          "value": "SBD",
                          "label": "SBD · Solomon Islands Dollar"
                        },
                        {
                          "value": "SCR",
                          "label": "SCR · Seychellois Rupee"
                        },
                        {
                          "value": "SDG",
                          "label": "SDG · Sudanese Pound"
                        },
                        {
                          "value": "SEK",
                          "label": "SEK · Swedish Krona"
                        },
                        {
                          "value": "SHP",
                          "label": "SHP · St. Helena Pound"
                        },
                        {
                          "value": "SLL",
                          "label": "SLL · Sierra Leonean Leone (1964—2022)"
                        },
                        {
                          "value": "SOS",
                          "label": "SOS · Somali Shilling"
                        },
                        {
                          "value": "SRD",
                          "label": "SRD · Surinamese Dollar"
                        },
                        {
                          "value": "SSP",
                          "label": "SSP · South Sudanese Pound"
                        },
                        {
                          "value": "STN",
                          "label": "STN · São Tomé & Príncipe Dobra"
                        },
                        {
                          "value": "SVC",
                          "label": "SVC · Salvadoran Colón"
                        },
                        {
                          "value": "SYP",
                          "label": "SYP · Syrian Pound"
                        },
                        {
                          "value": "SZL",
                          "label": "SZL · Swazi Lilangeni"
                        },
                        {
                          "value": "THB",
                          "label": "THB · Thai Baht"
                        },
                        {
                          "value": "TJS",
                          "label": "TJS · Tajikistani Somoni"
                        },
                        {
                          "value": "TMT",
                          "label": "TMT · Turkmenistani Manat"
                        },
                        {
                          "value": "TND",
                          "label": "TND · Tunisian Dinar"
                        },
                        {
                          "value": "TOP",
                          "label": "TOP · Tongan Paʻanga"
                        },
                        {
                          "value": "TRY",
                          "label": "TRY · Turkish Lira"
                        },
                        {
                          "value": "TTD",
                          "label": "TTD · Trinidad & Tobago Dollar"
                        },
                        {
                          "value": "TZS",
                          "label": "TZS · Tanzanian Shilling"
                        },
                        {
                          "value": "UAH",
                          "label": "UAH · Ukrainian Hryvnia"
                        },
                        {
                          "value": "UGX",
                          "label": "UGX · Ugandan Shilling"
                        },
                        {
                          "value": "UYU",
                          "label": "UYU · Uruguayan Peso"
                        },
                        {
                          "value": "UZS",
                          "label": "UZS · Uzbekistani Som"
                        },
                        {
                          "value": "VES",
                          "label": "VES · Venezuelan Bolívar"
                        },
                        {
                          "value": "VND",
                          "label": "VND · Vietnamese Dong"
                        },
                        {
                          "value": "VUV",
                          "label": "VUV · Vanuatu Vatu"
                        },
                        {
                          "value": "WST",
                          "label": "WST · Samoan Tala"
                        },
                        {
                          "value": "XAF",
                          "label": "XAF · Central African CFA Franc"
                        },
                        {
                          "value": "XCD",
                          "label": "XCD · East Caribbean Dollar"
                        },
                        {
                          "value": "XDR",
                          "label": "XDR · Special Drawing Rights"
                        },
                        {
                          "value": "XOF",
                          "label": "XOF · West African CFA Franc"
                        },
                        {
                          "value": "XPF",
                          "label": "XPF · CFP Franc"
                        },
                        {
                          "value": "XSU",
                          "label": "XSU · Sucre"
                        },
                        {
                          "value": "YER",
                          "label": "YER · Yemeni Rial"
                        },
                        {
                          "value": "ZAR",
                          "label": "ZAR · South African Rand"
                        },
                        {
                          "value": "ZMW",
                          "label": "ZMW · Zambian Kwacha"
                        },
                        {
                          "value": "ZWL",
                          "label": "ZWL · Zimbabwean Dollar (2009–2024)"
                        }
                      ]
                    },
                    {
                      "id": "facts.login",
                      "group": "buying",
                      "label": "Sign-in",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "email-password",
                        "email-code"
                      ],
                      "options": [
                        {
                          "value": "email-password",
                          "label": "Email and password"
                        },
                        {
                          "value": "email-code",
                          "label": "Email code"
                        },
                        {
                          "value": "email",
                          "label": "Email"
                        },
                        {
                          "value": "google",
                          "label": "Google"
                        },
                        {
                          "value": "apple",
                          "label": "Apple"
                        },
                        {
                          "value": "facebook",
                          "label": "Facebook"
                        },
                        {
                          "value": "phone",
                          "label": "Phone number"
                        },
                        {
                          "value": "line",
                          "label": "LINE"
                        },
                        {
                          "value": "wechat",
                          "label": "WeChat"
                        },
                        {
                          "value": "other:passkey",
                          "label": "Passkey"
                        },
                        {
                          "value": "other:kakao",
                          "label": "Kakao"
                        },
                        {
                          "value": "guest",
                          "label": "No account needed to buy"
                        }
                      ],
                      "own_entries": true
                    },
                    {
                      "id": "facts.idCheck",
                      "group": "buying",
                      "label": "ID check",
                      "type": "boolean",
                      "value": "true or false.",
                      "example": true
                    },
                    {
                      "id": "facts.delivery",
                      "group": "policies",
                      "label": "Install",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "qr-email",
                        "qr-account"
                      ],
                      "options": [
                        {
                          "value": "qr-email",
                          "label": "QR code by email"
                        },
                        {
                          "value": "qr-account",
                          "label": "QR code in the account"
                        },
                        {
                          "value": "qr-app",
                          "label": "QR code in the app"
                        },
                        {
                          "value": "app-install",
                          "label": "In the app"
                        },
                        {
                          "value": "ios-direct-install",
                          "label": "One-tap install on iPhone"
                        },
                        {
                          "value": "android-direct-install",
                          "label": "One-tap install on Android"
                        },
                        {
                          "value": "other:install-link",
                          "label": "Install link"
                        },
                        {
                          "value": "manual-code",
                          "label": "Manual activation code"
                        }
                      ],
                      "own_entries": true
                    },
                    {
                      "id": "terms.installAhead",
                      "group": "policies",
                      "label": "Install before the trip",
                      "type": "boolean",
                      "value": "true or false.",
                      "example": true
                    },
                    {
                      "id": "terms.activate",
                      "group": "policies",
                      "label": "Activation deadline",
                      "type": "activate",
                      "value": "{ \"days\": number of days, 0 for no deadline, or \"varies\", \"at\": \"auto\" | \"expires\" | null }",
                      "example": {
                        "days": 180,
                        "at": "expires"
                      }
                    },
                    {
                      "id": "terms.starts",
                      "group": "policies",
                      "label": "Validity starts",
                      "type": "option",
                      "value": "One of the option values, as a string.",
                      "example": "connect",
                      "options": [
                        {
                          "value": "connect",
                          "label": "When the eSIM first connects at the destination"
                        },
                        {
                          "value": "install",
                          "label": "When the eSIM is installed"
                        },
                        {
                          "value": "purchase",
                          "label": "At purchase"
                        },
                        {
                          "value": "varies",
                          "label": "Depends on the plan"
                        }
                      ]
                    },
                    {
                      "id": "terms.hotspot",
                      "group": "policies",
                      "label": "Hotspot",
                      "type": "option",
                      "value": "One of the option values, as a string.",
                      "example": "yes",
                      "options": [
                        {
                          "value": "yes",
                          "label": "Allowed on every plan"
                        },
                        {
                          "value": "varies",
                          "label": "Depends on the plan"
                        },
                        {
                          "value": "no",
                          "label": "Not allowed"
                        }
                      ]
                    },
                    {
                      "id": "facts.usage",
                      "group": "policies",
                      "label": "Data usage check",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "app",
                        "web-account"
                      ],
                      "options": [
                        {
                          "value": "app",
                          "label": "In the app"
                        },
                        {
                          "value": "web-account",
                          "label": "Web account"
                        },
                        {
                          "value": "email",
                          "label": "Email"
                        },
                        {
                          "value": "sms",
                          "label": "SMS"
                        },
                        {
                          "value": "ussd",
                          "label": "USSD code"
                        },
                        {
                          "value": "low-alert",
                          "label": "Alert when data runs low"
                        }
                      ],
                      "own_entries": true
                    },
                    {
                      "id": "facts.topUp",
                      "group": "policies",
                      "label": "Top-up",
                      "type": "option",
                      "value": "One of the option values, as a string.",
                      "example": "no",
                      "options": [
                        {
                          "value": "no",
                          "label": "Not available"
                        },
                        {
                          "value": "some",
                          "label": "On some plans"
                        },
                        {
                          "value": "yes",
                          "label": "On every plan"
                        },
                        {
                          "value": "auto",
                          "label": "On every plan, also automatic"
                        }
                      ]
                    },
                    {
                      "id": "facts.calls",
                      "group": "policies",
                      "label": "Calls",
                      "type": "option",
                      "value": "One of the option values, as a string.",
                      "example": "no",
                      "options": [
                        {
                          "value": "no",
                          "label": "Not included (data only)"
                        },
                        {
                          "value": "some",
                          "label": "On some plans"
                        },
                        {
                          "value": "yes",
                          "label": "On every plan"
                        }
                      ]
                    },
                    {
                      "id": "facts.sms",
                      "group": "policies",
                      "label": "Texts (SMS)",
                      "type": "option",
                      "value": "One of the option values, as a string.",
                      "example": "no",
                      "options": [
                        {
                          "value": "no",
                          "label": "Not included"
                        },
                        {
                          "value": "some",
                          "label": "On some plans"
                        },
                        {
                          "value": "yes",
                          "label": "On every plan"
                        }
                      ]
                    },
                    {
                      "id": "terms.refund",
                      "group": "support",
                      "label": "Refunds",
                      "type": "refund",
                      "value": "{ \"policy\": \"unused\" | \"case\" | \"never\", \"days\": number or null, \"excludes\": [] or [\"unlimited\"] }",
                      "example": {
                        "policy": "unused",
                        "days": 30,
                        "excludes": []
                      }
                    },
                    {
                      "id": "facts.support",
                      "group": "support",
                      "label": "Support channels",
                      "type": "options",
                      "value": "A list of option values. At least one.",
                      "example": [
                        "email",
                        "chat"
                      ],
                      "options": [
                        {
                          "value": "email",
                          "label": "Email"
                        },
                        {
                          "value": "chat",
                          "label": "Live chat"
                        },
                        {
                          "value": "whatsapp",
                          "label": "WhatsApp"
                        },
                        {
                          "value": "ticket",
                          "label": "Ticket form"
                        },
                        {
                          "value": "phone",
                          "label": "Phone"
                        },
                        {
                          "value": "telegram",
                          "label": "Telegram"
                        },
                        {
                          "value": "line",
                          "label": "LINE"
                        },
                        {
                          "value": "wechat",
                          "label": "WeChat"
                        },
                        {
                          "value": "other:messenger",
                          "label": "Messenger"
                        },
                        {
                          "value": "other:kakaotalk",
                          "label": "KakaoTalk"
                        },
                        {
                          "value": "other:in-app",
                          "label": "In-app chat"
                        },
                        {
                          "value": "other:chatbot",
                          "label": "Chatbot"
                        },
                        {
                          "value": "24-7",
                          "label": "Around the clock (24/7)"
                        }
                      ],
                      "own_entries": true
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "feed.ok": {
      "post": {
        "operationId": "on_feed_ok",
        "summary": "A read of the plan feed was accepted.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "feed.failed": {
      "post": {
        "operationId": "on_feed_failed",
        "summary": "A read was rejected, or the feed could not be fetched.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "feed.held": {
      "post": {
        "operationId": "on_feed_held",
        "summary": "A read was held back until the brand confirms it.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "fact.approved": {
      "post": {
        "operationId": "on_fact_approved",
        "summary": "A value that waited for review is in effect.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "fact.declined": {
      "post": {
        "operationId": "on_fact_declined",
        "summary": "A value that waited for review was declined.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "logo.approved": {
      "post": {
        "operationId": "on_logo_approved",
        "summary": "A logo that waited for review is in effect.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "logo.declined": {
      "post": {
        "operationId": "on_logo_declined",
        "summary": "A logo that waited for review was declined.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    },
    "test": {
      "post": {
        "operationId": "on_test",
        "summary": "Sent by POST /webhook/test.",
        "parameters": [
          {
            "name": "X-eSIMPricing-Event",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-eSIMPricing-Delivery",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The delivery's id; the same event retried keeps its id."
          },
          {
            "name": "X-eSIMPricing-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^t=\\d+,v1=[0-9a-f]{64}$"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\" under the webhook's secret>. Refuse a t more than five minutes old."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEvent"
              }
            }
          }
        },
        "responses": {
          "2XX": {
            "description": "Received. Answer within 5 seconds; anything else is retried up to 6 times over about a day."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "key": {
        "type": "http",
        "scheme": "bearer",
        "description": "A key made in the partner area: esp_…"
      }
    },
    "schemas": {
      "WebhookEvent": {
        "type": "object",
        "required": [
          "id",
          "event",
          "brand",
          "created_at",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "evt_…; an event delivered twice keeps its id"
          },
          "event": {
            "enum": [
              "feed.ok",
              "feed.failed",
              "feed.held",
              "fact.approved",
              "fact.declined",
              "logo.approved",
              "logo.declined",
              "test"
            ]
          },
          "brand": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "data": {
            "type": "object",
            "description": "feed.*: run, status, plans, errors, warnings, feed_status (+ reasons); fact.*: fact, value (+ reason); logo.declined: reason"
          }
        }
      },
      "Fact": {
        "type": "object",
        "required": [
          "id",
          "group",
          "label",
          "type",
          "value",
          "standing"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "the fact's identifier"
          },
          "group": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "type": {
            "enum": [
              "option",
              "options",
              "boolean",
              "text",
              "country",
              "year",
              "store_url",
              "refund",
              "activate"
            ]
          },
          "value": {
            "description": "the value in effect; null when nothing is stated"
          },
          "standing": {
            "enum": [
              "confirmed",
              "research",
              "none"
            ],
            "description": "confirmed: stated by the brand and in effect; research: found by eSIMPricing, not confirmed; none: nothing shown"
          },
          "confirmed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "in_review": {
            "description": "a value sent by the brand that waits for review, or null"
          }
        }
      },
      "OptionValue": {
        "type": "object",
        "required": [
          "value",
          "label"
        ],
        "properties": {
          "value": {
            "type": "string",
            "description": "what to send"
          },
          "label": {
            "type": "string",
            "description": "the name people see"
          }
        }
      },
      "Profile": {
        "type": "object",
        "required": [
          "brand",
          "facts"
        ],
        "properties": {
          "brand": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "site": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "profile_url": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "facts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fact"
            }
          }
        }
      },
      "PatchResult": {
        "type": "object",
        "required": [
          "accepted",
          "results",
          "profile"
        ],
        "properties": {
          "accepted": {
            "type": "integer"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "status"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "saved",
                    "in_review",
                    "valid",
                    "refused",
                    "unknown_field"
                  ]
                },
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "expected": {
                  "type": "string",
                  "description": "on a refusal: the value the fact takes, in words"
                },
                "allowed": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "on a refusal: the fact's option values"
                },
                "example": {
                  "description": "on a refusal: a value that would be stored"
                },
                "did_you_mean": {
                  "type": "string",
                  "description": "on unknown_field: the closest field id"
                }
              }
            }
          },
          "profile": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fact"
            }
          }
        }
      },
      "Fields": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "type",
                "value"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "group": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "value": {
                  "type": "string",
                  "description": "the JSON the field takes, in words"
                },
                "example": {
                  "description": "a value the field accepts"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    }
                  }
                },
                "own_entries": {
                  "type": "boolean"
                },
                "max_length": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "FeedCheck": {
        "type": "object",
        "required": [
          "ok",
          "checked",
          "limits",
          "report"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "description": "true: no errors; the feed can be connected as it is"
          },
          "checked": {
            "enum": [
              "url",
              "document"
            ]
          },
          "limits": {
            "type": "object",
            "properties": {
              "bytes": {
                "type": "integer"
              },
              "pages": {
                "type": "integer"
              }
            }
          },
          "fetched": {
            "type": "object",
            "description": "with url: what the feed answered",
            "properties": {
              "status": {
                "type": "integer"
              },
              "final_url": {
                "type": "string"
              },
              "content_type": {
                "type": "string"
              },
              "bytes": {
                "type": "integer"
              }
            }
          },
          "report": {
            "type": "object",
            "description": "the checker's report",
            "properties": {
              "ok": {
                "type": "boolean"
              },
              "dialect": {
                "type": "string"
              },
              "checkedAt": {
                "type": "string"
              },
              "counts": {
                "type": "object",
                "properties": {
                  "rows": {
                    "type": "integer"
                  },
                  "plans": {
                    "type": "integer"
                  },
                  "usable": {
                    "type": "integer"
                  },
                  "listed": {
                    "type": "integer"
                  },
                  "errors": {
                    "type": "integer"
                  },
                  "warnings": {
                    "type": "integer"
                  },
                  "notes": {
                    "type": "integer"
                  },
                  "destinations": {
                    "type": "integer"
                  }
                }
              },
              "groups": {
                "type": "array",
                "description": "one per error / warning / note code (the codes of the Plan Feed API, section 6), with the rows it is on",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "level": {
                      "enum": [
                        "error",
                        "warning",
                        "note"
                      ]
                    },
                    "n": {
                      "type": "integer"
                    },
                    "message": {
                      "type": "string"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    }
                  }
                }
              },
              "summary": {
                "type": "object"
              },
              "preview": {
                "type": "array",
                "description": "how plans would appear",
                "items": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}