# #168656908 Trunko Callback Endpoint
https://www.pivotaltracker.com/story/show/168656908
## Scenario Test
### On Postman
```gherkin=
Scenario Outline: Callback Fail - Biller not found
Given Biller Config Set
And Method : <method>
When User hit trunko callback with invalid biller
Then User get http response code : <http_response_code>
And User get response : <response>
Examples:
| method | http_response_code | response |
| get | 403 | Biller not found |
| post | 403 | Biller not found |
Scenario Outline: Callback Fail - IP not registered
Given Biller Config Set
And Method : <method>
When User hit trunko callback from ip that is not registered
Then User get http response code : <http_response_code>
And User get response : <response>
Examples:
| method | http_response_code | response |
| get | 403 | Biller Unauthorized |
| post | 403 | Biller Unauthorized |
Scenario Outline: Callback Fail - Invalid Payload
Given Biller Config Set
And Method : <method>
When User hit trunko callback with valid biller
But User input invalid payload
Then User get http response code : <http_response_code>
And User get response : <response>
Examples:
| method | http_response_code | response |
| get | 400 | Can't read request body |
| post | 400 | Can't read request body |
Scenario Outline: Callback Fail - Without Payload
Given Biller Config Set
And Method : <method>
When User hit trunko callback with valid biller
But User input without payload
Then User get http response code : <http_response_code>
And User get response : <response>
Examples:
| method | http_response_code | response |
| get | 400 | Can't read request body |
| post | 400 | Can't read request body |
Scenario Outline: Callback Success
Given Biller Config Set
And Method : <method>
When User hit trunko callback with valid biller
And User input valid payload and send callback
Then User Get Http response code : <http_response_code>
And User get response : <response>
Examples:
| method | content-type | http_response_code | response |
| get | application/json | 200 | ok |
| post | application/json | 200 | ok |
| post | application/xml | 200 | ok |
| post | application/x-www-form-urlencoded | 200 | ok |
| post | multipart/form-data | 200 | ok |
```