{
    "openapi": "3.1.0",
    "info": {
        "title": "Affordable Scrubs API",
        "version": "1.0.0",
        "description": "Wholesale Priced Scrubs"
    },
    "servers": [
        {
            "url": "https://affordablescrubs.com"
        }
    ],
    "paths": {
        "/wp-json/wp/v2/posts": {
            "get": {
                "operationId": "listPosts",
                "summary": "List published posts",
                "tags": [
                    "content"
                ],
                "responses": {
                    "200": {
                        "description": "Posts"
                    }
                }
            }
        },
        "/wp-json/wp/v2/pages": {
            "get": {
                "operationId": "listPages",
                "summary": "List published pages",
                "tags": [
                    "content"
                ],
                "responses": {
                    "200": {
                        "description": "Pages"
                    }
                }
            }
        },
        "/wp-json/wc/store/v1/products": {
            "get": {
                "operationId": "listProducts",
                "summary": "List products with live pricing",
                "description": "Prices are live and change. Quote them from this response, not from memory.",
                "tags": [
                    "catalog"
                ],
                "responses": {
                    "200": {
                        "description": "Product list"
                    }
                }
            }
        },
        "/checkout": {
            "get": {
                "operationId": "startCheckout",
                "summary": "Start a checkout",
                "tags": [
                    "commerce"
                ],
                "x-payment-info": {
                    "intent": "session",
                    "method": "card",
                    "currency": "usd",
                    "amount": "299",
                    "description": "Checkout, from 2.99 USD. The exact amount depends on the cart.",
                    "offers": [
                        {
                            "intent": "session",
                            "method": "card",
                            "currency": "usd",
                            "amount": "299",
                            "description": "Checkout, from 2.99 USD. The exact amount depends on the cart."
                        },
                        {
                            "intent": "session",
                            "method": "acp",
                            "amount": "299",
                            "currency": "usd",
                            "endpoint": "https://affordablescrubs.com/wp-json/qweb-ar/v1/checkout",
                            "description": "Agent checkout over ACP, from 2.99 USD. The exact amount depends on the cart."
                        }
                    ]
                },
                "responses": {
                    "200": {
                        "description": "Checkout page"
                    },
                    "402": {
                        "description": "Payment required"
                    }
                }
            }
        }
    }
}