use MazimezGigapayPayout;
$payout = Payout::create(
'9aa16b42-d0f3-420f-ba57-580c3c86c419', //employee id
'Instagram samarbete 2021-11-13.', //description for payout
120, //amount of payout
null, //cost of payout
null, //invoice amount of payout
'SEK', //currency of payout
json_encode([
"data" => "data from your system" //metadata of payout
]),
null, //The time at which the gig will start. Displayed as ISO 8601 string.
null, //The time at which the gig will end. Displayed as ISO 8601 string.
3 //Unique identifier for the object.
);
return $payout->getJson();
use MazimezGigapayPayout;
$payouts = Payout::list(); //getting list of employee
$payouts = $payouts->paginate(1, 5); //add pagination
return $payouts->getJson();
use MazimezGigapayPayout;
$payout = Payout::findById('1'); //getting payout by it's id
return $payout->getJson();