Use pullAccount to retrieve a registered customer’s saved payment tokens and available payment options.
This request returns all stored cards or other payment methods linked to a specific Super Wallet customer.
Common use: retrieve stored payment tokens (e.g., cards) to display as selectable options during checkout.
Endpoint
POST https://secure.3gdirectpay.com/API/v6/Headers
Content-Type: application/xml; charset=utf-8
Accept: application/xml
Request
Required Fields
| Field | Type | Req | Description |
|---|---|---|---|
Request | string | Yes | Must be pullAccount |
CompanyToken | string | Yes | Token provided by DPO to authorize API operations |
customerToken | string | Yes | Token identifying the customer (retrieved from createAccount) |
Example Request (XML)
<?xml version="1.0" encoding="utf-8"?>
<API3G>
<CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken>
<Request>pullAccount</Request>
<customerToken>E6C04D7E-C267-4243-BD1C-49170F8A008B</customerToken>
</API3G>Tip:
Use this endpoint to show customers their saved cards, digital wallets, or payment methods for quicker checkouts.
Response
Example Success Response (XML)
<?xml version="1.0" encoding="utf-8"?>
<API3G>
<Result>000</Result>
<ResultExplanation>Success</ResultExplanation>
<customerToken>E6C04D7E-C267-4243-BD1C-49170F8A008B</customerToken>
<paymentOptions>
<customerToken>9C6BB1D2-B2DE-46B3-8AD7-409168936DDA</customerToken>
<option>
<subscriptionToken>977E056D-3AD2-4DC5-AE8A-3B8CFF00741A</subscriptionToken>
<paymentType>Mastercard</paymentType>
<paymentLast4>0015</paymentLast4>
</option>
</paymentOptions>
</API3G>Field Reference
| Field | Type | Description |
|---|---|---|
Result | integer | Result code returned by the server |
ResultExplanation | string | Human-readable explanation of the response |
customerToken | string | Customer’s Super Wallet token |
paymentOptions | array | Contains one or more payment options |
subscriptionToken | string | Tokenized reference for the stored payment method |
paymentType | string | Payment type or card brand (e.g., Visa, Mastercard, Mobile) |
paymentLast4 | string | Last 4 digits of the stored card or phone number |
Result Codes
| Code | ResultExplanation | Meaning / Action |
|---|---|---|
000 | Success | Tokens retrieved successfully |
803 | Invalid or missing Request name | Ensure pullAccount |
888 | System error | Retry or contact support |
902 | Data mismatch | Verify customerToken |
950 | Missing mandatory fields | Add missing tags |
991 | Encrypted string empty | Request formatting issue |
999 | Customer not found | Ensure account was created and verified |
Typical Usage Flow
sequenceDiagram participant M as Merchant participant D as DPO API M->>D: pullAccount<br/>(CompanyToken, customerToken) D-->>M: Result 000 + paymentOptions<br/>(subscriptionToken, paymentType, paymentLast4) M->>M: Display available stored cards or wallets<br/>for customer selection Note over M,D: Use subscriptionToken for future charges<br/>via customerChargeToken
Notes & Best Practices
- Use case: Display a customer’s saved cards or payment methods for faster checkout experiences.
- Token handling: Store only the
subscriptionTokenandpaymentType— never full PAN or CVV. - Customer verification: Ensure the
customerTokenis valid and active before calling this API. - Multiple payment options: Customers may have several saved methods; always iterate over all
<option>entries. - Security: Handle token data securely; these tokens act as authorization credentials for subsequent payments.
- Error handling: Always check both
ResultandResultExplanationbefore displaying payment options.

