---
title: "Create"
method: POST
path: "/payments/create/"
---

# Create

`POST /payments/create/`

## Request

- Base URL: `https://restapi.ordergroove.com`
- URL: `https://restapi.ordergroove.com/payments/create/`
- Auth: one of:
  - none
  - API key in header `x-api-key`

Creates a payment method for an individual customer.

## Request body

- object
  - `customer` string, required: Customer ID
  - `cc_number_ending` string, required: Last four digits of credit card number
  - `cc_holder` string: Credit card holder. Required depending on integration.
  - `cc_exp_date` string: Credit card expiration date (format: MM/YYYY or MM/YY). Required depending on integration.
  - `billing_address` string: Billing address record ID
  - `label` string: Payment label
  - `token_id` string, required: Token ID
  - `cc_type` integer: Credit card type code
  - `payment_method` string: Method of payment - "paypal", "credit card", "applepay", or "googlepay"

## Response `200`

200

- object
  - `customer` string
  - `billing_address` string
  - `cc_number_ending` unknown
  - `public_id` string
  - `label` unknown
  - `token_id` string
  - `cc_holder` unknown
  - `cc_type` integer
  - `cc_exp_date` string
  - `payment_method` string
  - `live` boolean
  - `created` string
  - `last_updated` string

## Other responses

- `400`: 400
- `403`: 403

---

[API](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc.md) - [All operations](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc/llms.txt) - [OpenAPI document](https://skmtc.dev/ordergroove/apis/ordergroove-restrpc/revisions/ba97e740d08c?raw)
