Start of values in Options:
Priava Live URL: https://api.priava.com/api/rest
Priava Sandbox URL: https://api-sandbox.priava.com/api/rest
Priava Is Live: 1
Priava Client ID: DC5r9636AbYLbFhBvienKc2oiX6itD2GGLOHtYMdXvJhxkAHtp4MKEREZ5rD63bf
Priava Client Secret: wAiURNMzsIfCQX0SaENh8osCx2waIe3YZBjVRCfUgIQssyKO73ET9THGgFEEywjF
Priava Client Code: argQy59YyfAuhUvB2cKUhju4JUxXGi5VrcFCIdvIsOfNF5oRqB6mrMxE8uLZmdFJ
Priava Access Token:
Priava Refresh Token:
20240222.2012.21:
field: priava_is_live, value: 1
field: priava_live_url, value: https://api.priava.com/api/rest
clientid: DC5r9636AbYLbFhBvienKc2oiX6itD2GGLOHtYMdXvJhxkAHtp4MKEREZ5rD63bf
secret: wAiURNMzsIfCQX0SaENh8osCx2waIe3YZBjVRCfUgIQssyKO73ET9THGgFEEywjF
ref token:
Cron running for the first time, using the client code to generate tokens
code: argQy59YyfAuhUvB2cKUhju4JUxXGi5VrcFCIdvIsOfNF5oRqB6mrMxE8uLZmdFJposting to https://api.priava.com/api/rest/oauth/token: grant_type=authorization_code&client_id=DC5r9636AbYLbFhBvienKc2oiX6itD2GGLOHtYMdXvJhxkAHtp4MKEREZ5rD63bf&client_secret=wAiURNMzsIfCQX0SaENh8osCx2waIe3YZBjVRCfUgIQssyKO73ET9THGgFEEywjF&code=argQy59YyfAuhUvB2cKUhju4JUxXGi5VrcFCIdvIsOfNF5oRqB6mrMxE8uLZmdFJ&redirect_uri=https://sergeantsmess.com.au/thank-you with headers: array ( 0 => 'Content-Type: application/x-www-form-urlencoded;charset=utf-8', 1 => 'TenantRegion: APAC', )
curl inited for url: https://api.priava.com/api/rest/oauth/token
got curl request
resource(31) of type (curl)
executed curl request
errorno: 0
errorno: 0
response: '{"error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.","error":"invalid_grant"}'
updated access and refresh tokens, cleared the client code
-----------------------------------------------------------------------