invoice_sections_with_taxes per-agent, RT#79636
[freeside.git] / bin / xmlrpc-insert_credit_phonenum
1 #!/usr/bin/perl
2
3 use strict;
4 use Frontier::Client;
5 use Data::Dumper;
6
7 my $uri = new URI 'http://localhost:8008/';
8
9 my $server = new Frontier::Client ( 'url' => $uri );
10
11 my $result = $server->call(
12   'FS.API.insert_credit_phonenum',
13     'secret'   => 'sharingiscaring',
14     'phonenum' => '3125550001',
15     'amount'   => '54.32',
16
17     #optional
18     '_date'   => 1397977200, #UNIX timestamp
19 );
20
21 #die $result->{'error'} if $result->{'error'};
22
23 print Dumper($result);
24
25 1;