openapi: 3.1.0 info: title: Mercado Pago REST Authentication API description: 'Mercado Pago REST API covering payments, Checkout Pro preferences, subscriptions (preapprovals), customers, cards, merchant orders, Orders API, refunds, chargebacks, claims, reports, Point (POS), QR, and OAuth. All requests authenticate with a Bearer access token in the `Authorization` header. Webhook deliveries are signed via the `x-signature` and `x-request-id` headers. ' version: v1 contact: name: Mercado Pago Developers url: https://www.mercadopago.com.br/developers/en/reference license: name: Mercado Pago Terms of Service url: https://www.mercadopago.com.br/ayuda/terminos-y-politicas_299 servers: - url: https://api.mercadopago.com description: Mercado Pago Production API security: - bearerAuth: [] tags: - name: Authentication description: OAuth 2.0 authorisation flows paths: /oauth/token: post: tags: - Authentication summary: Create Or Refresh An OAuth Token operationId: createOauthToken requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/OAuthTokenRequest' responses: '200': description: Access token issued content: application/json: schema: $ref: '#/components/schemas/OAuthTokenResponse' components: schemas: OAuthTokenRequest: type: object required: - grant_type - client_id - client_secret properties: grant_type: type: string enum: - authorization_code - refresh_token - client_credentials client_id: type: string client_secret: type: string code: type: string refresh_token: type: string redirect_uri: type: string format: uri OAuthTokenResponse: type: object properties: access_token: type: string token_type: type: string example: bearer expires_in: type: integer scope: type: string user_id: type: integer refresh_token: type: string public_key: type: string live_mode: type: boolean securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: access_token description: 'Mercado Pago access token. Send as `Authorization: Bearer {ACCESS_TOKEN}`. HTTPS is required. Idempotency is supported via the `X-Idempotency-Key` header on POST/PUT operations. ' oauth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://auth.mercadopago.com/authorization tokenUrl: https://api.mercadopago.com/oauth/token scopes: offline_access: Persistent refresh token read: Read merchant data write: Write merchant data