SOLVED

REST API: Not recognizing program id starts with number 0

Go to solution
Anonymous
Not applicable

Hi,

I'm trying to get the leads by program id. Most of our programs IDs are starting with number 0 (zero)..

example 0816

REST url: 123-wzl-123.mktorest.com:443/rest/v1/leads/programs/0816.json?access_token=123

Response:

{

    "requestId": "16286#15f9fc20164",

    "success": false,

    "errors": [

        {

            "code": "1013",

            "message": "Program '816' not found"

        }

    ]

}

Looks like the api removing the 0 from the Program id.

Can anyone please help me on this.

Thanks.

Tags (1)
1 ACCEPTED SOLUTION
Mark_Price
Level 7

Hi Rajesh,

Where did the program Id come from?  Was it provided by someone else? 


An easy way to get a program id for a simple test is from the from the address bar when logged into Marketo. 

Navigate to the program and notice the address bar. A link like this will appear:   app-***marketo.com/#PG1396A1  <-   It's a link for program id: 1396

To test, maybe try a known good value for program id with the above method.

View solution in original post

10 REPLIES 10