v1

latestOpenAPI 3.1.0MIT2026-07-2484155300.5 KB
Payment Intent

Retrieve

Recovers the payment intent resource by its id

get/payments/intents/{id}

Path parameters

idstring uuid required

Payment intent primary identifier

Response

Retrieve a payment intent.

idstring required

Primary identifier

status'STARTED' | 'ENQUEUED' | 'CONSENT_AWAITING_AUTHORIZATION' | 'CONSENT_AUTHORIZED' | 'CONSENT_REJECTED' | 'PAYMENT_PENDING' | 'PAYMENT_PARTIALLY_ACCEPTED' | 'PAYMENT_SETTLEMENT_PROCESSING' | 'PAYMENT_SETTLEMENT_DEBTOR_ACCOUNT' | 'PAYMENT_COMPLETED' | 'PAYMENT_REJECTED' | 'REJECTED' | 'ERROR' | 'CANCELED' | 'REVOKED' | 'CONSUMED' required

Lifecycle of a payment intent. The flow goes from consent collection (CONSENT_) to payment execution (PAYMENT_).

Consent phase

  • STARTED: the consent process started at Pluggy.
  • ENQUEUED: the payment is enqueued waiting for the consent flow to be initiated.
  • CONSENT_AWAITING_AUTHORIZATION: the payer must complete the authorization at the institution (see consentUrl).
  • CONSENT_AUTHORIZED: the consent was granted by the payer.
  • CONSENT_REJECTED: the consent was rejected by the payer or the institution.

Payment phase

  • PAYMENT_PENDING: the payment was submitted to the institution and is waiting confirmation.
  • PAYMENT_PARTIALLY_ACCEPTED: the payment was accepted but still needs an additional authorization (e.g. multi-signature accounts).
  • PAYMENT_SETTLEMENT_PROCESSING: the settlement is being processed.
  • PAYMENT_SETTLEMENT_DEBTOR_ACCOUNT: the funds were debited from the payer account; awaiting clearing.
  • PAYMENT_COMPLETED: the payment was confirmed by the institution.
  • PAYMENT_REJECTED: the payment was rejected after consent was authorized.

Terminal / other

  • REJECTED: generic rejected status (institution-specific reason in errorDetail).
  • ERROR: an unexpected error occurred during the flow.
  • CANCELED: the intent was canceled.
  • REVOKED: the consent was revoked after authorization (recurring payments only).
  • CONSUMED: the consent was fully consumed (recurring payments reached their end).
createdAtstring date-time required

Date when the payment intent was created

updatedAtstring date-time required

Date when the payment intent was updated

consentUrlstring

Url to authorize the payment intent

referenceIdstring

Pix id related to the payment intent

paymentMethod'PIS' | 'PIX'

Payment method can be PIS (Payment Initiation) or PIX

Example response

{
  "id": "4cfe1f6d-ae71-4c35-aae0-8f8a535ffbbd",
  "status": "CONSENT_AWAITING_AUTHORIZATION",
  "createdAt": "2023-11-06T15:38:47.861Z",
  "updatedAt": "2023-11-06T15:45:19.384Z",
  "paymentRequest": {
    "id": "c2a6b7d9-3349-435d-8341-44021449ebbc",
    "amount": 100.5,
    "description": "Transferência",
    "status": "IN_PROGRESS",
    "createdAt": "2023-11-06T13:03:45.689Z",
    "updatedAt": "2023-11-06T15:45:19.401Z",
    "callbackUrls": null,
    "recipient": null,
    "paymentUrl": "https://pay.pluggy.ai/05c693bf-c196-47ea-a28c-8251d6bb8a06"
  },
  "connector": {
    "id": 603,
    "name": "Bradesco",
    "primaryColor": "e5173f",
    "institutionUrl": "https://banco.bradesco/open-finance/logo/icones_vetorial-pf.svg",
    "country": "BR",
    "type": "PERSONAL_BANK",
    "credentials": [
      {
        "validation": "^\\d{3}\\.?\\d{3}\\.?\\d{3}-?\\d{2}$",
        "validationMessage": "CPF deve ter 11 números.",
        "label": "CPF",
        "name": "cpf",
        "type": "number",
        "placeholder": "",
        "optional": false
      }
    ],
    "imageUrl": "https://cdn.pluggy.ai/assets/connector-icons/203.svg",
    "hasMFA": false,
    "oauth": true,
    "health": {
      "status": "ONLINE",
      "stage": null
    },
    "products": [
      "ACCOUNTS",
      "TRANSACTIONS",
      "IDENTITY",
      "CREDIT_CARDS",
      "PAYMENT_DATA",
      "LOANS",
      "INVESTMENTS"
    ],
    "createdAt": "2023-07-12T20:20:17.253Z",
    "isSandbox": false,
    "isOpenFinance": true
  },
  "consentUrl": "https://consenturl.com"
}