POST | /fundingsources/applepay | Either provide a payment method token or a nonce but not both |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
PaymentMethodToken | body | string | No | The payment method token if already vaulted |
PaymentMethodNonce | body | string | No | The payment method nonce |
IsDefault | body | bool | No | |
RememberPaymentMethod | body | bool? | No | False to save PayPal as disabled otherwise save as normal in Dynamics |
CustomerId | body | string | No | |
RequestReference | body | RequestReference | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CampaignId | form | string | No | |
RetailChannelId | form | string | Yes | |
ReferenceId | form | string | 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 |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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}