---
title: "Create Payment"
method: POST
path: "/v2/checkout/"
tags: ["payments"]
deprecated: true
---

# Create Payment

`POST /v2/checkout/`

> **Deprecated.**

## Request body

- PaymentIn
  - `amount` integer, required — Amount in positive integer format
  - `currency` 'eur' | 'aud' | 'cad' | 'chf' | 'dkk' | 'gbp' | 'nok' | 'pln' | 'sek' | 'usd' — Currency
  - `auth` union
    - AuthIn
      - `return_url` string, uri
      - `device` Device
        - `city` string — City position
        - `country` string — Country position
        - `http_accept` string — HTTP Accept header
        - `ip` string — IP address of the device
        - `languages` string — HTTP Accept-Language header
        - `port` integer — TCP port number of the payer
        - `user_agent` string — HTTP User Agent header
        - `zip_code` string — City zip code
    - boolean
  - `card` union — Card associated with the payment
    - CardIn — Banking card model used as route input
      - `exp_year` integer, required — Year expiration in YYYY format
      - `exp_month` integer, required — Month expiration in MM format
      - `customer` string — Customer to assign the card
      - `cvc` string — Card security code used to secure the transaction
      - `number` string, required — Card number
      - `preferred_network` 'national' | 'visa' | 'mastercard' — Card network to use for co-branded card
      - `zip_code` string — zip code in 2 to 8 digit format
      - `external_id` string — Unique id with unicity check
      - `name` string — custome name given to the card, often the card holder name
      - `tokenize` boolean — Define if card can be reused for future payments
    - string
  - `sepa` union — Sepa associated with the payment
    - SepaPostCheckout — Sepa model used as route input
      - `mandate` string, required — Mandate id
      - `name` string, required — Simple name identifying a mandate
      - `date_mandate` string, date, required — Mandate date in YYYY-MM-DD format
      - `iban` string, required — Iban
      - `bic` string — Bic
      - `customer` string
    - string
  - `wallet` ApplePay
    - `apple_pay` PaymentDatas, required
      - `paymentData` PaymentData, required
        - `data` string, required
        - `signature` string, required
        - `header` Header, required
          - `publicKeyHash` string, required
          - `ephemeralPublicKey` string, required
          - `transactionId` string, required
        - `version` string, required
  - `methods_allowed` string[] — All methods allowed for the payment
  - `customer` union
    - CustomerIn
      - `email` string, email — Customer email
      - `name` string — Customer name
      - `mobile` string — Customer mobile number
      - `date_birth` string, date — Date of birth
      - `legal_id` string — Any legal identifier like SIREN, CBE, KVK, etc
      - `country` string — Country of the card issuer
      - `external_id` string — Unique id with unicity check
      - `billing_address` string — Billing address ID
      - `shipping_address` string — Shipping address ID
    - string
  - `description` string — Amount in positive integer format
  - `device` Device
    - `city` string — City position
    - `country` string — Country position
    - `http_accept` string — HTTP Accept header
    - `ip` string — IP address of the device
    - `languages` string — HTTP Accept-Language header
    - `port` integer — TCP port number of the payer
    - `user_agent` string — HTTP User Agent header
    - `zip_code` string — City zip code
  - `order_id` union — Non unique id without unicity check
    - string, binary
    - DevicePhone
      - `phone` string
  - `unique_id` string, binary — Unique id with unicity check
  - `date_settlement` string, date — Settlement date in YYYY-MM-DD format
  - `return_url` string, uri — Merchant return url
  - `capture` boolean — Capture the funds or not
  - `billing_address` string — Billing address ID
  - `shipping_address` string — Shipping address ID

## Response `200`

Successful Response

- PaymentOut
  - `id` string, required
  - `amount` integer, required — Amount in positive integer format
  - `auth` union
    - AuthOut
      - `redirect_url` string, uri
      - `return_url` string, uri
      - `device` Device
        - `city` string — City position
        - `country` string — Country position
        - `http_accept` string — HTTP Accept header
        - `ip` string — IP address of the device
        - `languages` string — HTTP Accept-Language header
        - `port` integer — TCP port number of the payer
        - `user_agent` string — HTTP User Agent header
        - `zip_code` string — City zip code
      - `status` 'requested' | 'available' | 'unavailable' | 'attempted' | 'success' | 'declined' | 'failed' | 'expired' | 'bypassed' — An enumeration.
      - `uuid` string
      - `message` string
    - boolean
  - `capture` boolean — Capture status of the payment
  - `created` string, date-time, required — Date of creation in Epoch timestamp
  - `currency` 'eur' | 'aud' | 'cad' | 'chf' | 'dkk' | 'gbp' | 'nok' | 'pln' | 'sek' | 'usd', required — Currency in 3 digit format
  - `customer` CustomerOut — Customer model used as route output
    - `id` string, required
    - `country` string — Country of the card issuer
    - `created` string, date-time, required — Unique id with unicity check
    - `date_birth` string, date — Date of birth
    - `email` string — Customer email
    - `external_id` string — Unique id with unicity check
    - `legal_id` string — Any legal identifier like SIREN, CBE, KVK, etc
    - `mobile` string — Customer email
    - `name` string — Customer name
    - `billing_address` string — Billing address
    - `shipping_address` string — Shipping address
    - `deleted` boolean, required
  - `date_paym` string, date-time — Date of payment
  - `date_settlement` string, date — Settlement date
  - `date_bank` string, date — Date of bank execution
  - `description` string — A small description
  - `device` Device
    - `city` string — City position
    - `country` string — Country position
    - `http_accept` string — HTTP Accept header
    - `ip` string — IP address of the device
    - `languages` string — HTTP Accept-Language header
    - `port` integer — TCP port number of the payer
    - `user_agent` string — HTTP User Agent header
    - `zip_code` string — City zip code
  - `fee` integer — Fees amount in positive integer format
  - `method` 'card' | 'sepa' — An enumeration.
  - `methods_allowed` PaymentMethod[] — The list of payment method allowed for this payment
  - `order_id` string, binary — Non unique id without unicity check
  - `unique_id` string, binary — Unique id with unicity check
  - `response` string — Network authorization response code
  - `response_author` string
  - `return_url` string, uri — Merchant return url
  - `card` CardOut — Banking card model used as route output
    - `customer` string — Associated customer
    - `brand` string, required — Card brand
    - `country` string, required — Country of the card issuer
    - `created` string, date-time, required — Date of creation in Epoch timestamp
    - `exp_month` integer, required — Month in MM format
    - `exp_year` integer, required — Year expiration in YYYY format
    - `external_id` string — Unique id with unicity check
    - `funding` 'credit' | 'debit' | 'prepaid' | 'universal' | 'charge' | 'deferred' | 'unknown' — An enumeration.
    - `id` string, required
    - `last4` string, required — Last 4 digit of the card number
    - `name` string — Custom name given to the card, often the card holder name
    - `nature` 'personal' | 'corporate' | 'unknown' — An enumeration.
    - `preferred_network` 'national' | 'visa' | 'mastercard'
    - `network` 'unknown' | 'national' | 'visa' | 'mastercard' — An enumeration.
    - `zip_code` string — Zip code in 2 to 8 digit format
    - `deleted` boolean, required
  - `sepa` SepaOut
    - `bic` string — Bic
    - `created` string, date-time, required
    - `date_mandate` string, date — Mandate date in YYYY-MM-DD format
    - `id` string, required
    - `last4` string, required — Last 4 digit of the sepa
    - `mandate` string — Mandate id
    - `name` string, required — Simple name identifying a sepa
    - `customer` string — Id of the customer if sepa linked to one
    - `deleted` boolean, required
  - `status` 'refused' | 'authorized' | 'expired' | 'to_capture' | 'capture_sent' | 'captured' | 'disputed' | 'canceled' | 'failed' | 'authorize' | 'capture' — An enumeration.
  - `origin` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8, required — An enumeration.
  - `payout` string
  - `billing_address` string — Billing address ID
  - `shipping_address` string — Shipping address ID
  - `payment_intent` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stancer/apis/stancer-api.md) · [All operations](https://skmtc.dev/stancer/apis/stancer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stancer/stancer-api/revisions/c637e4c7ff04/schema)
