v1
latestOpenAPI 3.1.02026-07-2631427.2 KBCapture a Hold
Capture the funds of an existing, uncaptured, Hold.
This is the second half of the two-step payment flow, where first a Hold was created with the /holds API or with a Payment Session (capture flag set to false).
The API will create a Charge from the referenced Hold and response with the created Charge information.
post/v1/holds/{id}/capture
Request body
Example request
{
"amount_to_capture": "10000"
}Response
Example response
Example response
{
"id": "chrg_146231656762572800",
"resource": "charge",
"amount": 10000,
"amount_human_readable": "100.00",
"amount_refunded": 0,
"billing_details": null,
"calculated_statement_descriptor": "PAYCOM * TEST",
"created": "2022-09-07T13:40:41.751Z",
"currency": "usd",
"customer": "cust_199440887619523584",
"customer_reference_id": "2s68c46d-8d15-4c2a-ae4c-30ec77abed9f",
"description": null,
"disputed": false,
"failure_code": null,
"failure_message": null,
"metadata": {},
"paid": false,
"payment_session": null,
"hold": "hld_220204193980350464",
"payment_method": "pm_card_202779025452569600",
"payment_method_details": {
"type": "card",
"card": {
"bin": "424242",
"brand": "visa",
"country": "US",
"exp_month": "11",
"exp_year": "25",
"fingerprint": "c5338f1c33863cce001e80648ea80df1068ed5f94dbb4bfb561ed8da8988fe0a",
"funding": "credit",
"last4": "4242",
"network": "visa",
"security_checks": {
"address_line1_check": "unavailable",
"address_postal_code_check": "unavailable",
"cvc_check": "pass"
},
"three_d_secure": null,
"token": "tok_card_202779025452569600",
"wallet": null
}
},
"payment_method_options": {
"card": {
"accepted_card_brands": [
"visa",
"mastercard"
],
"accepted_card_categories": [
"consumer"
],
"accepted_card_funding": [
"debit",
"credit"
],
"accepted_card_jurisdictions": [
"domestic"
],
"duplicate_card_check": true,
"enforce_customer_name_as_cardholder_name": false,
"security_checks": {
"address_line1_check": false,
"address_postal_code_check": false,
"cvv_check": true
},
"request_threed_secure": "challenge"
}
},
"refunded": false,
"refunds": {
"data": [],
"url": "/v1/charges/chrg_146231656762572800/refunds"
},
"reference": null,
"shipping": null,
"statement_descriptor_suffix": "TEST",
"status": "succeeded"
}