# Backend - Send New Store To Supplier after register
> API create Store draft to TRS
## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario Outline: Show Error Responses for blank field(s)
Given the user has logged into White
When the user input <nameValue> into name
And the user input <addressValue> into address
And the user input <cityValue> into city
And the user input <districtValue> into district
And the user input <postcodeValue> into postcode
And the user input <phoneValue> into phone
And the user input <emailValue> into email
And the user input <nikValue> into nik
And the user input <urbanValue> into urban
And the user input <provinceValue> into province
And the user input <latitudeValue> into latitude
And the user input <longitudeValue> into longitude
And the user hit API Create Store endpoint
Then the user failed to create store draft to Supplier
And show Error Responses for each blank field(s)
Examples:
| nameValue | addressValue | cityValue | districtValue | postcodeValue| phoneValue | emailValue | nikValue | urbanValue | provinceValue | latitudeValue | longitudeValue |
| <blank> | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | <blank> | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | <blank> | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | <blank> | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | <blank> | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | <blank> | sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| <blank> | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | <blank> | Duren Sawit| DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | <blank> | DKI Jakarta | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| <blank> | kodeLatitude | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | <blank> | kodeLongitude |
| Toko AWESOME | Jl. Disitu | Jakarta | Duren Sawit | 13450 | 08221384153| sinbadtest@gmail.com | 371567684856358365 | Duren Sawit| DKI Jakarta | kodeLatitude | <blank> |
```
#### Test Scenario 2
```gherkin
Scenario Outline: Show Error Responses for invalid format input field(s)
Given the user has logged into White
When the user input <postcodeValue> into postcode
And the user input <phoneValue> into phone
And the user input <emailValue> into email
And the user input <nikValue> into nik
And the user input other field(s) with correct data
And the user hit API Create Store endpoint
Then the user failed to create store draft to Supplier
And show Error Responses for each invalid format field(s)
Examples:
| postcodeValue | phoneValue | emailValue | nikValue |
| 1 | 081234567890 | sinbadtest@gmail.com | 371567684856358365 |
| 13450 | 0812345678901234 | sinbadtest@gmail.com | 371567684856358365 |
| 13450 | 0812 | sinbadtest@gmail.com | 371567684856358365 |
| 13450 | 081234567890 | sinbadtest | 371567684856358365 |
| 13450 | 081234567890 | sinbadtest@gmail.com | 371567684 |
| 13450 | 081234567890 | sinbadtest@gmail.com | 37156768485635836512123 |
```
#### Test Scenario 3
```gherkin
Scenario: Successfully hit API with correct input field(s)
Given the user has logged into White
When the user input 'Toko AWESOME ' into name
And the user input 'Jl. Disitu' into address
And the user input 'Jakarta Timur' into city
And the user input 'Duren Sawit' into district
And the user input '13450' into postcode
And the user input '08221384153' into phone
And the user input 'sinbadtest@gmail.com' into email
And the user input '371567684856358365' into nik
And the user input 'Duren Sawit' into urban
And the user input 'DKI Jakarta' into province
And the user input 'kodeLatitude' into latitude
And the user input 'kodeLongitude' into longitude
And the user hit API Create Store endpoint
Then the user successfully create store draft to Supplier
And show Success Response
```
###### tags: `Sprint 16` `Ecommerce` `API` `Sinbad`