Skip to content

Instantly share code, notes, and snippets.

@code-poel
Last active August 29, 2015 14:06
Show Gist options
  • Save code-poel/1b67634f68d6c161d684 to your computer and use it in GitHub Desktop.
Save code-poel/1b67634f68d6c161d684 to your computer and use it in GitHub Desktop.
Create a new, active, gift card account.
<?php
try
{
$proxy = new SoapClient('./api/v2_soap/?wsdl');
$sessionId = $proxy->login('XXXXX', 'XXXXX');
$result = $proxy->giftcardAccountCreate(
$sessionId,
array(
'status' => 1,
'is_redeemable' => 1,
'website_id' => 1,
'balance' => '80',
'state' => 0
)
);
var_dump($result);
}
catch (Exception $e)
{
die($e->getMessage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment