action squareup_create_mobile_authorization_code { label: "CreateMobileAuthorizationCode" description: "Generates code to authorize a mobile application to connect to a Square card reader\n\nAuthorization codes are one-time-use and expire __60 minutes__ after being issued.\n\n__Important:__ The `Authorization` header you provide to this endpoint must have the following format:\n\n```\nAuthorization: Bearer ACCESS_TOKEN\n```\n\nReplace `ACCESS_TOKEN` with a\n[valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens)." provider: squareup method: POST path: "/mobile/authorization-code" encoding: json input: { type: "object" description: "Defines the body parameters that can be provided in a request to the\n__CreateMobileAuthorizationCode__ endpoint." properties: { location_id: { type: "string" description: "The Square location ID the authorization code should be tied to." } } } output: { type: "object" description: "Defines the fields that are included in the response body of\na request to the __CreateMobileAuthorizationCode__ endpoint." properties: { authorization_code: { type: "string" description: "Generated authorization code that connects a mobile application instance\nto a Square account." } error: { type: "object" description: "Represents an error encountered during a request to the Connect API.\n\nSee [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information." required: ["category", "code"] properties: { category: { type: "string" description: "The high-level category for the error." } code: { type: "string" description: "The specific code of the error." } detail: { type: "string" description: "A human-readable description of the error for debugging purposes." } field: { type: "string" description: "The name of the field provided in the original request (if any) that\nthe error pertains to." } } } expires_at: { type: "string" description: "The timestamp when `authorization_code` expires in\n[RFC 3339](https://tools.ietf.org/html/rfc3339) format, e.g., \"2016-09-04T23:59:33.123Z\"." } } } }