Payment Session
Example cURL Request
curl -X POST https://api.mypayr.co.uk/thirdparty/user-login/ \
-H "Authorization: Token your_server_token" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]"
}'Example Response
{
"url": "https://sandbox.mypayr.co.uk/third-party?token={token}&session_id={session_id}"
}Authorizations
AuthorizationstringRequired
Server-to-server authentication token obtained via the rotate-token endpoint.
Include in the Authorization header as: Authorization: Token <your_token>
Body
emailstring · emailRequiredExample:
Email address of the user to create a payment session for
[email protected]Responses
200
Payment session token created successfully
application/json
400
Bad Request - Invalid email or user not found
application/json
401
Unauthorized - Invalid or expired server token
application/json
post
/user-login/Last updated

