---
title: "Create a Charge - Swipe"
method: POST
path: "/v1/charges/swipe"
---

# Create a Charge - Swipe

`POST /v1/charges/swipe`

## Request

- Base URL: `https://testapi.payarc.net`
- URL: `https://testapi.payarc.net/v1/charges/swipe`
- Auth: API key in header `Authorization`

**THIS IS NOT A PUBLIC ENDPOINT - IT IS NOT APPROVED TO BE PUBLISHED - The solution is not fully approved/validated**

## Headers

- `Accept` string
- `Content-Type` string

## Request body

- object
  - `amount` integer, required: A positive integer in cents representing how much to charge.
  - `currency` string, required: Three-letter ISO currency code, in lowercase.
  - `card_source` string, required: This field indicates how the data was captured at the point of sale.
  - `track2Data` string, required: This field reflects the credit card's magnetic stripe track 2 data.
  - `ksn` string, required: The KSN used for encryption. The KSN should change with every transaction.
  - `track1Data` string: This field reflects the credit card's magnetic stripe track 1 data.
  - `encryptionType` string: The type of encryption used when capturing the card information.
  - `data_key` integer: The type of key used to decrypt track data of card.
  - `statement_description` string: An arbitrary string to be displayed on customer’s credit card statement.
  - `capture` integer: Option to capture charge immediately or pre-authorize and capture at a later date.
  - `card_level` string: Indicates extent of information to be provided for a transaction.
  - `sales_tax` integer: Sales tax amount. The sales tax amount represents a value in cents.
  - `terminal_id` string: The terminal ID from which the transaction was made.
  - `tip_amount` integer: The tip amount of the transaction.
  - `purchase_order` string: The value used by the customer to identify an order. Issued by the buyer to the seller.
  - `order_date` string: The date the order was processed.
  - `customer_ref_id` string: The reference identifier supplied by the commercial cardholder.
  - `ship_to_zip` integer: The postal code for the address to which the goods are being shipped.
  - `amex_descriptor` string: The value of the Transaction Advice Addendum field that displays descriptive information about a transactions on a customer's AMEX card statement.
  - `supplier_reference_number` string: This field contains a reference number that is used by AMEX to obtain supporting information on a transaction from a supplier. The number can be any combination of characters and numbers defined by the merchant.
  - `tax_amount` integer: The tax amount.
  - `tax_category` string: The type of tax. Formerly established through Tax Category messages.
  - `customer_vat_number` string: Government-assigned tax identification number of Merchant. Indicates the customer's government-assigned tax identification number or the identification number assigned to their purchasing company by the tax authorities.
  - `summary_commodity_code` string: The international description code of the overall goods or services being supplied.
  - `shipping_charges` integer: The dollar amount for shipping or freight charges applied to a product or transaction.
  - `duty_charges` integer: Indicates the total charges for any import or export duties included in the order.
  - `ship_from_zip` integer: The postal code for the address from which the goods were shipped.
  - `destination_country_code` string: The destination country code indicator.
  - `tax_type` string: The type of tax.
  - `vat_invoice` string: The Value Added Tax (VAT) invoice number associated with the transaction.
  - `tax_rate` integer: The type of tax rate.
  - `email_receipt` string: The cardholder's email address.
  - `do_not_send_email_to_customer` string: To prevent sending mail to customer for transaction. By default the system will sent mail
  - `do_not_send_sms_to_customer` string: Do not send sms to customer. in order to prevent sending sms the value must be yes. If not present -sms will be send

## Response `201`

201

- union
  - object
    - `data` object
      - `object` string
      - `id` string
      - `amount` integer
      - `amount_refunded` integer
      - `amount_captured` string
      - `amount_voided` integer
      - `application_fee_amount` integer
      - `tip_amount` integer
      - `payarc_fees` integer
      - `type` string
      - `net_amount` integer
      - `captured` integer
      - `is_refunded` integer
      - `status` string
      - `auth_code` string
      - `failure_code` unknown
      - `failure_message` unknown
      - `charge_description` unknown
      - `statement_description` string
      - `invoice` unknown
      - `under_review` boolean
      - `created_at` integer
      - `updated_at` integer
      - `email` string
      - `phone_number` string
      - `card_level` string
      - `sales_tax` unknown
      - `purchase_order` unknown
      - `supplier_reference_number` unknown
      - `customer_ref_id` unknown
      - `ship_to_zip` unknown
      - `amex_descriptor` unknown
      - `customer_vat_number` unknown
      - `summary_commodity_code` unknown
      - `shipping_charges` unknown
      - `duty_charges` unknown
      - `ship_from_zip` unknown
      - `destination_country_code` unknown
      - `vat_invoice` unknown
      - `order_date` unknown
      - `tax_category` unknown
      - `tax_type` unknown
      - `tax_rate` unknown
      - `tax_amount` unknown
      - `created_by` string
      - `terminal_register` unknown
      - `tip_amount_refunded` unknown
      - `sales_tax_refunded` unknown
      - `shipping_charges_refunded` unknown
      - `duty_charges_refunded` unknown
      - `pax_reference_number` unknown
      - `refund_reason` unknown
      - `refund_description` unknown
      - `surcharge` integer
      - `toll_amount` unknown
      - `refund` object
        - `data` unknown[]
          - unknown
      - `card` object
        - `data` object
          - `object` string
          - `id` string
          - `address1` string
          - `address2` string
          - `card_source` string
          - `card_holder_name` string
          - `is_default` integer
          - `exp_month` string
          - `exp_year` string
          - `is_verified` integer
          - `fingerprint` string
          - `city` unknown
          - `state` unknown
          - `zip` string
          - `brand` string
          - `last4digit` string
          - `first6digit` integer
          - `country` unknown
          - `avs_status` unknown
          - `cvc_status` unknown
          - `address_check_passed` integer
          - `zip_check_passed` integer
          - `customer_id` string
          - `created_at` integer
          - `updated_at` integer
    - `meta` object
      - `include` string[]
      - `custom` unknown[]
        - unknown
  - object
    - `data` object
      - `object` string
      - `id` string
      - `amount` integer
      - `amount_refunded` integer
      - `amount_captured` string
      - `amount_voided` integer
      - `application_fee_amount` integer
      - `tip_amount` integer
      - `payarc_fees` integer
      - `type` string
      - `net_amount` integer
      - `captured` integer
      - `is_refunded` integer
      - `status` string
      - `auth_code` string
      - `failure_code` unknown
      - `failure_message` unknown
      - `charge_description` unknown
      - `statement_description` string
      - `invoice` unknown
      - `under_review` boolean
      - `created_at` integer
      - `updated_at` integer
      - `email` string
      - `phone_number` string
      - `card_level` string
      - `sales_tax` unknown
      - `purchase_order` unknown
      - `supplier_reference_number` unknown
      - `customer_ref_id` unknown
      - `ship_to_zip` unknown
      - `amex_descriptor` unknown
      - `customer_vat_number` unknown
      - `summary_commodity_code` unknown
      - `shipping_charges` unknown
      - `duty_charges` unknown
      - `ship_from_zip` unknown
      - `destination_country_code` unknown
      - `vat_invoice` unknown
      - `order_date` unknown
      - `tax_category` unknown
      - `tax_type` unknown
      - `tax_rate` unknown
      - `tax_amount` unknown
      - `created_by` string
      - `terminal_register` unknown
      - `tip_amount_refunded` unknown
      - `sales_tax_refunded` unknown
      - `shipping_charges_refunded` unknown
      - `duty_charges_refunded` unknown
      - `pax_reference_number` unknown
      - `refund_reason` unknown
      - `refund_description` unknown
      - `refund` object
        - `data` unknown[]
          - unknown
      - `card` object
        - `data` object
          - `object` string
          - `id` string
          - `address1` unknown
          - `address2` unknown
          - `card_source` string
          - `card_holder_name` unknown
          - `is_default` integer
          - `exp_month` string
          - `exp_year` string
          - `is_verified` integer
          - `fingerprint` string
          - `city` unknown
          - `state` unknown
          - `zip` unknown
          - `brand` string
          - `last4digit` string
          - `first6digit` integer
          - `country` unknown
          - `avs_status` unknown
          - `cvc_status` unknown
          - `address_check_passed` integer
          - `zip_check_passed` integer
          - `customer_id` unknown
          - `created_at` integer
          - `updated_at` integer
    - `meta` object
      - `include` string[]
      - `custom` unknown[]
        - unknown

## Other responses

- `401`: 401

## Changes

- **2026-11-03** `d3ee769894e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/payarc/apis/payarc-sandbox/changes/v1/charges/swipe/post.md)

---

[API](https://skmtc.dev/payarc/apis/payarc-sandbox.md) - [All operations](https://skmtc.dev/payarc/apis/payarc-sandbox/llms.txt) - [OpenAPI document](https://skmtc.dev/payarc/apis/payarc-sandbox/revisions/d3ee769894e4?raw)
