Buyers are identities representing a business
Once on-boarded, Buyers can create payment runs and pay their suppliers in your application.
Weavr Payment Run Plug-in API provides a simple and flexible way for Embedders to add payment execution capabilities in their application.
By integrating Weavr Payment Run plug-in API in your application, you can embed banking and payment capabilities within your app to boost productivity for your users in a seamless experience.
Each request to the API must include an api_key that represents your account. You can obtain an API Key by registering for a Embedder account here.
Almost all endpoints require a secondary authentication token auth_token that represents the user for whom the request is being executed.
The collection makes use of environment variables to pre-fill details associated with your Sandbox account, such as your account’s API Key. You can download your Sandbox Account environment file from the Sandbox Portal.
Buyers need to complete due diligence (KYB) before they can create payment runs and pay their suppliers.
This operation initiates the due diligence process for the buyer that the logged-in user belongs to.
Due Diligence is handled by a KYB provider - you will need to embed the KYB UI Component in your application so that the buyer will be able to perform the KYB process.
To initialise the KYB UI Component, you need a reference that is given you in the response of this operation.
Required user role: ADMIN
curl -i -X POST \
https://api.weavr.io/_mock/products/payment-run/openapi/v1/buyers/kyb \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'api-key: YOUR_API_KEY_HERE' \
-H 'idempotency-ref: string'{ "reference": "string" }
curl -i -X GET \
https://api.weavr.io/_mock/products/payment-run/openapi/v1/buyers/kyb \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'api-key: YOUR_API_KEY_HERE'{ "kybStatus": "NOT_STARTED", "ongoingKybStatus": "NOT_STARTED" }
Update the details of the buyer that the logged-in user belongs to.
The following Buyer details are verified during due diligence (KYB) and cannot be updated via the API once the Buyer has been verified:
If these details need to be changed after due diligence is completed, please contact Customer Support to restart the Due Diligence process.
Required user role: ADMIN
The tag field is a custom field that can be used to search and filter.
The details associated with the company. The details provided need to match exactly with the details provided during KYB.
curl -i -X PATCH \
https://api.weavr.io/_mock/products/payment-run/openapi/v1/buyers/kyb \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-d '{
"tag": "string",
"company": {
"businessAddress": {
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"postCode": "string",
"state": "string",
"country": "st"
}
},
"adminUser": {
"name": "string",
"surname": "string",
"email": "user@example.com",
"mobile": {
"countryCode": "string",
"number": "string"
},
"dateOfBirth": {
"year": 1900,
"month": 1,
"day": 1
}
}
}'Success
The tag field is a custom field that can be used to search and filter.
The admin user of the Buyer Identity.
Mobile number of the user
The company position of the Buyer Admin User.
The state of the admin user. If false, then the user will not be able to log in.
Indicates if the admin user's email has been verified.
Indicates if the admin user's mobile number has been verified.
Roles define the level of access assigned to the user.
CREATOR: Users assigned this role can create, view and update payment runs.CONTROLLER: Users assigned this role can view and link their company's bank accounts as well as fund payment runs.ADMIN: Users assigned to this role can create a business and ensure that systems and processes are effectively managed.The details associated with the company being on-boarded. The details provided need to match exactly with the details provided during KYB.
Supported company types - if company type is not listed, please contact our support team to check if the company type can be supported.
The country of company registration in ISO 3166 alpha-2.
The legal address of the company. This information is captured via the Due Diligence (KYB) process.
Must be set to true to indicate that the admin user has accepted the terms and conditions.
The currency expressed in ISO-4217 code.
The status of the currency, which can include the following values
PENDING_KYB_APPROVAL: The buyer’s KYB process is pending approval.STEPUP_LOGIN_REQUIRED: The buyer needs to perform a stepped-up login for higher authentication.PENDING_CREATION: Awaiting the setup completion of the currencyACTIVE: The ZBA has been successfully created and is ready for use.UNAVAILABLE: The currency is unavailable and cannot be used.{ "id": "string", "tag": "string", "adminUser": { "id": "string", "name": "string", "surname": "string", "email": "user@example.com", "mobile": { … }, "companyPosition": "DIRECTOR", "dateOfBirth": { … }, "active": true, "emailVerified": true, "mobileNumberVerified": true, "roles": [ … ] }, "company": { "type": "LLC", "name": "string", "registrationNumber": "string", "businessAddress": { … }, "countryOfRegistration": "GB", "registeredAddress": { … }, "incorporatedOn": { … } }, "acceptedTerms": true, "supportedCurrencies": [ { … } ], "creationTimestamp": 0 }
A Payment run contains a list of supplier payments. A Payment run can be
CREATOR roleCONTROLLER roleCONTROLLER roleNote that the Controller user must have their mobile device enrolled to SCA.
Before a payment run can be executed, it must be funded. Users with the CONTROLLER role must link their company's bank account(s) that are represented as Linked Accounts, which than can be used as the funding source for a payment run.
Depending on the bank's constraints it may not be possible to deposit the total amount of funds required for a payment run, in which case the payment run will be automatically split into funding groups. All funding groups must be funded and executed for the payment run to be marked as completed.
Note that even if the payment is created successfully, you still need to check its status in order to determine if it is completed orfailed.
Simulators enable you to trigger processes in Sandbox that in Production are triggered from an external action rather than from your application. this way you can test scenarios that otherwise you would only encounter in the Live environment.
Note: These endpoints are only available on Sandbox and won’t work in the Live environment.