Show Menu

Fund Company Wallet Using Credit Card

Fund Company Wallet Using Credit Card

This call allows companies to fund thier own company wallets using their own credit card. If you are looking to take credit card payments from consumers (individuals) or other companies to your company wallets, use the XTRM Pay api call.

post/API/v4/Wallet/FundCompanyWalletUsingCreditCard

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 'GetCompanyWallets' to get WalletID.

PayerInformationstring

FirstNamestring

String length: inclusive between 1 and 50

LastNamestring

String length: inclusive between 1 and 40

PayerBillingAddressstring

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

CreditCardDetailsstring

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

FundCompanyWalletUsingCreditCardResultstring

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/FundCompanyWalletUsingCreditCard

{
  "FundCompanyWalletUsingCreditCardRequest": {
    "Request": {
      "PaymentDetails": {
        "IssuerAccountNumber": "SPN Issuer Account Number",
        "Amount": "Amount",
        "CurrencyCode": "Currency Code",
        "WalletID": "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:


{
	"FundCompanyWalletUsingCreditCardResponse": {
		"FundCompanyWalletUsingCreditCardResult": {
			"TransactionID": "1LE42338NH1339646",
			"Amount": "101.00",
			"Fee": "0.00",
			"TotalAmount": "101.00",
			"OperationStatus": {
				"Success": true,
				"Errors": null
			}
		}
	}
}