GET https://op-sandbox.paymaya.com/profile
This API endpoint uses Bearer Authentication, which relies on the Client Credentials Token (access_token
) generated during OAuth 2.0 Authentication using the client_credentials
grant type. You must provide this token as part of the Authorization header.
--header Authorization: Bearer <access_token>
Recipes
📖
Get Customer Profile in Maya Mini App
Open Recipe
Technical Guide:
Related Guide:
Request Payload
Request Header
Attribute | Type | Format | Description |
---|---|---|---|
Content-Type REQUIRED | string | application/json | Specifies the media type of the request |
Request-Reference-No REQUIRED | string | UUIDv4 | Unique reference identifier for tracking the request |
Authorization REQUIRED | string | JWS | The Client Credentials Token (access_token ) generated by Maya during OAuth 2.0 Authentication using the client_credentials grant typeExample: Bearer {access_token} |
X-Authorization REQUIRED | string | JWE | The Customer Access Token (accessToken ); a valid customer access token obtained from Maya through either your session URL or acquired by refreshing the tokens , whichever is the most recent or valid value |
Response Payload
Response Body
Attribute | Type | Format | Description |
---|---|---|---|
data REQUIRED | string | JWE | This encrypted profile data is a JSON Web Signature (JWS) in a JSON Web Encryption (JWE); Some documents refer to it as nested JSON Web Token (JWT) |