ba97e740d08c

latestOpenAPI 3.1.02026-07-24920300.7 KB

Create

Creates a payment method for an individual customer.

post/payments/create/

Request body

customerstring required

Customer ID

cc_number_endingstring required

Last four digits of credit card number

cc_holderstring

Credit card holder. Required depending on integration.

cc_exp_datestring

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

billing_addressstring

Billing address record ID

labelstring

Payment label

token_idstring required

Token ID

cc_typeinteger

Credit card type code

payment_methodstring

Method of payment - "paypal", "credit card", "applepay", or "googlepay"

Response

200

customerstring
billing_addressstring
{"stackTrail":"paths:/payments/create/:post:responses:200:content:application/json:schema:properties:cc_number_ending","oasType":"schema","type":"unknown"}
public_idstring
{"stackTrail":"paths:/payments/create/:post:responses:200:content:application/json:schema:properties:label","oasType":"schema","type":"unknown"}
token_idstring
{"stackTrail":"paths:/payments/create/:post:responses:200:content:application/json:schema:properties:cc_holder","oasType":"schema","type":"unknown"}
cc_typeinteger
cc_exp_datestring
payment_methodstring
liveboolean
createdstring
last_updatedstring

Example response

{
  "customer": "00026001",
  "billing_address": "c4cfc106ccc411e8ada3bc764e101db1",
  "public_id": "c4d1d4e6ccc411e8ada3bc764e101db1",
  "token_id": "5CA94EAA-AADE-4918-ABEE-8C8531411BAE",
  "cc_type": 1,
  "cc_exp_date": "02/2020",
  "payment_method": "credit card",
  "created": "2018-10-10 14:43:32",
  "last_updated": "2018-10-10 14:43:32"
}