You are viewing an old version of the API
Capture transaction

Deprecated

Captures a transaction that was created with the Charge endpoint with a delay_capture value of true

See Delayed capture transactions for more information.

Required permissions PAYMENTS_WRITE

Path Parameters

Name Description
location_id
string

Required
transaction_id
string

Required

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

Examples

You are viewing an old version of the API
POST /v2/locations/{location_id}/transactions/{transaction_id}/capture
cURL
  • cURL
  • Ruby
  • Python
curl https://connect.squareup.com/v2/locations/{location_id}/transactions/{transaction_id}/capture \
  -X POST \
  -H 'Square-Version: 2019-11-20' \
  -H 'Authorization: Bearer ACCESS_TOKEN'
Response JSON
{}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?