SuiteCRM - Rest API V8

Hi
Quick question rest api v8 is working fine for get module list,create,Update etc.
got access token without any issue, but i need sample/URL for reaming CRUD operations Using API.

If i use this sample URL from suite docs
{{your-SuiteCRM-url}}/Api/V8/module/Accounts/11a71596-83e7-624d-c792-5ab9006dd493?fields[Accounts]=name,account_type

i got below error
{“errors”:[{“code”:8000,“title”:"[SuiteCRM] [API] [Not Found] [Resource]",“detail”:{},“source”:{“pointer”:null,“parameter”:null},“status”:404},{“id”:“1”,“links”:{“about”:null},“status”:404,“code”:8000,“title”:“JSON API Error”,“detail”:“Api Version: 8”,“source”:{“pointer”:null,“parameter”:null},“meta”:{“about”:“Exception”,“class”:“SuiteCRM\API\v8\Exception\NotFoundException”,“code”:8000,“langMessage”:null}}],“meta”:{“suiteapi”:{“major”:8,“minor”:0,“patch”:0,“stability”:“ALPHA”}},“jsonapi”:{“version”:“1.0”}}

Hi I am not able to generate token . Keep getting null response / 500 server error… Using suitecrm 7.11.8 .
Would you be able to help?

Hi Kummar,

If you upgrade to SuiteCRM 7.11.10, this should resolve the issues you are experiencing.

Thanks,

Will.

1 Like

@will Solved me a ton of time !

I could generate token after local system upgrade to 7.11.10…
Followed same steps as in the developer guide.

In postman couple of things i thought will help people who are new to OAuth2:

  1. Post everything in body, (i was using headers which is wrong)
    grant_type:client_credentials
    client_id:9c6xxxxxx752f-2axxxxxxe-5dcf913798ef
    client_secret:somesecret
    scope: (leave blank)
  2. HEADERS
    ‘Content-type: application/vnd.api+json’,
    ‘Accept: application/vnd.api+json’,
  3. AUTHORIZATION TYPE
    Bearer Token

PS: will post results of other API tests soon