GET | /customers/{CustomerId}/fundingsources |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerId | path | string | Yes | The customer identifier |
DefaultFundingSource | query | bool | No | Shows only default funding source, Default is false |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CreditCards | form | List<CreditCard> | No | |
PayPalAccounts | form | List<PayPalAccount> | No | |
GooglePayAccounts | form | List<GooglePayAccount> | No | |
ApplePayAccounts | form | List<ApplePayAccount> | No | |
BankAccounts | form | List<BankAccount> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CreditCardId | form | string | No | |
CardToken | form | string | No | |
Token | form | string | No | |
CardholderName | form | string | No | |
CardType | form | CreditCardType | No | |
UniqueNumberIdentifier | form | string | No | |
ExpirationMonth | form | string | No | |
ExpirationYear | form | string | No | |
Bin | form | string | No | |
LastFour | form | string | No | The last 4 digits of the credit card number |
IsDefault | form | bool | No | |
Disabled | form | bool | No | |
LastModified | form | DateTime | No |
Unknown |
AmericanExpress |
CarteBlanche |
ChinaUnionPay |
DinersClub |
Discover |
JCB |
Laser |
Maestro |
MasterCard |
Solo |
Switch |
Visa |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PayPalAccountId | form | string | No | The unique identifier of the PayPal acount in Dynamics |
Token | form | string | No | The payment method token |
form | string | No | The email address belonging to the Paypal account | |
BillingAgreementId | form | string | No | The unique identifier of the vaulted payment flow agreement between the customer's PayPal account and RSL PayPal business account |
CreatedAt | form | DateTime | No | The date/time the payment method was created |
IsDefault | form | bool | No | |
Disabled | form | bool | No | |
IsNewCustomerPayPalFee | form | bool? | No | Whether to apply a different fee for customer coming from PayPal |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UniqueCardId | form | string | No | |
SourceCardType | form | string | No | |
CustomerId | form | string | No | |
ExpirationMonth | form | string | No | |
ExpirationYear | form | string | No | |
Bin | form | string | No | The first 6 digits of the credit card, known as the Bank Identification Number. |
GoogleTransactionId | form | string | No | The last 4 digits of the credit card number |
SourceCardLast4 | form | string | No | |
CardholderName | form | string | No | |
CreatedAt | form | DateTime | No | The date/time the payment method was created |
Token | form | string | No | The payment method token |
Disabled | form | bool | No | |
IsDefault | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UniqueCardId | form | string | No | |
CardType | form | string | No | |
CustomerId | form | string | No | |
ExpirationMonth | form | string | No | |
ExpirationYear | form | string | No | |
Bin | form | string | No | The first 6 digits of the credit card, known as the Bank Identification Number. |
LastFour | form | string | No | The last 4 digits of the credit card number |
CardholderName | form | string | No | |
CreatedAt | form | DateTime | No | The date/time the payment method was created |
Token | form | string | No | |
IsDefault | form | bool | No | |
Disabled | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BankAccountId | form | string | No | |
AccountName | form | string | No | |
AccountNumber | form | string | No | |
BSB | form | string | No | |
CreatedDate | form | DateTime | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /customers/{CustomerId}/fundingsources HTTP/1.1 Host: azs-stg-lotteries-web.azurewebsites.net Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { creditCards: [ { creditCardId: String, cardToken: String, token: String, cardholderName: String, cardType: Unknown, uniqueNumberIdentifier: String, expirationMonth: String, expirationYear: String, bin: String, lastFour: String, isDefault: False, disabled: False, lastModified: 0001-01-01 } ], payPalAccounts: [ { payPalAccountId: String, token: String, email: String, billingAgreementId: String, createdAt: 0001-01-01, isDefault: False, disabled: False, isNewCustomerPayPalFee: False } ], googlePayAccounts: [ { uniqueCardId: String, sourceCardType: String, customerId: String, expirationMonth: String, expirationYear: String, bin: String, googleTransactionId: String, sourceCardLast4: String, cardholderName: String, createdAt: 0001-01-01, token: String, disabled: False, isDefault: False } ], applePayAccounts: [ { uniqueCardId: String, cardType: String, customerId: String, expirationMonth: String, expirationYear: String, bin: String, lastFour: String, cardholderName: String, createdAt: 0001-01-01, token: String, isDefault: False, disabled: False } ], bankAccounts: [ { bankAccountId: String, accountName: String, accountNumber: String, bsb: String, createdDate: 0001-01-01 } ], responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } } }