API Explorer
You are viewing an old version of the API

Charge

Charges a card represented by a card nonce or a customer's card on file.

Open in API Reference

Sign In

Parameters

string

Body

Money
string
ChargeRequestAdditionalRecipient [ ]
Address
string
string
string
string
boolean
string
string
string
Address
string
Request
cURL
  • cURL
  • Ruby
  • Python
  • C#
  • Java
  • PHP
  • Node.js
curl https://connect.squareupsandbox.com/v2/locations/{location_id}/transactions \
  -X POST \
  -H 'Square-Version: 2021-05-13' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json'
Response
// No response received yet.