Test Data
Riverty allows you to simulate specific results based on specific input values. This is useful for testing integrations, validating workflows, and ensuring your application handles different scenarios before moving to production. It also supports automated tests with reliable results, so your test suite can consistently validate expected outcomes without data dependencies.
How It Works
- The service accepts your input and returns a predefined mock response.
- Each input pattern corresponds to a specific mock result.
- This allows developers to trigger edge cases or simulate specific customer or transaction states without needing real data.
Example
Request
{
"customer":{
"email":"astrid.svensson@example.com",
"firstName":"Reject",
"lastName":"Svensson",
"birthDate":"1999-01-02",
"salutation":"Mrs",
...
},
...
}
Response
{
"outcome":"Rejected",
...
}
Generic Test Cases
Input parameter | Input | Description | Outcome |
---|---|---|---|
customer.firstName | Accept (or any other name, that will not lead to a rejection) | Standard behavior, transaction is accepted | Accepted (200) |
customer.firstName | Reject | Transaction is rejected due to a negative customer score | Rejected (200.901, Negative Customer Score) |
customer.firstName | Underage | Transaction is rejected, because the customer is underage | Rejected (200.001, Customer Too Young) |
customer.firstName | Integer (e.g. 80) | Transaction is rejected, if the totalGrossAmount is higher than the entered integer, due to customer limit reached | Rejected (200.903, Customer Limit Reached) |
customer.firstName | ChargebackPresent | Transaction is rejected, because there is an open direct debit chargeback | Rejected (200.912, Chargeback present) |
Redirect flows
Input parameter | Input | Description | Outcome |
---|---|---|---|
customer.firstName | StrongCustomerAuthentication | Requires SCA Flow: Depends on billing country what is triggered, currently supported: DE & NL. | Pending |
customer.firstName | BankVerification | Transaction requires bank account verification flow with Tink. To get accepted, please select Tink Demo Bank and use the following credentials (with first account): | Pending |
customer.firstName | OneTimePassword | Requires OTP Flow and will trigger SMS or EMAIL OTP. | Pending |
customer.firstName | ManualOrderReview | Requires Manual Order Review | Pending |
Address-based Rejections
Input parameter | Input | Description | Outcome |
---|---|---|---|
customer.firstName | InvalidAddress | Billing address is invalid | Rejected (200.101, Billing address is invalid) |
customer.firstName | InvalidDeliveryAddress | Delivery address is invalid | Rejected (200.102, Billing address is invalid) |
customer.firstName | PackstationNotAllowed | PickUpPointInvalidAsBillingAddress | Rejected (200.004, Packstation not allowed) |
customer.firstName | ShipToBilling | BillingAndDeliveryAddressMustBeSame | Rejected (200.006, Billing and delivery address must be the same) |
customer.firstName | AddressCorrection | Address is corrected | Rejected (200.103, The billing address was corrected, please verify) |
Specific error cases for Direct Debit (incl. Installments)
Input parameter | Input | Description | Outcome |
---|---|---|---|
payment.directDebit.bankAccount | DE59460709240190185900 | Bank account is invalid | Rejected (200.908, Bank account is invalid) |
payment.directDebit.bankAccount | AU59460700240190185900 | IBAN country not supported | Rejected (200.909, IBAN country not supported) |
Country specific input
Billing Address
Field | Value |
---|---|
Salutation | Mr., Mrs., Miss |
First Name | Jan |
Last Name | Jansen |
test@example.com (or rejection@riverty.com to trigger a rejection) | |
Telephone | 0513744112 |
Street Name | Hogehilweg |
House Number | 8 |
Zip Code | 1101CC |
City | Amsterdam |
Country | NL |
Date of Birth | 01.02.1993 |
Separate Shipping Data (If Needed)
Field | Value |
---|---|
Zip code (shipping-address) | 8441ER |
House number (shipping-address) | 83 |
Street name (shipping-address) | K.R. Poststraat |
City (shipping-address) | Heerenveen |
Country (shipping-address) | NL |
Billing Address
Field | Value |
---|---|
Salutation | Mr., Mrs., Miss |
First Name | Gert |
Last Name | Maes |
test@example.com (or rejection@riverty.com to trigger a rejection) | |
Telephone | 012345678 |
Street Name | Hoofdstraat |
House Number | 1 |
Zip Code | 2000 |
City | Brussel |
Country | BE |
Date of Birth | 03.02.1981 |
Separate Shipping Data (If Needed)
Field | Value |
---|---|
Zip code (shipping-address) | 1234 |
House number (shipping-address) | 2 |
Street name (shipping-address) | Zijlaan |
City (shipping-address) | Antwerpen |
Country (shipping-address) | BE |
Billing Address
Field | Value |
---|---|
Salutation | Frau, Herr |
First Name | John |
Last Name | Doe |
test@example.com (or rejection@riverty.com to trigger a rejection) | |
Telephone | 0513744112 |
Street Name | Gütersloher Str. |
House Number | 123 |
Zip Code | 33415 |
City | Verl |
Country | DE |
Date of Birth | 11.01.1980 |
Separate Shipping Data (If Needed)
Field | Value |
---|---|
Zip code (shipping-address) | 12159 |
House number (shipping-address) | 99 |
Street name (shipping-address) | Rheinstraße |
City (shipping-address) | Berlin |
Country (shipping-address) | DE |
Billing Address
Field | Value |
---|---|
Salutation | Mr., Mrs., Miss |
First Name | Mary |
Last Name | Anne |
test@example.com | |
Telephone | 0513744112 |
Street Name | Donau-City-Straße |
House Number | 6 |
Zip Code | 1220 |
City | Wien |
Country | AT |
Date of Birth | 01-01-1980 |
Separate Shipping Data (If Needed)
Field | Value |
---|---|
Zip code (shipping-address) | 1210 |
House number (shipping-address) | 9 |
Street name (shipping-address) | Richard-Neutra-Gasse |
City (shipping-address) | Wien |
Country (shipping-address) | AT |
Billing Address
Field | Value |
---|---|
Salutation | Mr., Mrs., Miss |
First Name | John |
Last Name | Doe |
test@example.com | |
Telephone | 0513744112 |
Street Name | Technoparkstrasse |
House Number | 1 |
Zip Code | 8005 |
City | Zurich |
Country | CH |
Date of Birth | 01-01-1980 |
*We suggest the tester use their own email address.
Separate Shipping Data (If Needed)
Field | Value |
---|---|
Zip code (shipping-address) | 8952 |
House number (shipping-address) | 8 |
Street name (shipping-address) | Ifangstrasse |
City (shipping-address) | Schlieren |
Country (shipping-address) | CH |
Billing Address
Field | Value |
---|---|
Salutation | Mr., Mrs., Miss |
First Name | Anna Elisabet |
Last Name | Lindgren |
test@example.com | |
Telephone | |
Street Name | |
House Number | |
Zip Code | 41507 |
City | GÖTEBORG |
Country | SE |
Date of Birth | 01-01-1980 |
Personal Number | 194211212222 |
*We suggest the tester use their own email address.
Billing Address
Field | Value |
---|---|
Salutation | Mr., Mrs., Miss |
First Name | Karl |
Last Name | Olsen |
test@example.com | |
Telephone | 47259137 |
Street Name | FISKERGATA |
House Number | 78 |
Zip Code | 774 |
City | NO |
Country | 01-01-1980 |
Date of Birth | 194211212222 |
*We suggest the tester use their own email address.
Do you find this page helpful?