Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.15 KB

create-mobile-authorization-code-response.md

File metadata and controls

27 lines (18 loc) · 1.15 KB

Create Mobile Authorization Code Response

Defines the fields that are included in the response body of a request to the CreateMobileAuthorizationCode endpoint.

Structure

CreateMobileAuthorizationCodeResponse

Fields

Name Type Tags Description
authorizationCode string | undefined Optional The generated authorization code that connects a mobile application instance
to a Square account.
Constraints: Maximum Length: 191
expiresAt string | undefined Optional The timestamp when authorization_code expires, in
RFC 3339 format (for example, "2016-09-04T23:59:33.123Z").
Constraints: Minimum Length: 20, Maximum Length: 48
error Error | undefined Optional Represents an error encountered during a request to the Connect API.

See Handling errors for more information.

Example (as JSON)

{
  "authorization_code": "YOUR_MOBILE_AUTHORIZATION_CODE",
  "expires_at": "2019-01-10T19:42:08Z"
}