Hi Dulip.
Thank you for getting in touch.
From what we can see, you are getting a 403 error code when using the XML schema and a 500 error message when using the JSON schema.
For the 403 error, make sure that you are using the access token obtained from authentication process.
In your post you write:
"'Authorization: Bearer <access-token-received-from-the-group-creation>'"
The access token received from the group id creation is only used to create a group identifier (or to modify it). Bear in mind that if you use ISSN, it is not needed for you to create a new group id. Check out this guide to get more details about the group ids on peer reviews:
When creating a peer review item (POST /peer-review) you should use the access token that you receive during the 3-legged OAuth process. To POST a peer review you need to request authorization for the scope activities/update.
Regarding the 500 error message, you are accepting "text/html" when you should be accepting JSON. Please, change the Accept header to:
--header 'Accept:application/json'
This should allow you to properly push a peer review item using JSON.
Please, let me know if this helps and if you were able to successfully add a peer review item into an ORCID record. If you keep facing difficulties, we will be here to help.
Cheers,