Create

View as Markdown
Creates a payment method for an individual customer.

Authentication

x-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
customerstringRequired
Customer ID
cc_number_endingstringRequired
Last four digits of credit card number
token_idstringRequired
Token ID
cc_holderstringOptional
Credit card holder. Required depending on integration.
cc_exp_datestringOptional

Credit card expiration date (format: MM/YYYY or MM/YY). Required depending on integration.

billing_addressstringOptional
Billing address record ID
labelstringOptional
Payment label
cc_typeintegerOptional
Credit card type code
payment_methodstringOptional

Method of payment - “paypal”, “credit card”, “applepay”, or “googlepay”

Response

200
customerstring
billing_addressstring
cc_number_endingany
public_idstring
labelany
token_idstring
cc_holderany
cc_typeintegerDefaults to 0
cc_exp_datestring
payment_methodstring
livebooleanDefaults to true
createdstring
last_updatedstring

Errors

400
Bad Request Error
403
Forbidden Error