nuri60
$mutation = [
'query' => 'mutation ($input: CreateAuctionInput!) {
createAuction(input: $input) {
isSuccessful
actionId
auctionId
}
}',
'variables' => [
'input' => [
'productId' => '92c73bdc-80d4-1041-a4de-c12cc3d288c0',
'enabled' => true,
'keys' => ['key-one', 'key-two'],
'autoRenew' => false,
'price' => [
'amount' => 1399,
'currency' => 'EUR',
],
],
],
];
$response = Http::post('https://api-sandbox.eneba.com/graphql/', $mutation);
$data = $response->json();
return $data;