Create

Creates a payment method for an individual customer.

post/payments/create/

Request

  • Base URL
    https://restapi.ordergroove.com
  • Auth
    • none
    • or API key in header x-api-key

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
cc_number_endingunknown
public_idstring
labelunknown
token_idstring
cc_holderunknown
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"
}

Changes

No recorded changes to this operation across all 1 revision of this API.