v1

latestOpenAPI 3.1.02026-07-24120106.5 KB

Get A Hosted Page Token

Generate a hosted page token to embed in your hosted page. These tokens are limited scope tokens that allow the hosted page to be authenticated with our systems. Guide to use Ezypay Hosted Payment Page can be found here

post/token

Request body

grant_typestring required

The OAuth 2 grant type you're requesting for. In this case, it should be password.

client_idstring required

Your client_id that you were provided with when you signed up.

client_secretstring required

Your client_secret that you were provided with when you signed up.

usernamestring required

The username of the merchant that you'll be requesting this token for.

passwordstring required

The password of the merchant that you'll be requesting this token for.

scopestring required

The scopes of the token that you're requesting for. In this case, it would be integrator hosted_payment.

Response

200

access_tokenstring
token_typestring
expires_ininteger
scopestring

Example response

{
  "access_token": "access_token_response_here",
  "token_type": "Bearer",
  "expires_in": 1800,
  "scope": "integrator hosted_payment"
}