{"name":"Monogram Partner API","version":"1.0.0","baseUrl":"https://www.monogramhaus.online","authentication":{"scheme":"Bearer","headers":["Authorization: Bearer <key>","x-api-key: <key>"]},"endpoints":[{"method":"POST","path":"/api/v1/partner/orders","description":"Create an order. Returns a hosted pay link.","body":{"reference":"your-invoice-id (string, optional, max 120 chars)","customer":{"name":"string","email":"string (email)","phone":"string (optional)","address":{"line1":"string","line2":"string (optional)","city":"string","region":"string (optional)","postalCode":"string","country":"ISO-2/3"}},"items":[{"productSlug":"string","variantSku":"string","quantity":"integer 1–50","personalization":{"<field>":"<value>"},"amountCents":"integer (optional). Partner-set unit price in cents. When provided, overrides the catalog variant price so the invoice total reflects what you're billing. Personalization length limits are also relaxed for partner orders."}],"notes":"string (optional, max 500)"},"response201":{"id":"publicId","status":"pending|paid|fulfilled|cancelled","totalCents":"integer","currency":"USD","payUrl":"https://<site>/pay/<publicId>"}},{"method":"GET","path":"/api/v1/partner/orders","description":"List invoices you've created. Newest first. Supports filtering and pagination.","query":{"status":"pending | paid | fulfilled | cancelled (optional)","reference":"your-invoice-id (optional, exact match)","cursor":"ISO timestamp from previous response's nextCursor (optional)","limit":"integer 1–100 (optional, default 25)"},"response200":{"orders":[{"id":"publicId","status":"pending|paid|fulfilled|cancelled","reference":"your-invoice-id","customer":{"name":"string","email":"string"},"subtotalCents":"integer","shippingCents":"integer","taxCents":"integer","totalCents":"integer","currency":"USD","payUrl":"https://<site>/pay/<publicId>","itemCount":"integer","createdAt":"ISO timestamp","paidAt":"ISO timestamp or null"}],"nextCursor":"ISO timestamp or null — pass back as ?cursor to fetch the next page"}},{"method":"GET","path":"/api/v1/partner/orders/{id}","description":"Fetch full invoice data for one of your orders, including items and personalization.","response200":{"id":"publicId","status":"pending|paid|fulfilled|cancelled","reference":"your-invoice-id","customer":"{ name, email, phone?, address? }","items":[{"productSlug":"string","productName":"string","variantSku":"string","variantLabel":"string","quantity":"integer","unitPriceCents":"integer","lineTotalCents":"integer (unitPriceCents × quantity)","personalization":{"<field>":"<value>"}}],"subtotalCents":"integer","shippingCents":"integer","taxCents":"integer","totalCents":"integer","currency":"USD","payUrl":"https://<site>/pay/<publicId>","notes":"string or null","createdAt":"ISO timestamp","paidAt":"ISO timestamp or null","updatedAt":"ISO timestamp"}},{"method":"GET","path":"/api/products","description":"List active products to choose from."}],"webhooks":{"order.paid":{"description":"Fired when checkout completes for one of your orders.","note":"Configure your callback URL with our team during onboarding."}}}