Outgoing Payments

You can make payments from an payment profile into a bank account of your choice, the primary function of this is to refund a payment.

First you will need to call our API and request a payment. This should be done from your back-end to prevent users from accessing your payment profile credentials.

To do this you need to send a POST request to the following url

https://api.vendreo.com/v1/request-outgoing-payment (Full example: docs)

curl --location --request POST 'https://api.vendreo.com/v1/request-outgoing-payment' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {AUTH_TOKEN}' \
  --data-raw '{
    "application_key": "{APPLICATION_KEY}",
    "amount": "120",
    "currency": "GBP",
    "description" : "Product Description",
    "redirect_url": "https://example.com/redirect",
    "original_payment_uuid": null,
    "options": "optional string ",
    "account_name": "Joe Blogs",
    "sort_code": "123456",
    "account_number": "12345678"
  }'

User will be redirected to redirect_url where the payment process will start.

Sandbox Credentials:

BankHow to login
AIB GB SandboxClick on the login link. Authorisation will complete immediately and you will be redirected.
Natwest SandboxCustomer Number: 123456789012

When prompted to enter your PIN and Password, Natwest Sandbox will display the values to enter above each text box. Please enter these values in each box before selecting 'Continue'
Royal Bank Of ScotlandCustomer Number: 123456789012

When prompted to enter your PIN and Password, Natwest Sandbox will display the values to enter above each text box. Please enter these values in each box before selecting 'Continue'
Modelo SandboxUsername: mits
Passwords: mits

As soon as the payment process is complete (success/fail), the user will be redirected to the redirect_url provided on request-outgoing-payment API request.

Returned Postbacks

Vendreo will attempt to inform your system about the status of a payment by making a series of API requests to your Payment Profile callback URL