Developer guide
API reference
  • API reference
    • Nothing Found
    Prerelease - hosted checkout API reference
    Authentication
    Customers
      Data definitions
        schema
        CustomerResponse
        schema
        ErrorMessage
        schema
        CreateCustomerRequest
        schema
        CustomerPaymentMethodsResponse
        schema
        PaymentMethodData
        schema
        SetDefaultPaymentMethodRequest
        schema
        DefaultPaymentMethodResponse
        schema
        Card
        schema
        Expiry
      post
      Create a customer record
      get
      Get a customer's payment methods
      post
      Set a default payment method for a customer
      get
      Get the default payment method for a customer
      delete
      Delete the default payment method for a customer
    Payment intents
    Payment methods
    Setup intents

Card

The payment card details associated with the payment method.

object (Expiry)

The expiration month and year of the payment card.

lastFour
string

The last four digits of the payment card.

type
string

The payment card brand.

{
  • "lastFour": "string",
  • "expiry": {
    • "month": "string",
    • "year": "string"
    },
  • "type": "string"
}