Ananas APItest bench
staging api.qa2.ananastest.com
TC-PRICE-01 Positive changes data

Updating price with a valid ID

Verify that the system accepts a valid price change

Specification · xlsx

Steps

  1. Send the request with a valid ID and price

Expected result

HTTP 200; price accepted

Endpoints

PUT /product/api/v1/merchant-integration/product/bulk

Run

API_URL
https://api.qa2.ananastest.com
TARGET_ID
2555660

Change parameters

A dry run builds every request without sending it; responses come from a local stub.

Test code

mirrors tests/BulkTest.php::tc_price_01()
16// Verify that the system accepts a valid price change
17public function tc_price_01(): void
18{
19 $targetId = (int) $_ENV['TARGET_ID'];
20
21 $productData = [
22 [
23 'id' => $targetId,
24 'basePrice' => 123456,
25 ],
26 ];
27
28 $response = $this->ananas->editInBulk($productData);
29
30 $this->assertEquals(200, $response['statusCode']);
31 $this->assertEquals('SUCCESS', $response['response'][0]['status']);
32}

web/app/Scenarios/BulkScenarios.php · line numbers refer to this file

Not run yet. Run it against the API, or do a dry run to see the requests it would send.