The Interledger Community 🌱

Discussion on: Payment verification

Collapse
 
drsm79 profile image
Simon Metson • Edited

Hey Brandon, finally got a chance to try this & getting a 413 Client Error: Request Entity Too Large for url: https://webmonetization.org/api/receipts/verify error when sending a receipt :

response = requests.post(
            CONFIG.get('wm_org', 'API_URL', fallback='https://webmonetization.org/api/receipts/verify'),
            data=json.dumps(request['receipt']),
            headers= {
                'Content-Type': 'application/json',
            }
        )
Enter fullscreen mode Exit fullscreen mode

Any suggestions? Is the API documented somewhere in detail (OpenAPI or similar)?

Thread Thread
 
drsm79 profile image
Simon Metson

Ah, the json.dumps is unnecessary & trips your limit protection - nice :)