Square

API

APIs for online and in-person payments, orders, catalog and inventory

Fiyat
Fee per transaction
Erişim
Access token

Hakkında

Commerce platform with APIs for card payments online and in person, orders, catalog, inventory, customers, invoices and bookings, tied to Square's point of sale. Card processing is only available to sellers in eight countries.

Neler yapabilirsin

  • Take card and wallet payments online with the Web Payments SDK and Payments API
  • Sync items, prices and stock levels with the Catalog and Inventory APIs
  • Send invoices, run subscriptions and issue gift cards for Square sellers

Başlarken

  1. Create an application in the Square Developer Console
  2. Copy its Sandbox access token

Örnek kod

curl https://connect.squareupsandbox.com/v2/payments \
  -X POST \
  -H "Square-Version: 2026-09-16" \
  -H "Authorization: Bearer $SQUARE_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"idempotency_key": "7b0f3ec5-086a-4871-8f13-3c81b3875218", "source_id": "cnon:card-nonce-ok", "amount_money": {"amount": 100, "currency": "USD"}}'

Ayrıntılar

Barındırma
Hazır hizmet (bulut)
Kullanılabildiği yerler
Amerika Birleşik Devletleri, Avustralya, Birleşik Krallık, Fransa, İrlanda, İspanya, Japonya, Kanada
Resmi SDK'lar
Go, Java, C#, JavaScript/TypeScript, PHP, Python, Ruby
MCP sunucusu
Uzak sunucu

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .