/payments/requests/{id}/automatic-pix/scheduleSchedule Automatic PIX payment
Schedules an Automatic PIX payment
Parameters
Path Parameters
| Name | Type |
|---|---|
idrequired | string (uuid) |
Request Body
requiredRequest to schedule an Automatic PIX payment
Transaction value
Transaction description
The payment date, which must fall between D+2 and D+10. Date format must be YYYY-MM-DD (for example: 2025-06-16)
External identifier for the payment
Payment recipient identifier. It should be sent if you want to use a different recipient from the one consented in the payment request (it must have the same tax number as the consented recipient).
Example
{
"amount": 0,
"description": "string",
"date": "2024-01-01",
"clientPaymentId": "string",
"recipientId": "550e8400-e29b-41d4-a716-446655440000"
}Responses
Automatic PIX payment
Payment primary identifier
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`).
Payment amount
Payment description
Payment scheduled date
Payment end to end identifier
Details about an error that occurred with the automatic PIX payment
Error codes expected during payment processing: - SALDO_INSUFICIENTE: The selected account does not have sufficient balance to make the payment. - VALOR_ACIMA_LIMITE: Validates if the amount exceeds the limit established [by the institution (account or channel)/in the arrangement] to allow the client to perform transactions. - VALOR_INVALIDO: The submitted amount is not valid. - NAO_INFORMADO: Not reported/identified by the account-holding institution. - PAGAMENTO_DIVERGENTE_CONSENTIMENTO: Payment data differs from consent data. - PAGAMENTO_RECUSADO_DETENTORA: [description of the reason for refusal]. - PAGAMENTO_RECUSADO_SPI: [error code according to PACS.002 reason domain table]. - CONSENTIMENTO_INVALIDO: Invalid consent (in final status). - FALHA_INFRAESTRUTURA_SPI: Indicates a failure in the Instant Payments System (SPI). - FALHA_INFRAESTRUTURA_ICP: Indicates a failure in the Public Key Infrastructure (ICP). - FALHA_INFRAESTRUTURA_PSP_RECEBEDOR: Indicates a failure in the infrastructure of the Payment Service Provider (PSP) that receives the payment. - FALHA_INFRAESTRUTURA_DETENTORA: Indicates a failure in the infrastructure of the institution holding the information or resources. - TITULARIDADE_INCONSISTENTE: Account currently not associated with the CPF/CNPJ of the long-term consent. - LIMITE_PERIODO_VALOR_EXCEDIDO: The transaction cannot be performed because the amount parameterized in the consent has been exceeded. - LIMITE_PERIODO_QUANTIDADE_EXCEDIDO: The transaction cannot be performed because the quantity parameterized in the consent has been exceeded. - LIMITE_VALOR_TOTAL_CONSENTIMENTO_EXCEDIDO: The transaction amount exceeds the global consent limit. - LIMITE_VALOR_TRANSACAO_CONSENTIMENTO_EXCEDIDO: The transaction amount exceeds the per-transaction limit set in the consent. - LIMITE_TENTATIVAS_EXCEDIDO: The maximum number of settlement attempts allowed by the arrangement has been reached. - CONSENTIMENTO_REVOGADO: The payment was associated with a consent that has been revoked. - FORA_PRAZO_PERMITIDO: The request time or period does not allow scheduling by the holder. - DETALHE_TENTATIVA_INVALIDO: The parameter(s) [field_name(s)] entered for the new payment attempt do not match the original failed payment and are not allowed in the new attempt. - DETALHE_PAGAMENTO_INVALIDO: Validates if a given parameter provided complies with the business rules.
Additional details about the error
External identifier for the payment
Payment recipient identifier
Indicates if this is the first payment
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"
}
}
]
}Code Examples
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 '{}'