Show Menu

Fund User Wallet Using Credit Card

Fund User Wallet Using Credit Card

This call allows companies to allow their connected users to fund thier wallets using their credit card. Please contact support@xtrm.com to enable this API call.

post/API/v4/Wallet/FundUserWalletUsingCreditCard

Header Parameters

Authorizationstring

bearer access_token

Content-typestring

application/json

Request Parameters

IssuerAccountNumberstring

String length: inclusive between 1 and 25

Amountdecimal

Decimal length: inclusive between 1 and 25

CurrencyCodestring

String length: 3

WalletIDint

int length: inclusive between 1 and 10. Use 'GetUserWallets' to get WalletID.

PayerInformation

FirstNamestring

String length: inclusive between 1 and 50

LastNamestring

String length: inclusive between 1 and 50

PayerBillingAddress

Address1string

String length: inclusive between 1 and 200

Citystring

String length: inclusive between 1 and 25

Statestring

String length: inclusive between 1 and 25

CountryISO2string

String length: 2

PostalCodestring

String length: inclusive between 1 and 15

CreditCardDetails

ExpireMonthint

int length: 2

ExpireYearint

int length: 4

CreditCardNumberint

int length: inclusive between 13 and 16

CreditCardTypestring

String length: inclusive between 1 and 25

CVVint

int length: 4
enter a number such as, 111, 123 or 1234

Reponse Parameters

FundUserWalletUsingCreditCardResultstring

Returned if successful List of fields for a transaction. For each transaction the following parameters are returned:
TransactionID—Transaction ID
Amount—Amount
Fee—Fee
TotalAmount—Total Amount

OperationStatusstring

Always returned Indicates the status of the operation. Allowed parameters are:
Errors - Displays an error message if the Property name Obligation Definition/value operation was unsuccessful. For more information, see API Error Message Appendix.
Success—Indicates whether the operation was successful. Returns True if the action was successful or False if it was not successful.

Sample Request:

sandbox.xapi.xtrm.com/API/v4/Wallet/FundUserWalletUsingCreditCard

{
  "FundUserWalletUsingCreditCardRequest": {
    "Request": {
      "PaymentDetails": {
        "IssuerAccountNumber": "SPN Issuer Account Number",
        "AccountNumber": "PAT Account Number",
        "Amount": "Amount",
        "CurrencyCode": "Currency Code",
        "UserWalletID": "User Wallet ID"
      },
      "PayerInformation": {
        "FirstName": "First Name",
        "LastName": "Last Name"
      },
      "PayerBillingAddress":{
       "Address1":"Address 1",
       "City":"City",
       "State":"State",
       "CountryISO2":"Country Code",
       "PostalCode":"Postal Code"
      },
      "CreditCardDetails":{
       "ExpireMonth":"Expire Month",
       "ExpireYear":"Expire Year",
       "CreditCardNumber":"Credit Card Number",
       "CreditCardType":"Visa Card/Master Card/Amex Card",
       "CVV":"CVV"
      }
       
      }
    }
  }			

Sample Response:


{
	"FundUserWalletUsingCreditCardResponse": {
		"FundUserWalletUsingCreditCardResult": {
			"TransactionID": "208929373U0344516",
			"Amount": "100.00",
			"Fee": "3.00",
			"TotalAmount": "103.00",
			"Currency": "USD",
			"OperationStatus": {
				"Success": true,
				"Errors": null
			}
		}
	}
}