> For the complete documentation index, see [llms.txt](https://docs.vida.id/identity-stack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vida.id/identity-stack/verify/income-verification/mock-data-for-sandbox-testing.md).

# Mock Data for Sandbox Testing

## Income Verification API

<mark style="color:green;">`POST`</mark> `https://{vida.host}/verify/v1/income-verification/transaction`

#### Headers

| Name                                            | Type | Description                                                                                              |
| ----------------------------------------------- | ---- | -------------------------------------------------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> |      | <p>OAuth access token. </p><p>Get the token by calling the</p><p><strong>Authentication</strong> API</p> |
| Content-Type<mark style="color:red;">\*</mark>  |      | Format type of request body                                                                              |

#### Request Body

| Name         | Type    | Description                                                              |
| ------------ | ------- | ------------------------------------------------------------------------ |
| partnerTrxId | String  | Unique transaction reference number from the client                      |
| nik          | String  | <p>NIK number of the user.</p><p>Length: 16 digits</p>                   |
| incomePeriod | String  | Income period in format of MM/YYYY                                       |
| incomeValue  | Integer | On the API request parameter, this field consists the exact income value |
| companyName  | String  | The company where the income received on the specified period.           |

#### Mock Data Structure

```json
Mock NIK for income verification :

NIK : aabbccmmyyyyxxxx

aa : cases
		35 - Normal
		46 - Gateway timeout
		47 - Internal error
		52 - Delay 3 seconds
		53 - Delay 60 seconds

bb : Income range
  00 : "<Rp. 2.5 Juta"
  01 : "Rp.2.5 Juta - Rp. 3.5 Juta"
  02 : "Rp. 3.5 Juta - Rp. 4.5 Juta"
  03 : "Rp. 4.5 Juta - Rp. 5.5 Juta"
  04 : "Rp. 5.5 Juta - Rp. 6.5 Juta"
  05 : "Rp. 6.5 Juta - Rp. 7.5 Juta"
  06 : "Rp. 7.5 Juta - Rp. 8.5 Juta"
  07 : "Rp. 8.5 Juta - Rp. 10.5 Juta"
  08 : "Rp. 10.5 Juta- Rp. 13 Juta"
  09 : "Rp. 13 Juta- Rp. 16 Juta"
  10 : "Rp. 16 Juta - Rp. 20 Juta"
  11 : "Rp. 20 Juta - Rp. 30 Juta"
  12 : "Rp. 30 Juta - Rp. 40 Juta"
  13 : "Rp. 40 Juta - Rp. 55 Juta"
  14 : "Rp. Rp. 55 Juta - Rp. 70 Juta"
  15 : "Rp. Rp. 70 Juta - Rp. 85 Juta"
  16 : "Rp. 85 Juta - Rp. 100 Juta"
  17 : ">Rp. 100 Juta"

mmyyyy : income period is translated to mm/yyyy

xxxx : Company name
	"COMPANY" + dddd -> mapping for d : 0 = A, 1 = B, 2 = C, ...


Example:
Use this NIK: 3500000420210002
to get result of income verification for income range "<2.5JT" with income period 04/2021 and Company name COMPANYAAAC
```

**JSON Payload (Mock Data)**

```
{
    "parameters": {
        "partnerTrxnId": "{{$guid}}",
        "nik": "350100xx04200002",
        "incomePeriod": "02/2024",
        "incomeValue": 1000000,
        "companyName": "COMPANYAAAC",
        "userConsent": {
            "userIp": "226.80.211.232",
            "country": "IDN",
            "obtained": true,
            "obtainedAt": "1680700959"
    }
    }
}
```
