Payments
CompletePayment
Completes (captures) a payment. By default, payments are set to complete immediately after they are created.
You can use this endpoint to complete a payment with the APPROVED status.
post/v2/payments/{payment_id}/complete
Path parameters
payment_idstring required
The unique ID identifying the payment to be completed.
Response
Success
Example response
{
"payment": {
"amount_money": {
"amount": 200,
"currency": "USD"
},
"app_fee_money": {
"amount": 10,
"currency": "USD"
},
"approved_money": {
"amount": 200,
"currency": "USD"
},
"card_details": {
"auth_result_code": "MhIjEN",
"avs_status": "AVS_ACCEPTED",
"card": {
"bin": "411111",
"card_brand": "VISA",
"card_type": "DEBIT",
"exp_month": 7,
"exp_year": 2026,
"fingerprint": "sq-1-TpmjbNBMFdibiIjpQI5LiRgNUBC7u1689i0TgHjnlyHEWYB7tnn-K4QbW4ttvtaqXw",
"last_4": "2796",
"prepaid_type": "PREPAID"
},
"card_payment_timeline": {
"authorized_at": "2019-07-10T13:23:49.234Z",
"captured_at": "2019-07-10T13:23:49.446Z"
},
"cvv_status": "CVV_ACCEPTED",
"entry_method": "ON_FILE",
"statement_description": "SQ *MY MERCHANT",
"status": "CAPTURED"
},
"created_at": "2019-07-10T13:39:55.317Z",
"customer_id": "RDX9Z4XTIZR7MRZJUXNY9HUK6I",
"id": "GQTFp1ZlXdpoW4o6eGiZhbjosiDFf",
"location_id": "XTI0H92143A39",
"note": "Brief description",
"order_id": "m2Hr8Hk8A3CTyQQ1k4ynExg92tO3",
"receipt_number": "GQTF",
"receipt_url": "https://squareup.com/receipt/preview/GQTFp1ZlXdpoW4o6eGiZhbjosiDFf",
"reference_id": "123456",
"source_type": "CARD",
"status": "COMPLETED",
"total_money": {
"amount": 200,
"currency": "USD"
},
"updated_at": "2019-07-10T13:40:05.982Z",
"version_token": "7knzZI16u3QBh2xXD7FH4GFwESqgam7Z9w2Ya0aSD9i6o"
}
}