/payments/requests/{id}/automatic-pix/scheduleAgendar pagamento automático via PIX
Agenda um pagamento automático de PIX
Parameters
Path Parameters
| Name | Type |
|---|---|
idrequired | string (uuid) |
Request Body
requiredRequest to schedule an Automatic PIX payment
Valor da transação
Descrição da transação
A data de pagamento deve estar entre D+2 e D+10. O formato da data deve ser YYYY-MM-DD (por exemplo: 2025-06-16)
Identificador externo para o pagamento
Identificador do destinatário do pagamento. Deve ser enviado se você quiser usar um destinatário diferente do que foi consentido na solicitação de pagamento (ele deve ter o mesmo número de identificação fiscal que o destinatário consentido).
Example
{
"amount": 0,
"description": "string",
"date": "2024-01-01",
"clientPaymentId": "string",
"recipientId": "550e8400-e29b-41d4-a716-446655440000"
}Responses
Automatic PIX payment
Identificador primário de pagamento
Status of an individual recurring PIX payment. - `SCHEDULED`: the payment has been scheduled at the institution. - `CREATED`: the payment is created and pending execution. - `COMPLETED`: the payment was confirmed. - `CANCELED`: the payment was canceled. - `ERROR`: the payment failed (see `errorDetail`).
Valor do pagamento
Descrição do pagamento
Data agendada para pagamento
Identificador de pagamento de ponta a ponta
Details about an error that occurred with the automatic PIX payment
Identificador externo para o pagamento
Identificador do destinatário do pagamento
Indica se este é o primeiro pagamento
Payment attempt. It represents an attempt to complete this payment. Useful for tracking the payment history.
Example response
{
"id": "string",
"status": "SCHEDULED",
"amount": 0,
"description": "string",
"date": "2024-01-01",
"endToEndId": "string",
"errorDetail": {
"code": "SALDO_INSUFICIENTE",
"detail": "string"
},
"clientPaymentId": "string",
"recipientId": "550e8400-e29b-41d4-a716-446655440000",
"isFirstPayment": true,
"attempts": [
{
"id": "string",
"status": "IN_PROGRESS",
"endToEndId": "string",
"date": "2024-01-01",
"errorDetail": {
"code": "SALDO_INSUFICIENTE",
"detail": "string"
}
}
]
}curl -X POST \
'https://api.pluggy.ai/payments/requests/{id}/automatic-pix/schedule' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY' \
-d '{}'{
"id": "string",
"status": "SCHEDULED",
"amount": 0,
"description": "string",
"date": "2024-01-01",
"endToEndId": "string",
"errorDetail": {
"code": "SALDO_INSUFICIENTE",
"detail": "string"
},
"clientPaymentId": "string",
"recipientId": "550e8400-e29b-41d4-a716-446655440000",
"isFirstPayment": true,
"attempts": [
{
"id": "string",
"status": "IN_PROGRESS",
"endToEndId": "string",
"date": "2024-01-01",
"errorDetail": {
"code": "SALDO_INSUFICIENTE",
"detail": "string"
}
}
]
}