{
    "openapi": "3.1.0",
    "info": {
        "title": "Ticket Fairy machine payments",
        "version": "1.0.0"
    },
    "x-service-info": {
        "categories": [
            "ticketing"
        ],
        "docs": {
            "homepage": "https://www.ticketfairy.com",
            "apiReference": "https://www.ticketfairy.com/.well-known/api-catalog",
            "llms": "https://www.ticketfairy.com/llms.txt"
        }
    },
    "paths": {
        "/api/v1/agentic/mpp/checkout_sessions/{public_id}/complete": {
            "post": {
                "summary": "Complete a quoted ticket purchase",
                "x-payment-info": {
                    "amount": null,
                    "intent": "charge",
                    "method": "stripe",
                    "description": "Pay the exact price and currency quoted for your checkout."
                },
                "responses": {
                    "200": {
                        "description": "Successful response"
                    },
                    "402": {
                        "description": "Payment Required"
                    },
                    "202": {
                        "description": "The original purchase is being checked. Retry the same request and Idempotency-Key without creating another payment token."
                    },
                    "401": {
                        "description": "An agent Bearer credential is required."
                    },
                    "409": {
                        "description": "Check the current native checkout before retrying the same purchase."
                    },
                    "503": {
                        "description": "The outcome is uncertain. Keep the same request, payment credential and Idempotency-Key."
                    }
                },
                "description": "Prepare a native checkout through the ACP checkout collection first. Use its agent Bearer credential and a stable Idempotency-Key. Available for eligible quotes paid to a Ticket Fairy platform account or directly to the connected account selected by checkout. The Payment-Authorization credential pays the exact retained quote. Existing browser authentication and ticket delivery remain authoritative.",
                "parameters": [
                    {
                        "name": "public_id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                        }
                    },
                    {
                        "name": "Idempotency-Key",
                        "in": "header",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "maxLength": 255
                        }
                    },
                    {
                        "name": "Payment-Authorization",
                        "in": "header",
                        "required": false,
                        "schema": {
                            "type": "string"
                        },
                        "description": "The wallet payment credential for the challenge. Omit it on the initial request to receive HTTP 402."
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "security": [
                    {
                        "buyerBearer": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "buyerBearer": {
                "type": "http",
                "scheme": "bearer",
                "description": "The registered agent buyer credential. This opaque credential is not a wallet payment token."
            }
        }
    }
}