curl-H "Content-Type: application/json"-H "Authorization: <Bearer token>"-H "Idempotency-Key: <UUID v4>"
curl --location --request POST 'https://identity.payroc.com/authorize' --header 'x-api-key: <api key>'
{"access_token": "eyJhbGc....adQssw5c","expires_in": 3600,"scope": "service_a service_b","token_type": "Bearer"}
Version | Notes |
---|---|
1.3.0.135534 | Current production version |
1.2.0-beta.135020 | Current test version |
curl --request post \--url https://api.payroc.com/v1/processing-terminals/1234001/hosted-fields-sessions \--header 'Authorization: Bearer <access token>' \--header 'Content-Type: application/json' \--header 'Idempotency-Key: 8e03978e-40d5-43e8-bc93-6894a57f9324' \--data '{"libVersion":"1.1.0.123456","scenario":"payment"}'
application/json
{"processingTerminalId": "1234001","token": "abcdef1234567890abcdef1234567890","expiresAt": "2025-07-02T15:30:00.000+02:00"}