Sign in

Create transaction

documented

Create a new Transaction resource.

POST /transactionsTransactionsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.usecopper.com/{{$environment}}/transactions" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"ticket": "{{$ticket_id}}", "payment_type": "{{$payment_type}}", "card": {"brand": "{{$card_brand}}", "last4": "{{$card_last4}}", "number": "{{$card_number}}", "expiry": "{{$card_expiry}}", "csc": "{{$card_csc}}"}, "amounts": {"currency": "{{$currency}}", "transaction_amount": {{$transaction_amount}}, "payment_amount": {{$payment_amount}}, "tip_amount": {{$tip_amount}}}'