Skip to main content

Documentation Index

Fetch the complete documentation index at: https://support.wepayments.com.br/llms.txt

Use this file to discover all available pages before exploring further.

This guide covers automating payment operations via API, including API key creation, IP whitelisting, access control, permissions, and webhook notifications.

Automation overview

WEpayments APIs enable you to automate payment operations, reducing manual Dashboard work and enabling seamless integration with your internal systems.

What can be automated

OperationAutomation method
Payin (charge creation)API
Payout (payment creation)API
Data Collect (beneficiary self-onboarding)API
PIX key validationAPI
Transaction status checkingAPI or webhooks
Statement downloadsAPI
KYC document submissionAPI

API authentication setup

To automate operations via API, you need:
RequirementDescription
API userDedicated user created in Dashboard (not for human login)
API keyGenerated per user – only shown once
IP whitelistAllowed IP addresses that can use the key
Two-factor authenticationRequired to generate and delete API keys

Step-by-step

StepAction
1. Create userSettings > Access Control > Create User (Moderator only)
2. Assign permissionsSelect features the API can perform (charges, payments, statements, KYC)
3. Generate API keyOn user editing screen > API Key section > Create API Key
4. Enter IPsAt least one IP address required
5. Provide 2FA codeRequired for security
6. Copy and storeKey is only shown once – store securely
💡 Only IPs listed in the whitelist can make calls using the API key.

Access control and permissions

The Access Control menu is only visible to users with Moderator permissions.
RoleWhat it allows
ModeratorFull access – can create new users, edit access, manage permissions
WriteCan create payments and charges, edit information
ViewRead-only – cannot create or edit
💡 The permissions available depend on the type of product you have purchased.

API user permissions

When creating an API user, you can assign specific permissions such as:
PermissionWhat it allows the API to do
Create charges (payin)Create PIX, boleto, and credit card charges
Create payments (payout)Send payments to beneficiaries
View statementRetrieve balance and transaction statements
Insert KYC documentsSubmit compliance documents

Webhook notifications

Webhooks are HTTP callbacks that send real-time event data to your endpoint when specific events occur.

Common webhook events

EventWhen triggered
Payment confirmedPayout successfully completed
Charge receivedPayin payment confirmed
Document requestedKYC/KYL documents needed
Document approvedCompliance documents approved
Transaction under reviewCompliance review triggered
💡 Webhook configuration: Contact support for webhook endpoint setup and event subscription details.

Automation best practices

PracticeWhy
Use dedicated API userPrevents access loss if employee leaves
Minimize permissionsGrant only what the API needs
Store API keys securelyKeys are only shown once
Implement retry logicHandle transient failures gracefully
Monitor API usageDetect unusual patterns
Test in sandbox firstValidate before production

Notifications configuration

In the Notifications menu, you can configure how you want to receive notifications about payment, collection, or compliance operations.
ConfigurationOptions
ChannelEmail, Dashboard, webhook
EventsPayment confirmation, charge received, document requests, etc.
RecipientsEmail addresses or Dashboard users
⚠️ Note: Some notification options are not yet fully available. Contact support for current status.