{"openapi":"3.1.0","info":{"title":"MPP-CoDi demo API","version":"0.1.0","description":"HTTP 402 payments in MXN over CoDi, through pey."},"x-service-info":{"categories":["developer-tools","data"],"docs":{"homepage":"https://pey-mpp-live.exe.xyz"}},"servers":[{"url":"https://pey-mpp-live.exe.xyz"}],"paths":{"/api/taco":{"get":{"summary":"AI taco recipe","x-payment-info":{"offers":[{"intent":"charge","method":"codi","amount":"1","currency":"mxn","description":"Receta de tacos con IA"},{"intent":"session","method":"codi","amount":"1","currency":"mxn","description":"Receta de tacos con IA (per call, prepaid balance)"}]},"parameters":[{"name":"antojo","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required"}}}},"/api/tipo-de-cambio":{"get":{"summary":"USD/MXN quote (demo)","x-payment-info":{"offers":[{"intent":"session","method":"codi","amount":"1","currency":"mxn","description":"Tipo de cambio USD/MXN (per call, prepaid balance)"}]},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required"}}}},"/api/corrido":{"post":{"summary":"Personalized corrido","x-payment-info":{"offers":[{"intent":"charge","method":"codi","amount":"1","currency":"mxn","description":"Corrido personalizado"}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nombre":{"type":"string"},"hazana":{"type":"string"}},"required":["nombre"]},"example":{"nombre":"Ana","hazana":"cobrar en pesos a un agente"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"Payment Required"}}}}}}