$data =
[ 'origin' =>
['name' => 'Shopware Backend'
],
'shopwareId' =>
$token->
getShopwareId(),
'positions' =>
[ [ 'licenseShopDomain' =>
$context->
getLicenceShop(),
'bookingShopDomain' =>
$context->
getBookingShop(),
'orderNumber' =>
$context->
getOrderNumber(),
'isArticle' => true,
'priceModel' =>
[ 'price' =>
$context->
getPrice(),
'type' =>
$context->
getPriceType(),
],
],
],
];
$response =
$this->storeClient->
doAuthPostRequest( $token,
'/basket',
$data );
$basket =
$this->hydrator->
hydrateBasket($response);