Subscription List

Subscription List

Field NameLenTypeReqVerComments
methodN/AAlp-NumYes1.0subscriptionList
fromEmailN/AAlp-NumYes1.0The email associated with the account from which the amount is deducted
pageSizeN/ANum--1.1Number of results per page
pageNumberN/ANum--1.1Which page to be returned
keyN/AAlp-NumYes1.0MD5(sharedSecret + pageSize + pageNumber)

This request is responded by a message with the following content:

Field NameLenTypeMdtVerComments
ResponseCodeN/AAlp-NumYes1.0The response code; 00 = Success;
ResponseDescriptionN/AAlp-NumYes1.0Human readable response
FeeN/ARealYes1.0Fee for the current transaction
ResultsN/ANumYes1.1Total of results
PageSizeN/ANumYes1.1Results per page
PageNumberN/ANumYes1.1Page Number
SubscriptionIdN/ANumYes1.0Unique identifier of the subscription
Subscription/ FromAccountIdN/AIntYes1.0The account ID from where the amount is deducted
Subscription/ FromAccountN/AAlp-NumYes1.1The account name from where the amount is deducted
Subscription/ FromAccountEmailN/AAlp-NumYes1.1The account email from where the amount is deducted
Subscription/ ToAccountIdN/AIntYes1.1The account ID where the amount has been transfered
Subscription/ ToAccountN/AAlp-NumYes1.1The account name where the amount has been transfered
Subscription/ ToAccountEmailN/AAlp-NumYesyeee1.1The account email where the amount has been transfered
Subscription/ AmountN/ARealYes1.0The amount to be deducted
Subscription/ CurrencyN/AApl-NumYes1.0The Currency Code (USD)
Subscription/ StartDateN/ADateYes1.0The date when the subscription started
Subscription/ EndDate*N/ADateYes1.0The date when the subscription should end
Subscription/ UserCancel*N/ANumYes1.01 if the subscription will be valid until the user cancel it
Subscription/ Transactions*N/ANumYes1.0The number of times the amount to be deducted before the subscription expires (is cancelled)
Subscription/ PaymentIntervalN/AYes1.01 = every week
2 = every 2 weeks
3 = every month
4 = every 3 months
5 = every 6 months
6 = annually
Subscription/ StatusId1NumYes1.02 = active
4 = canceled
32 = completed

* Only one of these fields will have a value, depending the type of the subscription


Request Sample:

https://secure.paxum.com/payment/api/paymentAPI.php
POST
method=subscriptionList&fromEmail=[email protected]&pageSize=10&pageNumber=1&key=1060b7b46a3bd36b3a0d66e0127d0517

Response Sample

<?xml version="1.0"?>
<Response>
    <Environment>PRODUCTION</Environment>
    <Method>subscriptionList</Method>
    <ResponseCode>00</ResponseCode>
    <ResponseDescription>Approved or Completed Successfully</ResponseDescription >
    <Fee>0.00</Fee>
    <Results>50</Results>
    <PageSize>10</PageSize>
    <PageNumber>1</PageNumber>
    <Subscriptions>
    <Subscription>
    <Id>12345</Id>
    <FromAccountId>34763473</FromAccountId>
    <FromAccount>2511.USD.CHQ.10000027</FromAccount>
    <FromAccountEmail>[email protected]</FromAccountEmail>
    <ToAccountId>3476578734</ToAccountId>
    <ToAccount>2511.USD.CHQ.10000032</ToAccount>
    <ToAccountEmail>[email protected]</ToAccountEmail>
    <Amount>100.00</Amount>
    <Currency>USD</Currency>
    <StartDate>2011-01-03</StartDate>
    <EndDate>2011-12-03</EndDate>
    <UserCancel/>
    <Transactions/>
    <PaymentInterval>3</PaymentInterval>
    <StatusId>2</StatusId>
    </Subscription>
    ...
    </Subscriptions>
</Response>

Working Sample(s):

subscriptionList.php