> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/deprecated/llms.txt)
> Source: https://docs.saleor.io/api-reference/deprecated/checkout/mutations/checkout-payment-create

# checkoutPaymentCreate Mutation

DEPRECATED

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.

Creates a new payment for given checkout.

```graphql
checkoutPaymentCreate(
  checkoutId: ID
  id: ID
  input: PaymentInput!
  token: UUID
): CheckoutPaymentCreate @deprecated
```

Details

```graphql
type CheckoutPaymentCreate {
  checkout: Checkout
  payment: Payment
  paymentErrors: [PaymentError!]! @deprecated
  errors: [PaymentError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="id"></a>

#### [`id`](#id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

The checkout's ID.

<a id="input"></a>

#### [`input`](#input) ● [`PaymentInput!`](/api-reference/payments/inputs/payment-input.md)

Data required to create a new payment.

Show deprecatedHide deprecated

<a id="checkout-id"></a>

#### [`checkoutId`](#checkout-id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

DEPRECATED

Use `id` instead.

The ID of the checkout.

<a id="token"></a>

#### [`token`](#token) ● [`UUID`](/api-reference/miscellaneous/scalars/uuid.md)

DEPRECATED

Use `id` instead.

Checkout token.

<a id="type"></a>

### Type

<a id="checkoutpaymentcreate"></a>

#### [`CheckoutPaymentCreate`](/api-reference/checkout/objects/checkout-payment-create.md)

Creates a new payment for given checkout.
