Create a consent
Opens a payment consent for the end user. The response carries a
redirectUrl that the user must visit to authenticate at the account
holder and approve the payment. The institution is identified by the
organisationId and authorisationServerId returned by
Get registered participants.
/api/v1/open-integration/consentsCreate a consent
Opens a payment consent and returns the redirectUrl the end user must visit to authenticate at the account holder.
Corpo da requisição
3 camposorganisationId●OrganisationId of the selected institution (from Get registered participants).
authorisationServerId●AuthorisationServerId of the selected institution.
paymentPayment details.
detailsHuman-readable description of the payment.
documentPayment document identifier.
externalIdYour own identifier for the payment. Useful for cross-referencing and for lookups via `GET /payments/external/{externalId}`.
redirectUri●URL the end user is redirected to once the payment flow completes at the account holder. You are responsible for keeping it available.
cpfCnpj●Payer CPF or CNPJ (digits only).
value●Payment amount in BRL. Use decimals (for example, `1500.5`).
creditor●Creditor (receiver) details.
name●Creditor name.
personType●Creditor person type. One of `PESSOA_NATURAL`, `PESSOA_JURIDICA`.
cpfCnpj●Creditor CPF or CNPJ (digits only).
accountNumber●Creditor account number.
accountIssuer●Creditor account branch code.
accountIspb●Creditor ISPB (8 digits).
accountType●Creditor account type. One of `CACC` (checking), `SVGS` (savings), `TRAN` (payments).
debitorDebtor (payer) account details. Optional — if omitted, the account holder asks the end user.
accountNumber●Debtor account number.
accountIssuer●Debtor account branch code.
accountIspb●Debtor ISPB (8 digits).
accountType●Debtor account type. One of `CACC`, `SVGS`, `TRAN`.
txIdTransaction identifiers attached to the payment.
businessCnpjBusiness CNPJ (digits only). Optional — stored without punctuation when provided.
curl --request POST \
--url 'https://embedded-payment-manager.hml.linaob.com.br/api/v1/open-integration/consents' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <SEU_TOKEN>' \
--data '{
"organisationId": "c8f0bf49-4744-4933-8960-7add6e590841",
"authorisationServerId": "c8f0bf49-4744-4933-8960-7add6e590841",
"payment": {
"details": "Payment for services",
"document": "document123",
"externalId": "ext123",
"redirectUri": "https://your-app.example.com/payments/callback",
"cpfCnpj": "12345678901234",
"value": 1500.5,
"creditor": {
"name": "John Doe",
"personType": "PESSOA_NATURAL",
"cpfCnpj": "12345678901234",
"accountNumber": "1234567890",
"accountIssuer": "0001",
"accountIspb": "12345678",
"accountType": "CACC"
},
"debitor": {
"accountNumber": "1234567890",
"accountIssuer": "0001",
"accountIspb": "12345678",
"accountType": "CACC"
},
"txId": [
"ext123",
"ext1234"
],
"businessCnpj": "12345678000195"
}
}'Response
- dataobjectrequired
Consent creation result.
- idstringrequired
ID of the newly created payment request. Use it as the `paymentRequestId` when calling `GET /payments/requests/{paymentRequestId}`.
- redirectUrlstringrequired
URL to redirect the end user so they can authenticate at the account holder and approve the consent.
- messagestring
Response message.
- typestring
Response type. One of `error`, `warning`, `info`, `success`.
- statusCodeinteger· nullable
HTTP status code carried inside the envelope.
{
"data": {
"id": "payment123",
"redirectUrl": "https://bank.example.com/auth?consent=abc123"
},
"message": "Consent created successfully.",
"type": "success",
"statusCode": 200
}Next steps
- Get payment request — poll the payment status using the
idreturned above.