Skip to main content
GET
/
charge
/
{id}
Buscar cobrança por ID
curl --request GET \
  --url https://api.rivoopay.com/charge/{id} \
  --header 'X-API-KEY: <api-key>'
{
  "status": 123,
  "message": "<string>",
  "data": {
    "id": "charge_123456",
    "total": 100000,
    "url": "https://pay.rivoopay.com/c/charge_123456",
    "status": "OPEN",
    "paymentStatus": "PROCESSING",
    "devMode": false,
    "needShipping": false,
    "expiresAt": "2024-12-04T09:30:00.000Z",
    "company": {
      "taxId": "36062381000180",
      "name": "Empresa Bola Ltda",
      "color": "#000000",
      "imageUrl": "https://i.imgur.com/ONMjk45.jpeg"
    },
    "paymentDate": "2024-12-03T10:30:00.000Z",
    "successUrl": "https://example.com/success",
    "failedUrl": "https://example.com/failed",
    "brCode": "00020101021226950014br.gov.bcb.pix...",
    "brCodeBase64": "data:image/png;base64,iVBORw0KGgoAAA...",
    "items": [
      {
        "productId": "prod_123456",
        "companyId": "company_123456",
        "quantity": 2,
        "product": {
          "id": "prod_01F4Z8Z5Y6X7W8V9U0T1S2R3Q4",
          "name": "Produto Bola",
          "description": "Produto muito bom para uso diário",
          "price": 1990,
          "needShipping": false,
          "companyId": "f96a489c-8a4d-4c7b-a1f6-347acbd832df",
          "status": "ACTIVE",
          "sku": "SKU-ABCD-123",
          "imageUrl": "https://example.com/image.png",
          "categories": [
            "Eletronicos e Tecnologia",
            "Celulares e Smartphones"
          ],
          "marketplaceStatus": "INACTIVE",
          "dayDue": 4,
          "dayGenerateCharge": 14.5
        }
      }
    ],
    "customer": {
      "name": "João da Silva",
      "taxId": "***.***.529-25",
      "email": "j***@gmail.com",
      "phone": "(**) *****-9999"
    },
    "isRecurring": true,
    "pixAutomaticEmv": "<string>",
    "pixAutomaticQrCode": "<string>",
    "pixAutomaticPaymentLinkUrl": "<string>",
    "recurrenceChargeId": "<string>"
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

ID da cobrança

Response

Cobrança encontrada

status
number
required
message
string
required
data
object
required