Payment Intent
POST
/payment_intents/{payment_intent_id}/captureCapture Payment Intent
Capture a manual-capture PaymentIntent (status requires_capture -> succeeded). amount_to_capture is optional (defaults to full amount).
Request
Example
curl -X POST 'https://api.paycose.com/api/v1/app1/platform/wallet/payment_intents/{{payment_intent_id}}/capture' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-d '{
"amount": 0,
"application_fee_amount": 0,
"transfer_data": {
"amount": 0
}
}'Headers
| Name | Value |
|---|---|
| X-Session-Token | {{session_token}} |
| X-Country | {{country}} |
Body
| Name | Type | Value |
|---|---|---|
| amount | number | 0 |
| application_fee_amount | number | 0 |
| transfer_data | object | {…} |
{
"amount": 0,
"application_fee_amount": 0,
"transfer_data": {
"amount": 0
}
}Responses
500500 Internal Server Error
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
Body
{
"object": "error",
"code": "<string>",
"key": "<string>",
"i18n_key": "<string>",
"message": "<string>",
"request_id": "<string>"
}