Rsl.Lotteries

<back to all web services

AddApplePayAccount

Create a GooglePay funding source for a customer if not already created

The following routes are available for this service:
POST/fundingsources/applepayEither provide a payment method token or a nonce but not both
AddApplePayAccount Parameters:
NameParameterData TypeRequiredDescription
PaymentMethodTokenbodystringNoThe payment method token if already vaulted
PaymentMethodNoncebodystringNoThe payment method nonce
IsDefaultbodyboolNo
RememberPaymentMethodbodybool?NoFalse to save PayPal as disabled otherwise save as normal in Dynamics
CustomerIdbodystringNo
RequestReferencebodyRequestReferenceNo
RequestReference Parameters:
NameParameterData TypeRequiredDescription
CampaignIdformstringNo
RetailChannelIdformstringYes
ReferenceIdformstringNo
ApplePayAccount Parameters:
NameParameterData TypeRequiredDescription
UniqueCardIdformstringNo
CardTypeformstringNo
CustomerIdformstringNo
ExpirationMonthformstringNo
ExpirationYearformstringNo
BinformstringNoThe first 6 digits of the credit card, known as the Bank Identification Number.
LastFourformstringNoThe last 4 digits of the credit card number
CardholderNameformstringNo
CreatedAtformDateTimeNoThe date/time the payment method was created
TokenformstringNo
IsDefaultformboolNo
DisabledformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /fundingsources/applepay HTTP/1.1 
Host: azs-stg-lotteries-web.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"paymentMethodToken":"String","paymentMethodNonce":"String","isDefault":false,"rememberPaymentMethod":false,"customerId":"String","requestReference":{"campaignId":"String","retailChannelId":"String","referenceId":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"uniqueCardId":"String","cardType":"String","customerId":"String","expirationMonth":"String","expirationYear":"String","bin":"String","lastFour":"String","cardholderName":"String","createdAt":"0001-01-01T00:00:00.0000000","token":"String","isDefault":false,"disabled":false}