---
# System prepended metadata

title: 'SCM-657 - [Backend] Add Payload Validation for Exclusive on SKU Detail'
tags: [Ecommerce 1, Sprint 26]

---

# SCM-657 - [Backend] Add Payload Validation for Exclusive on SKU Detail

## Test Scenarios
#### Test Scenario 1
```gherkin
Scenario Outline: As an Admin, I shouldn't be able to update exclusive status with wrong value
    Given the user has logged in
    When the user input isExclusive field with <wrongType>
        And the user hit update exclusive catalogue status endpoint
    Then show error response message
    Examples:
    | wrongType |
    | --------- |
    | blank     |
    | string    |
    | integer   |
```

#### Test Scenario 2
```gherkin
Scenario: As an Admin, I want to update catalogue to be exclusive catalogue
    Given the user has logged in
        And catalogue <A> is non-exclusive catalogue
    When the user input isExclusive field as "true"
        And the user hit update exclusive catalogue status endpoint
    Then show RC 200 OK
        And show response for catalogue <A> with isExclusive field = true
```

#### Test Scenario 3
```gherkin
Scenario: As an Admin, I want to update exclusive catalogue to be non-exclusive catalogue
    Given the user has logged in
        And catalogue <A> is exclusive catalogue
    When the user input isExclusive field as "false"
        And the user hit update exclusive catalogue status endpoint
    Then show RC 200 OK
        And show response for catalogue <A> with isExclusive field = false
```

#### Test Scenario 4
```gherkin
Scenario:
    Given
        And
    When
    Then
```

###### tags: `Sprint 26` `Ecommerce 1`