Add a payment method
Add a payment method to a shopper’s Bolt Account Wallet. For security purposes, this request must come from your backend.
Note: Before using this API, the credit card details must be tokenized by Bolt’s credit card tokenization service. Please review our Bolt Payment Field Component or Install the Bolt Tokenizer documentation.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
The publicly shareable identifier used to identify your Bolt merchant division.
A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with Bolt.state.merchantClientId in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics.
Body
- Credit Card Payment Method
- Googlepay Payment Method
- ApplePay Payment Method
- PayPal Payment Method
- Affirm Payment Method
- Afterpay Payment Method
- Klarna Payment Method
- Klarna Account Payment Method
- Klarna Pay Now Payment Method
credit_card "credit_card"
The type of payment method
"credit_card"
- Address ID Reference
- Explicit Address Reference
- Partial Address Reference
The credit card's network.
visa, mastercard, amex, discover, jcb, dinersclub, unionpay, alliancedata, citiplcc "visa"
The Bank Identification Number (BIN). This is the first 4 to 8 digits of the account number.
^\d+$"411111"
The account number's last four digits.
^\d{4}$"1004"
The expiration date, in YYYY-MM format.
^\d{4}-\d{2}$"2029-03"
The Bolt token associated with the credit card.
"a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0"
The checkout token associated with Affirm VCN credit cards.
"a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0"
Indicates whether this credit card is the default payment method.
true
Response
The payment method was successfully added
- Credit Card Payment Method
- Googlepay Payment Method
- ApplePay Payment Method
- PayPal Payment Method
- Affirm Payment Method
- Afterpay Payment Method
- Klarna Payment Method
- Klarna Account Payment Method
- Klarna Pay Now Payment Method
credit_card "credit_card"
The type of payment method
"credit_card"
- Address ID Reference
- Explicit Address Reference
- Partial Address Reference
The credit card's network.
visa, mastercard, amex, discover, jcb, dinersclub, unionpay, alliancedata, citiplcc "visa"
The Bank Identification Number (BIN). This is the first 4 to 8 digits of the account number.
^\d+$"411111"
The account number's last four digits.
^\d{4}$"1004"
The expiration date, in YYYY-MM format.
^\d{4}-\d{2}$"2029-03"
"X5h6j8uLpVGK"
The checkout token associated with Affirm VCN credit cards.
"a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0"
Indicates whether this credit card is the default payment method.
true