{
  "openapi": "3.1.0",
  "info": {
    "title": "The Afterparty Collective API",
    "version": "1.0.0",
    "summary": "Read-only data on party entertainment packages, acts, add-ons, FAQs and booking terms.",
    "description": "Public, read-only API for The Afterparty Collective, a UK party entertainment hire company (weddings, birthdays, corporate and cultural events). No authentication. Prices are in GBP; package prices are from-prices for a 1-hour after-party takeover. The API cannot make bookings: direct customers to https://apcollective.co.uk/request-quote-form/.",
    "contact": {
      "name": "The Afterparty Collective",
      "email": "hello@apcollective.co.uk",
      "url": "https://apcollective.co.uk/contact/"
    }
  },
  "externalDocs": {
    "description": "API guide",
    "url": "https://apcollective.co.uk/api.md"
  },
  "servers": [
    {
      "url": "https://apcollective.co.uk/wp-json/apc/v1"
    }
  ],
  "security": [],
  "paths": {
    "/info": {
      "get": {
        "operationId": "getInfo",
        "summary": "Service summary",
        "description": "Name, description and list of endpoints.",
        "responses": {
          "200": {
            "description": "Service summary",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "service": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/packages": {
      "get": {
        "operationId": "listPackages",
        "summary": "List entertainment packages",
        "description": "Standard, Premium and Luxe packages with line-up, free extras and from-price.",
        "responses": {
          "200": {
            "description": "Packages",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "packages": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Package"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/packages/{id}": {
      "get": {
        "operationId": "getPackage",
        "summary": "Get one package",
        "description": "One package by id.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Package id",
            "schema": {
              "type": "string",
              "enum": [
                "standard",
                "premium",
                "luxe"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "package": {
                      "$ref": "#/components/schemas/Package"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/acts": {
      "get": {
        "operationId": "listActs",
        "summary": "List single acts",
        "description": "Pick-and-mix acts, minimum two per booking, 1-hour performance.",
        "responses": {
          "200": {
            "description": "Acts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "rules": {
                      "type": "string"
                    },
                    "acts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PricedItem"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/add-ons": {
      "get": {
        "operationId": "listAddOns",
        "summary": "List add-ons",
        "description": "Extras available with a Standard, Premium or Luxe package.",
        "responses": {
          "200": {
            "description": "Add-ons",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "add_ons": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PricedItem"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/faqs": {
      "get": {
        "operationId": "listFaqs",
        "summary": "List FAQs",
        "description": "Questions and answers about booking, performers, the day, travel and payments.",
        "responses": {
          "200": {
            "description": "FAQs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "faqs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "question",
                          "answer"
                        ],
                        "properties": {
                          "question": {
                            "type": "string"
                          },
                          "answer": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/booking": {
      "get": {
        "operationId": "getBookingInfo",
        "summary": "How to book and booking terms",
        "description": "Quote form URL, deposit, balance, travel, late-finish and contact details.",
        "responses": {
          "200": {
            "description": "Booking information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "example": "GBP"
                    },
                    "booking": {
                      "type": "object",
                      "properties": {
                        "how_to_book": {
                          "type": "string"
                        },
                        "quote_form_url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "response_time_hours": {
                          "type": "integer"
                        },
                        "deposit_percent": {
                          "type": "integer"
                        },
                        "balance_due": {
                          "type": "string"
                        },
                        "contact": {
                          "type": "object"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Package": {
        "type": "object",
        "required": [
          "id",
          "name",
          "tier",
          "price_from"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tier": {
            "type": "string"
          },
          "price_from": {
            "type": "number",
            "description": "From-price in GBP"
          },
          "duration_minutes": {
            "type": "integer"
          },
          "line_up": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "included_free": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "best_for": {
            "type": "string"
          }
        }
      },
      "PricedItem": {
        "type": "object",
        "required": [
          "id",
          "name",
          "price"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number",
            "description": "Price in GBP"
          },
          "unit": {
            "type": "string"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "status": {
                "type": "integer"
              }
            }
          }
        }
      }
    }
  }
}