When retrieving a customer, the GetWallet endpoint will contain any saved payment options for that customer. Within it, you will find a collection of credit cards. Below is a sample response snippet of the GetWallet endpoint.
In order to associate a payment option with a customer, the AddPaymentOption endpoint will need to be invoked. Below is a sample request snippet of the AddPaymentOption endpoint.
When adding a credit card payment option you will have to supply a credit card type. Please use an applicable one from the list above.
You may also use this endpoint to add a gift card to your customer account. Note that this workflow is valid only for registered customers - using gift cards with guest accounts is done at the point of making a reservation. The only required field, besides the type, is the issued gift card's number.
Any credit card marked as default, is to be used as the primary credit card when purchasing. The first credit card added to the wallet is marked as 'default'. Any subsequent credit cards added will need to invoke the SetCreditCardAsPrimary endpoint. Below is a sample request snippet of the SetCreditCardAsPrimary endpoint.
A customer may request that a payment option be removed from their wallet. In order to do so, invoke the RemovePaymentOption endpoint. Below is a sample request snippet of the RemovePaymentOption endpoint.