Authentication
Server Token (Server-to-Server)
Authorization: Token your_server_api_tokenUser Session Token (Iframe / Session Inquiry)
Authorization: Token user_session_token_from_loginToken Rotation
Example cURL Request
curl -X POST https://api.mypayr.co.uk/thirdparty/rotate-token/ \
-H "Authorization: Token 8f4e2b1a9c7d6e5f3b2a1c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8" \
-H "Content-Type: application/json"Example Response
{
"token": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6a7b8c9d0e1f2",
"old_token_expiry": "2024-01-22T14:30:00Z"
}Authorizations
AuthorizationstringRequired
Server-to-server authentication token obtained via the rotate-token endpoint.
Include in the Authorization header as: Authorization: Token <your_token>
Responses
200
Token rotated successfully
application/json
401
Unauthorized - Invalid or expired token
application/json
403
Forbidden - User not authorized for this operation
application/json
post
/rotate-token/Last updated

