Error 404 when using Appeal (Get) for some IDs but not others

Hi,

Using the SKY API Console to test the Appeal (Get) endpoint, I'm getting a 404 error for some IDs but not others.

For appeal_id 1000, I get:

GET https://api.sky.blackbaud.com/fundraising/v1/appeals/1000 HTTP/1.1
HTTP/1.1 200 OKcache-control: no-cachecontent-type: application/json; charset=utf-8expires: -1pragma: no-cache{    "id": "1000",    "category": "Direct Mail",    "date_added": "2020-12-07T11:43:26.977-05:00",    "date_modified": "2021-05-07T08:51:06.297-05:00",    "description": "MDSCA2021 - Cartes de printemps/Spring Cards (Acq.)",    "goal": {        "value": 0.000000    },    "inactive": false,    "lookup_id": "MDSCA2021",    "start_date": "2021-02-05T00:00:00"}

For appeal_id 1197, I get:

GET https://api.sky.blackbaud.com/fundraising/v1/appeals/1197 HTTP/1.1
HTTP/1.1 404 Not Foundcache-control: no-cachecontent-length: 193content-type: application/json; charset=utf-8expires: -1pragma: no-cache[{    "message": "The requested operation could not be fulfilled",    "error_name": "RequestNotFulfilled",    "error_code": 404,    "raw_message": "The requested operation could not be fulfilled",    "error_args": []}]

ID 1197 definitely belong to an appeal, so I'm not sure why one is working but the other one isn't.

I've had this error come up several times lately for different endpoints and I'm not sure why. Can anyone help here?

Also, how do I know or set which environment is linked to the SKY API Console? I don't think this is the problem because all of our environments have appeal_id 1197.

Thank you.

Best Answer

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge
    Answer ✓

    You will need to confirm the authorization token you get on the API console is for the same RE NXT environment that has this appeal system record id. (do you have more than one RE NXT environment?)

Answers

  • Tagging in All-Star @Alex Wong to see if he can help!

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    it's important to know if you are talking about Appeal ID as in Appeal Lookup ID that can be alpha numeric, or are you talking about Appeal System Record ID that is RE system assigned when the new appeal is created and cannot be changed.

    The API take in the Appeal System Record ID.

    To know for sure, go to the Appeal page on RE NXT, and then look at the info

    image.png

    2595 is the Appeal System Record ID

    11 is the Appeal ID (or Appeal Lookup ID)

  • Hi Alex,

    Sorry, I wasn't notified of your reply.

    Yes, I am using the appeal's system record ID found in the URL:

    image.png

    I just redid the test with this appeal and get the same error 404:

    GET https://api.sky.blackbaud.com/fundraising/v1/appeals/1197 HTTP/1.1
    
    HTTP/1.1 404 Not Foundcache-control: no-cachecontent-length: 193content-type: application/json; charset=utf-8expires: -1pragma: no-cache[{    "message": "The requested operation could not be fulfilled",    "error_name": "RequestNotFulfilled",    "error_code": 404,    "raw_message": "The requested operation could not be fulfilled",    "error_args": []}]
    
  • You're right, the wrong environment is being used by the API console. How do I change the environment?

  • Nevermind, I figured it out. I installed the API Console via Marketplace for both environments and now when using the console, I can select which environment to use it with.

    Thanks for pointing me in the right direction!

Categories