WePayments API (1.2.1)
Download OpenAPI specification:Download
Use this API to access and manage your WePayments account data
All endpoints are available via https
and are located at api.wepayout.com/v1/payout/.
Last update: 2021-12-14
Manage your data qualification data The data qualification process has the objectve to validate and qualify bank account data.
Data qualification services available
The data qualification services determine the procedures that will be applied to qualify the bank account. We have five data qualification services available:
- 1: - Automatic validation: validates the document and bank account digits.
- 2: - Automatic validation + micro deposit: After the data is validated a micro deposit is made to the account to assure that it's valid.
- 3: - Automatic validation + micro deposit + manual correction: Same as above plus manual check in case of failures.
- 4: - Automatic validation + deposit. Same as 2 but you provide the amount to be deposited.
- 5: - Automatic validation + deposit + manual correction: Same as 3 but you provide the amount to be deposited.
Authorizations:
Responses
Register a batch of data qualification orders
You can use this endpoint to create a data qualification batch.
In the data attribute you may pass a list of bank account datas to be qualified.
You can group your data qualification in batches, to do so use the field batch_code
.
Authorizations:
Request Body schema: application/json
Data Qualification creation
merchant_id | integer The Merchant ID, Required when you have access to more than one Merchant |
service_id required | integer [ 1 .. 5 ] The service ID The avaliable service can be retrived in the endpoint GET /data-qualification/services |
required | Array of objects[ items ] |
Responses
Callbacks
Request samples
- Payload
{- "merchant_id": 0,
- "service_id": 1,
- "data": [
- {
- "amount": 1000,
- "custom_code": "YourCustomCode",
- "batch_code": "YOURAPPCODE",
- "beneficiary": {
- "name": "The Name",
- "bank_code": "147",
- "bank_branch": "0000",
- "bank_branch_digit": "1",
- "account": "1030000",
- "account_digit": "1",
- "account_type": "CHECKING",
- "document": "12533009091"
}
}
]
}
Response samples
- 400
{- "message": "Error message.",
- "info": {
- "errors": [
- {
- "line": 1,
- "batch_code": "bc101",
- "custom_code": "cc101",
- "message": "Name format invalid"
}
], - "uploadSuccess": [
- {
- "line": 1,
- "batch_code": "bc102",
- "custom_code": "cc102"
}
], - "uploadChangeService": [
- {
- "line": 1,
- "batch_code": "bc101",
- "custom_code": "cc101",
- "message": "Data qualification by system"
}
]
}
}
Callback payload samples
{- "id": "1",
- "step": 0,
- "status_id": 0,
- "custom_code": "YOURAPPCODE",
- "batch_code": "bc101",
- "message": "",
- "name": "string",
- "document": "string",
- "bank_code": "string",
- "bank_branch": "string",
- "bank_branch_digit": "string",
- "account": "string",
- "account_digit": "string",
- "account_type": "string",
- "pix_key": "string"
}
List all data qualifications
A paginated, filterable and sortable list of DataQualification processes.
Authorizations:
query Parameters
per_page | integer >= 0 The number of items that will be displayed per page on paginated lists. |
page | integer >= 0 The current page that will be displayed on paginated lists. |
order_by | string Default: "id" Enum: "id" "data_qualification_service_name" "batch_code" "custom_code" "merchant.name" "description_status" "created_at" The field that will be used to sort data. |
sort | string Default: "asc" Enum: "asc" "desc" The sort type, asc or desc |
created_at | string Created at filter:
|
custom_code | string Filter by custom_code (invoice):
|
document | string Filter by the beneficiary's document:
|
data_qualification_service_id | integer Filter by qualification service You can list the available options in the endpoint GET /data-qualification/services |
merchant_id | integer Filter by merchant_id |
status_flow_data_qualification_id | string Filter by status You can list the available options in the endpoint GET /data-qualification/status |
Responses
Get the statuses available
A list with all status available Status Descriptions:
1
- Received: Payment received and stored in our database5
- Valid data: The account data is valid6
- Invalid data: Payment rejected by the bank7
- Validation not possible on this step: The account data provided can not be validated9
- Awaiting - Awaiting balance to be processed999
- Processing: Payment sent for processing
Authorizations:
query Parameters
per_page | integer >= 0 The number of items that will be displayed per page on paginated lists. |
page | integer >= 0 The current page that will be displayed on paginated lists. |
Responses
Find a data qualification order using custom code
path Parameters
customCode required | string |
Responses
Response samples
- 200
{- "id": 123,
- "batch_code": "abc101",
- "custom_code": "cc102",
- "data_qualification_service_name": "Data validation",
- "status_flow_data_qualification_id": 1,
- "data_qualification_status_flow_name": "Processing",
- "description_status": "Processando",
- "name": "Maria Jose",
- "document": "12345678909",
- "bank_code": "104",
- "bank_branch": "0123",
- "bank_branch_digit": "0",
- "account": "123456",
- "account_digit": "1",
- "account_type_name": "Checking account",
- "amount": 1.1,
- "created_at": "string",
- "updated_at": "string",
- "merchant": {
- "id": "string",
- "name": "string"
}
}