Init Rewards API Error

Hi Team,
We are facing the following issue while calling the proposed reward Init API Call on both Android and iOS Apps. Please check the request and response and let us know if we are doing anything different.

Android

URL :https://netmeds-site.hostx5.de/api/platform/rewards/init/

Request

{
  "chunk": "69df2dac73f17ceb"
}

Response

{
  "message":"Bad request. Please check and tryagain",
  "code":7011,
  "sentry":"e68d3363bbdd4936a7237a2404a89ef4",
  "customMessage":""
}

iOS

Request

URL: 'https://netmeds-site.hostx5.de/api/platform/rewards/init/’ \

{
 "chunk":"1447577F-8B6B-4ED7-BC45-ECD0D042321F"
}

Response

{
 "message":"Bad request. Please check and try again",
 "code":7008,
 "sentry":"f6d17043cda34d3f85b7602222223c23",
 "customMessage":""
}

Thanks,
Nizam

@nizamudeenms The request which you’re sending through Emulator is failing due to unrecognisable device error. It is breaking in user agent. Could you please validate the encrypted user agent or try with real devices.

Hi @Devendra_Kumari_Dhay ,
We tried on Physical devices on both Android and iOS Platforms and still get the same error.

{“message”:“Bad request. Please check and try again”,“code”:7008,“sentry”:“f98e7eda272d475dbfa6827c02df72ff”,“customMessage”:“”}

Thanks,
Nizam

@Velmurugan_Ravi @rex

Hi @Devendra_Kumari_Dhay ,
Any updates on this ?

@nizamudeenms @Velmurugan_Ravi

  1. The request which need to be passed here should include : Chunks, Key and Jwsdata.
  2. The Chunks value should be encrypted with the Public Key so the downstream services can authenticate the request.

@Devendra_Kumari_Dhay, Still the issue is not resolved in iOS . Please help.

@nizamudeenms Please share the Error Message(request/response) which we are facing for IOS.
@Rex

{“message”:“Bad request. Please check and try again”,“code”:7008,“sentry”:“8ff5d88b65e94c9c9bf36b761bdac16d”,“customMessage”:“”}

@Santhoshkumar_Gurun1 @Rex @muralidharedam

@nizamudeenms the same steps which we have followed for Android needs to be done for IOS too.

Steps :

  1. The request which need to be passed here should include : Chunks, Key and Jwsdata.
  2. The Chunks value should be encrypted with the Public Key so the downstream services can authenticate the request.

And as confirmed by @Rex it’s working fine for IOS too after following the above steps.

@Devendra_Kumari_Dhay Reward Working on iOS.

1 Like