production
development
https://api.banamex.com/mx-gcgapi
Paths
/token
post /token
Basic Authentication
Basic Authentication
(basic)
Username is the application's client_id, and password is the client_secret
grant_type
Optional in formData
string
Type of grant
{
"enum": [
"client_credentials"
]
}
scope
Optional in formData
string
Scope being requested
Content-Type
Optional in header
string
application/x-www-form-urlencoded
Accept
Optional in header
string
application/json
200
json document containing token, etc.
400
json document that may contain additional details about the failure
Example Request
Try this operation
No response. This is a mixed content call. It is not possible to test HTTP APIs from an HTTPS secured Portal site and vice versa.
No response. This is a cross-origin call. Make sure the server accepts requests from this portal. Or if using self-signed SSL certificates then paste the URL above into your browser to accept the certificate before trying again (On Internet Explorer it must be the same browser tab.).
Definitions
{
"type": "object",
"additionalProperties": false,
"required": [
"token_type",
"access_token",
"expires_in"
],
"properties": {
"token_type": {
"enum": [
"bearer"
]
},
"access_token": {
"type": "string"
},
"expires_in": {
"type": "integer"
},
"scope": {
"type": "string"
},
"refresh_token": {
"type": "string"
}
}
}