Success
const response = await fetch('/api/app/invoice/{id}/pay', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "error": { "code": "text", "message": "text", "details": "text", "validationErrors": [ { "message": "text", "members": [ "text" ] } ] } }