> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cabrapi.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Consultar Estado del Pago

> Consulta el estado actual de un pago por su UUID público usando GET /stores/{storeId}/payments/status/{uuid}.

## 📌 Endpoint

`GET /stores/{storeId}/payments/status/{uuid}`

Devuelve el estado actual de un pago de la tienda a partir de su `uuid` público. Ideal para hacer polling en el checkout después de generar un PIX o boleto.

***

## 🔐 Autenticación

* **Ruta pública** (no requiere `Authorization`).
* La tienda asociada a `storeId` debe tener un plan activo.

***

## 🧾 Parámetros de ruta

| Parámetro | Tipo | Obligatorio | Descripción |
| - | - | - | - |
| `storeId` | string | Sí | ID de la tienda |
| `uuid` | string (UUID) | Sí | UUID público del pago |

***

## ✅ Ejemplo de solicitud

```bash theme={null}
curl -X GET "https://api.cabrapi.com.br/v1/stores/STORE_ID/payments/status/PAYMENT_UUID"
```

***

## 📦 Respuesta exitosa (200)

```json theme={null}
{
	"code": "PAYMENT_STATUS",
	"payment": {
		"uuid": "56c4cc47-105d-4260-a938-7a4383028d2c",
		"status": "APPROVED"
	}
}
```

Valores posibles para `payment.status`: `PENDING`, `APPROVED`, `REJECTED`, `CANCELLED`, `REFUNDED`, `CHARGED_BACK`, `EXPIRED`.

***

## ⚠️ Posibles errores

* `400 INVALID_DATA` → `storeId` inválido o `uuid` no es un UUID válido
* `401 UNAUTHENTICATED` → tienda sin propietario asociado o conexión no disponible
* `403 NO_ACTIVE_SUBSCRIPTION` → tienda sin plan activo o plan expirado
* `404 STORE_NOT_FOUND` → tienda no encontrada
* `404 PAYMENT_NOT_FOUND` → pago no encontrado en esta tienda
* `429 RATE_LIMIT_EXCEEDED` → límite de solicitudes por minuto del plan excedido
* `503 SERVICE_UNAVAILABLE` → servicio temporalmente no disponible


## OpenAPI

````yaml GET /stores/{storeId}/payments/status/{uuid}
openapi: 3.1.0
info:
  title: caBRAPI
  version: 1.0.0
servers:
  - url: https://api.cabrapi.com.br/v1
security: []
paths:
  /stores/{storeId}/payments/status/{uuid}:
    get:
      tags:
        - Payments
      summary: Get payment status
      operationId: getPaymentStatus
      parameters:
        - $ref: '#/components/parameters/StoreId'
        - $ref: '#/components/parameters/UUID'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  code:
                    example: PAYMENT_STATUS
                    type: string
                  payment:
                    properties:
                      status:
                        enum:
                          - PENDING
                          - APPROVED
                          - REJECTED
                          - CANCELLED
                          - REFUNDED
                          - CHARGED_BACK
                          - EXPIRED
                        example: APPROVED
                        type: string
                      uuid:
                        example: 550e8400-e29b-41d4-a716-446655440000
                        type: string
                    required:
                      - uuid
                      - status
                    type: object
                required:
                  - code
                  - payment
                type: object
          description: Payment status retrieved successfully.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Invalid request (invalid UUID or invalid storeId).
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized (missing store owner or unavailable database).
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden (NO_ACTIVE_SUBSCRIPTION).
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Payment or store not found.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Rate limit exceeded.
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Service unavailable.
      security: []
components:
  parameters:
    StoreId:
      in: path
      name: storeId
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 50
    UUID:
      in: path
      name: uuid
      required: true
      schema:
        format: uuid
        type: string
  schemas:
    Error:
      properties:
        code:
          example: STORE_NOT_FOUND
          type: string
      required:
        - code
      type: object

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.