action britbox_get_purchases { label: "getPurchases" description: "Get a list of all purchases made under an account." provider: britbox method: GET path: "/account/billing/purchases" encoding: json output: { type: "array" items: { type: "object" required: ["creationDate", "currency", "id", "total"] properties: { authorizationDate: { type: "string" format: "date-time" description: "The date the purchase was authorized." } creationDate: { type: "string" format: "date-time" description: "The date the purchase was created." } currency: { type: "string" description: "The currency code used to make the purchase." } id: { type: "string" description: "The identifier of the purchase." } item: { type: "object" required: ["id", "ownership", "resolution", "title", "type"] properties: { id: { type: "string" description: "The identifier of the purchased item." } ownership: { type: "string" description: "The ownership of the purchased item." enum: ["Subscription", "Free", "Rent", "Own", "None"] } resolution: { type: "string" description: "The resolution of the purchased item." enum: ["SD", "HD-720", "HD-1080", "HD-4K", "External", "Unknown"] } title: { type: "string" description: "The title of the purchased item." } type: { type: "string" description: "The type of item purchased." enum: ["movie", "show", "season", "episode", "program", "link", "trailer", "channel", "customAsset"] } } additionalProperties: false } paymentMethodId: { type: "string" description: "The identifier of the payment method used to make the purchase." } plan: { type: "object" required: ["title", "type"] properties: { id: { type: "string" description: "The identifier of the purchased plan." } price: { type: "number" format: "float" description: "The price of the purchased plan." } subscriptionId: { type: "string" description: "The identifier of the subscription membership to the plan." } title: { type: "string" description: "The title of the purchased plan." } type: { type: "string" description: "The type of plan purchased." enum: ["Free", "Subscription"] } } additionalProperties: false } total: { type: "number" format: "float" description: "The total cost of the purchase." } } additionalProperties: false } } }