ข้ามไปยังเนื้อหาหลัก
เวอร์ชัน: ล่าสุด

Capture a charge

Capture the payment of an existing, uncaptured charge. This is the second half of the two-step payment flow, where first you create a charge with capture=false.

Request Parameters

Path & Query Parameters

Parameters

Request Body

Body Parameters

Responses

200 Charge captured successfully

Returns a Charge object.

400 undefined

401 undefined

Code Samples

curl https://api.omise.co/charges/:id/capture \
-u skey_test_5xuy4w91xqz7d1w9u0t: \
-d capture_amount=value
🔑ข้อมูลยืนยันตัวตน API

Try it out

Use the interactive form above to test this endpoint.