{"openapi":"3.1.0","info":{"title":"IDM Music","version":"1.0.0","description":"The shop of IDM Records, an onchain music label: tracks, music beds, sample packs, sound effects, sonic logos and alert kits, licensed to people and AI agents. Browsing and previews are free; purchases are paid over x402 (USDC on Base or Arc) and return a signed licence with download links.","x-guidance":"Start with GET /api/music/info (prices, licences, whether sales are open). Search with /api/music/catalog, hear the free preview, then GET the paid route: it answers 402 with the x402 requirements. Creator licence, loops, stems, beds, one-style kits and single sounds cost $1 or less. MCP server: POST https://theidm.fun/api/music/mcp.","contact":{"email":"intelligentdancemarkets@gmail.com","url":"https://theidm.fun/market"},"license":{"name":"Licence texts","url":"https://theidm.fun/licences"}},"servers":[{"url":"https://theidm.fun"}],"tags":[{"name":"free"},{"name":"paid"}],"x-agentcash-guidance":{"llmsTxtUrl":"https://theidm.fun/llms.txt"},"paths":{"/api/music/info":{"get":{"summary":"What is sold: products, prices, networks, payTo, licences, routes, whether sales are open","security":[],"tags":["free"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/catalog":{"get":{"summary":"Search licensable tracks: studio tracks (IDM-S001) and records (IDM-0001)","security":[],"tags":["free"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["record","studio"]}},{"name":"genre","in":"query","required":false,"schema":{"type":"string"}},{"name":"bpm_min","in":"query","required":false,"schema":{"type":"number"}},{"name":"bpm_max","in":"query","required":false,"schema":{"type":"number"}},{"name":"key","in":"query","required":false,"schema":{"type":"string"},"description":"e.g. F Dorian"},{"name":"mood","in":"query","required":false,"schema":{"type":"string"}},{"name":"use","in":"query","required":false,"schema":{"type":"string"}},{"name":"seconds_min","in":"query","required":false,"schema":{"type":"integer"}},{"name":"seconds_max","in":"query","required":false,"schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/tracks/{id}":{"get":{"summary":"One track: genre, BPM, key, length, mood, preview and prices","security":[],"tags":["free"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^IDM-(S[0-9]{3,}|[0-9]{4,})$","description":"Catalog id: a record (IDM-0042, the sound of onchain trades, an IDM Records NFT) or a studio track (IDM-S001, made for the shop, no record)"},"example":"IDM-S001"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/tracks/{id}/preview.mp3":{"get":{"summary":"30 s MP3 preview of a track","security":[],"tags":["free"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^IDM-(S[0-9]{3,}|[0-9]{4,})$","description":"Catalog id: a record (IDM-0042, the sound of onchain trades, an IDM Records NFT) or a studio track (IDM-S001, made for the shop, no record)"},"example":"IDM-S001"}],"responses":{"200":{"description":"MP3 preview","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/packs":{"get":{"summary":"Sample, SFX, game, video edits and MIDI packs, the free pack first","security":[],"tags":["free"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["tracks","voices","drums","kits","sfx","music","stems","ambience","edits","midi","free"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/packs/{packId}/preview.mp3":{"get":{"summary":"A pack's preview reel","security":[],"tags":["free"],"parameters":[{"name":"packId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","description":"Pack id from GET /packs"},"example":"idm-ambience-cave"}],"responses":{"200":{"description":"MP3 preview","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/free/{packId}.zip":{"get":{"summary":"The free pack's zip: no payment, no wallet","security":[],"tags":["free"],"parameters":[{"name":"packId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","description":"Pack id from GET /packs"},"example":"idm-ambience-cave"}],"responses":{"200":{"description":"Zip","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/licences/{licenceId}":{"get":{"summary":"Verify a licence","security":[],"tags":["free"],"parameters":[{"name":"licenceId","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{64}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/tracks/{id}/licence":{"get":{"operationId":"buyTrackLicence","summary":"Buy a licence for one track (WAV + MP3)","description":"Creator licence for one IDM track: full WAV + MP3 for your own online video, social posts, streams and podcasts, monetized too. Non-exclusive. $0.99. Commercial licence for one IDM track: full WAV + MP3, also for ads, brands, games, apps, broadcast and client work. Non-exclusive. $4.99. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^IDM-(S[0-9]{3,}|[0-9]{4,})$","description":"Catalog id: a record (IDM-0042, the sound of onchain trades, an IDM Records NFT) or a studio track (IDM-S001, made for the shop, no record)"},"example":"IDM-S001"},{"name":"tier","in":"query","required":true,"schema":{"type":"string","enum":["creator","commercial"],"description":"creator ($0.99): your own online video, social, streams, podcasts; commercial ($4.99): also ads, brands, games, apps, broadcast, client work"}}],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.99","max":"4.99"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/tracks/{id}/stems":{"get":{"operationId":"buyStems","summary":"Buy the stems of one track","description":"The stems of one IDM track (WAV), for your own videos and edits and inside your own music. $0.99. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^IDM-(S[0-9]{3,}|[0-9]{4,})$","description":"Catalog id: a record (IDM-0042, the sound of onchain trades, an IDM Records NFT) or a studio track (IDM-S001, made for the shop, no record)"},"example":"IDM-S001"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.99"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/packs/{packId}":{"get":{"operationId":"buyPack","summary":"Buy a pack (the free pack's id answers with its free download instead)","description":"An IDM sample pack (drums, construction kits with MIDI, synth voices or loops cut from label tracks), royalty-free inside your own music. $5.00. A small IDM sound-effect pack (up to 25 files: wallet, transaction, DeFi or alert sounds in one style), WAV, for apps, games, videos and ads. $0.99. An IDM sound-effect pack (26 to 60 files: UI, video, crypto, game, casino, stream alerts or cinematic risers and hits), WAV, for videos, ads, apps, games and inside new music. $1.49. A large IDM sound-effect pack (more than 60 files, or every pack of one style in one), WAV, for videos, ads, apps, games and inside new music. $2.99. An IDM music loop pack: seamless loops for one game genre (menu, level, boss and more, with win / lose stingers) or for live streams (starting soon, BRB, just chatting, ending), WAV 24-bit 48 kHz, as background music in your games, apps and streams. $5.00. The four stems (drums, bass, harmony, lead) of one IDM game music loop, each seamless, WAV 24-bit 48 kHz: adaptive music that brings layers in and out in your game. $2.99. An IDM game ambience pack: seamless environment loops of 90 to 120 s, WAV 24-bit 48 kHz at -23 LUFS, to play under gameplay in your games and apps. $5.00. An IDM video edits pack in one genre: finished 6, 15, 30 and 60 s edits that end on a final hit, loopable beds and a video toolkit (stings, transitions), WAV 24-bit 48 kHz, for videos, ads, apps and games. $5.00. An IDM MIDI pack in one genre: chord progressions (as played and as block chords), bass lines, riffs and drum grooves in sets that play together, for new music. $2.99. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"packId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","description":"Pack id from GET /packs"},"example":"idm-ambience-cave"}],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.99","max":"5.00"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/box/sounds":{"get":{"summary":"The groovebox's sound library: every sound with its preview, and its price where it is sold","security":[],"tags":["free"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/box/sounds/{boxPackId}/{file}":{"get":{"operationId":"buyBoxSound","summary":"Buy one groovebox sound (FLAC)","description":"One sound from an IDM drum pack or construction kit (a one-shot, loop or stem as on the groovebox), full quality (FLAC), royalty-free inside your own music. $0.05. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"boxPackId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","description":"Pack id: the part of a sound id from GET /box/sounds before the slash"},"example":"idm-box-dub-techno"},{"name":"file","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,159}$","description":"The part of a sound id after the slash"},"example":"idm_drum-loop_dub-techno_echo-room-fill_124bpm_2bars"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/box/plan/{months}":{"get":{"operationId":"buyBoxPlan","summary":"Buy the IDM Box plan: audio downloads and unlimited saved tracks on theidm.fun/lab for the paying wallet; prepaid, no renewal","description":"IDM Box plan, 1 month (30 days) for the paying wallet: audio downloads from the groovebox (theidm.fun/lab) and unlimited saved tracks. Prepaid, no auto-renew; stacks with a current plan. $2.99. IDM Box plan, 3 months (90 days) for the paying wallet: audio downloads from the groovebox (theidm.fun/lab) and unlimited saved tracks. Prepaid, no auto-renew; stacks with a current plan. $7.99. IDM Box plan, 6 months (180 days) for the paying wallet: audio downloads from the groovebox (theidm.fun/lab) and unlimited saved tracks. Prepaid, no auto-renew; stacks with a current plan. $14.00. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"months","in":"path","required":true,"schema":{"type":"string","enum":["1","3","6"]},"example":"1"}],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"2.99","max":"14.00"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/brand":{"get":{"summary":"Sonic logo and alert kits, each style with a preview","security":[],"tags":["free"],"parameters":[{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["logo","alerts"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/brand/{kitId}/{style}/preview.mp3":{"get":{"summary":"A kit style's preview reel","security":[],"tags":["free"],"parameters":[{"name":"kitId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$","description":"Logo or alert kit id from GET /brand"},"example":"idm-alerts-nova-bank"},{"name":"style","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,23}$","description":"One style from the kit's list in GET /brand ($0.99 a logo or alert kit), or \"all\" for a logo kit in every style ($5)"},"example":"electro"}],"responses":{"200":{"description":"MP3 preview","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/brand/{kitId}/{style}":{"get":{"operationId":"buyBrandKit","summary":"Buy a sonic logo or alert kit for one brand","description":"A sonic logo kit in one style: one motif from a seed as main, short, long, success, notification and loop (WAV), the sound of one brand. $0.99. A sonic logo kit in all six styles (36 WAV files): one motif from a seed, the sound of one brand. $5.00. A brand alert kit in one style: info, success, warning, error, critical, message in and out, alarm and ringtone on one motif (WAV). $0.99. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"kitId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$","description":"Logo or alert kit id from GET /brand"},"example":"idm-alerts-nova-bank"},{"name":"style","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,23}$","description":"One style from the kit's list in GET /brand ($0.99 a logo or alert kit), or \"all\" for a logo kit in every style ($5)"},"example":"electro"},{"name":"brand","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100,"description":"The brand the logo or alert kit is licensed for (one brand per licence). Required; kept private in the licence record, never shown on it"}}],"x-payment-info":{"price":{"mode":"dynamic","currency":"USD","min":"0.99","max":"5.00"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/beds":{"get":{"summary":"Music beds of exact length for video, podcasts and explainers","security":[],"tags":["free"],"parameters":[{"name":"use","in":"query","required":false,"schema":{"type":"string","enum":["video","podcast","explainer"]}},{"name":"genre","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/beds/{bedId}/preview.mp3":{"get":{"summary":"A bed's full preview","security":[],"tags":["free"],"parameters":[{"name":"bedId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","description":"Bed id from GET /beds"},"example":"acid-house-15s"}],"responses":{"200":{"description":"MP3 preview","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/beds/{bedId}":{"get":{"operationId":"buyBed","summary":"Buy a music bed","description":"A music bed of exact length (WAV + MP3), with a voice-over version where it has one, for videos, podcasts, streams, explainers and ads. One end client per bed. $0.49. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"bedId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","description":"Bed id from GET /beds"},"example":"acid-house-15s"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.49"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/sounds":{"get":{"summary":"Single sound effects, each with a preview","security":[],"tags":["free"],"parameters":[{"name":"pack","in":"query","required":false,"schema":{"type":"string"}},{"name":"family","in":"query","required":false,"schema":{"type":"string"}},{"name":"style","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/sounds/{pack}/{sound}/preview.mp3":{"get":{"summary":"A sound effect's preview","security":[],"tags":["free"],"parameters":[{"name":"pack","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","description":"SFX pack id from GET /sounds"},"example":"idm-app-felt"},{"name":"sound","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$","description":"Sound id within its pack, from GET /sounds"},"example":"celebration-01"}],"responses":{"200":{"description":"MP3 preview","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}},"/api/music/sounds/{pack}/{sound}":{"get":{"operationId":"buySound","summary":"Buy one sound effect","description":"One sound effect (WAV 24-bit 48 kHz): UI, video, crypto, game or casino, for videos, ads, apps, games and inside new music. $0.05. Pay with x402 v2 (scheme exact, USDC on Base or Arc): the first request answers 402 with PAYMENT-REQUIRED; repeat it with PAYMENT-SIGNATURE. The answer is a signed licence and download links (24 h).","security":[],"tags":["paid"],"parameters":[{"name":"pack","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,31}$","description":"SFX pack id from GET /sounds"},"example":"idm-app-felt"},{"name":"sound","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$","description":"Sound id within its pack, from GET /sounds"},"example":"celebration-01"}],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"protocols":[{"x402":{}}]},"responses":{"200":{"description":"Paid: the licence and its download links","content":{"application/json":{"schema":{"type":"object","properties":{"licence":{"type":"object","properties":{"id":{"type":"string","description":"Licence id (64 hex); verify at verifyUrl"},"valid":{"type":"boolean"},"product":{"type":"string"},"tier":{"type":"string","enum":["creator","commercial"]},"trackId":{"type":["string","null"]},"item":{"type":["string","null"],"description":"Loop, pack, bed or sound id; <kit>/<style> for a logo or alert kit"},"seedHash":{"type":"string","description":"Logo and alert kits: SHA-256 of the canonical seed (never the seed)"},"styles":{"type":"array","items":{"type":"string"}},"generator":{"type":"string"},"recipe":{"type":"object","description":"Beds and sound effects: what the audio was made from"},"price":{"type":"object"},"licensee":{"type":"string","description":"The paying wallet"},"payTo":{"type":"string"},"tx":{"type":"string","description":"Settlement transaction"},"issuedAt":{"type":"string"},"terms":{"type":"object","description":"The licence text this sale is bound to: version, title, summary, url (full text), status"},"verifyUrl":{"type":"string"}},"required":["id","product","tier","licensee","tx","verifyUrl"]},"downloads":{"type":["object","null"],"description":"Null only when an old payment is replayed: the paying wallet re-issues links instead","properties":{"expiresAt":{"type":"string","description":"Links expire in 24 h; the paying wallet re-issues them free"},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"contentType":{"type":"string"},"url":{"type":"string"}},"required":["name","url"]}}},"required":["expiresAt","files"]},"reissue":{"type":"string","description":"How the paying wallet gets fresh links"},"credit":{"type":"string","description":"Suggested credit line (appreciated, not required)"}},"required":["licence","downloads"]}}}},"400":{"description":"Invalid input (before any payment)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"402":{"description":"Payment required: x402 v2 requirements in the PAYMENT-REQUIRED header (base64 JSON) and the body"},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"429":{"description":"Too many requests; see retry-after","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}},"503":{"description":"Sales not open yet (code sales_closed) or payments unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"code":{"type":"string"}},"required":["error"]}}}}}}}}}