Expensify.org/hunger SNAP campaign status 


The number of families signing up for reimbursement has vastly outnumbered the limited funds available. Though we’re unable to provide a specific timeline on when your report will be reimbursed, we’re doing our best to drive donations and keep our fund moving forward. Rest assured, we’ll review every report that’s submitted per our instructions. 


Thanks for your patience! 

API request javascript

mv91mv91 Expensify Customer Posts: 3

I am trying to make an API request through Javascript via Google Sheets.

 var data = {

  'requestJobDescription':

  {"type": "create",

    "credentials":{

      "partnerUserID":"ID",

      "partnerUserSecret":"SECRET"

    },

    "inputSettings":{

     "type": "policy",

      "policyName": "My New Policy"

    }

  }

  };

  

 payload = JSON.stringify(data);

 var options =  {'method' : 'post',

 'contentType': 'application/json',

 // Convert the JavaScript object to a JSON string.

 'payload' : payload};


When I try to execute this I get the following error:


{"responseMessage":"'requestJobDescription' is missing","responseCode":500}



Please could you assist?


Many thanks

Answers

Sign In or Register to comment.