MobileAuthorization
CreateMobileAuthorizationCode
Generates code to authorize a mobile application to connect to a Square card reader
Authorization codes are one-time-use and expire 60 minutes after being issued.
Important: The Authorization header you provide to this endpoint must have the following format:
Authorization: Bearer ACCESS_TOKEN
Replace ACCESS_TOKEN with a valid production authorization credential.
post/mobile/authorization-code
Request body
Example request
{
"request_body": {
"location_id": "YOUR_LOCATION_ID"
},
"request_url": "/mobile/authorization-code"
}Response
Success
Example response
{
"authorization_code": "YOUR_MOBILE_AUTHORIZATION_CODE",
"expires_at": "2019-01-10T19:42:08Z"
}