/payments/intents/{id}Recuperar
Recupera o recurso de intenção de pagamento pelo seu id
Parameters
Path Parameters
| Name | Type |
|---|---|
idrequired | string (uuid) |
Responses
Request with information related to a payment intent
Identificador principal
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). - `PAYMENT_TIMEOUT`: the authorization attempt exceeded its timeout. Regular payment attempts time out after 30 minutes; Automatic PIX attempts time out after 60 minutes. The Payment Request returns to `CREATED`.
Data em que a intenção de pagamento foi criada
Data em que a intenção de pagamento foi atualizada
Solicitação de pagamento associada à intenção de pagamento
Response with information related to a payment request
Conector associado à intenção de pagamento
Connector object
Url para autorizar a intenção de pagamento
ID do Pix relacionado à intenção de pagamento
O método de pagamento pode ser PIS (Payment Initiation) ou PIX
Default: "PIS"
Dados do Pix relacionados à intenção de pagamento (aplica-se apenas ao método de pagamento PIX)
Payment Intent PIX data
Informações sobre a conta do pagador, retornadas pela instituição após a conclusão do pagamento. Nulo até que a instituição a exponha.
Information about the payer's account, as returned by the institution after the payment is completed. Only populated for `PAYMENT_COMPLETED` payment intents on connectors that expose this data.
Detalhes do erro quando a intenção de pagamento falha
Details about an error that occurred with the payment intent
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"
}curl -X GET \
'https://api.pluggy.ai/payments/intents/{id}' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY'{
"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"
}