'quantity' => 1,
'label' => 'awesome credit',
'description' => 'schubbidu',
'priceDefinition' =>
[ 'price' =>
$creditAmount,
'quantity' => 1,
'isCalculated' => false,
'precision' => 2,
],
];
$versionId =
$this->
createVersionedOrder($orderId);
// add credit item to order
$this->
getBrowser()->
request( 'POST',
sprintf( '/api/_action/order/%s/creditItem',
$orderId ),
[],
[],
[