Sandbox (Testing environment)

The PayLater API (Na splátkyTB) is included in a Sandbox environment to test possible loan precalculation scenarios and loan statuses before accessing to live data.Therefore, set of non-real loan precalculation scenarios and loan statuses were created.

 

Flow

1. Obtain access token - POST /paylater/sandbox/auth/oauth/v2/token

Response example: 

{

"access_token":"1234567898765434533334567865",

"token_type":"Bearer",

"expires_in":86400,

"scope":"PAY_LATER"

}

2. Loan precalculation - PUT /paylater/sandbox​/v1​/applications​/precalculation

In order to test different scenarios of loan precalculation, enter one of the values from the table below into the body of the request. 

Loan precalculation scenarios 

Scenario # Scenario 1 Scenario 2 Scenario 3 Scenario 4 Scenario 5 Scenario 6
Scenario type Positive Positive Positive Negative
(Insufficient Capacity)
Negative
(Value 99 of loan amount too low)
Negative
(Value 2001 of loan is too high)
Loan Amount 250 1850 250 1850 99 2001
Monthly income     1050 1050    
Monthly expenses     410 410    
Number of children     2 2    

 

3. Application submission - POST /paylater/sandbox​/v1​/applications

After submitting the application, choose one of the loan scenarios displayed below. After the selection of scenario the loan status will be changing automatically after approximately 3 minutes.

Loan status scenario types

Scenario type  
Cancelled NEW -> LOAN_APPLICATION_IN_PROGRESS -> CANCELED
Expired NEW -> LOAN_APPLICATION_IN_PROGRESS -> EXPIRED
Non-client NEW -> CUSTOMER_CREATION_IN_PROGRESS -> LOAN_APPLICATION_IN_PROGRESS -> LOAN_APPLICATION_FINISHED -> LOAN_DISBURSED
Client NEW -> LOAN_APPLICATION_IN_PROGRESS -> LOAN_APPLICATION_FINISHED -> LOAN_DISBURSED


The sandbox request will be deleted after 7 days. 

Loan limits 

Minimal value of loan is 100 EUR and Maximal value is 2,000 EUR

4. DELETE /paylater/sandbox/v1/applications/{application-id}

  • NOT_ALLOWED_OPER - Request is already in status that can not be canceled.
  • APP_NOT_FOUND - Request with specific request ID does not exist. 

 

5. GET /paylater/sandbox​/v1​/applications​/{application-id}​/status

  • APP_NOT_FOUND - Request with specific request ID does not exist.
  • OK - status received