Payment Intent
PATCH
/payment_intents/{id}Update
Auto-added to mirror backend route PATCH /payment_intents/:id. Headers cloned from a sibling; body/params are placeholders.
Request
Example
curl -X PATCH 'https://api.paycose.com/api/v1/app1/platform/wallet/payment_intents/{{id}}' \
-H 'X-Session-Token: {{session_token}}' \
-H 'X-Country: {{country}}' \
-d '{
"amount": 0,
"currency": "<string>",
"payment_method_id": "<string>",
"customer_id": "<string>",
"description": "<string>",
"receipt_email": "<string>",
"capture_method": "<string>",
"metadata": {},
"application_fee_amount": 0,
"transfer_data": {
"destination": "<string>",
"amount": 0
},
"transfer_group": "<string>",
"labels": [
"<string>"
]
}'Headers
| Name | Value |
|---|---|
| X-Session-Token | {{session_token}} |
| X-Country | {{country}} |
Body
| Name | Type | Value |
|---|---|---|
| amount | number | 0 |
| currency | string | <string> |
| payment_method_id | string | <string> |
| customer_id | string | <string> |
| description | string | <string> |
| receipt_email | string | <string> |
| capture_method | string | <string> |
| metadata | object | {…} |
| application_fee_amount | number | 0 |
| transfer_data | object | {…} |
| transfer_group | string | <string> |
| labels | array | [1] |
{
"amount": 0,
"currency": "<string>",
"payment_method_id": "<string>",
"customer_id": "<string>",
"description": "<string>",
"receipt_email": "<string>",
"capture_method": "<string>",
"metadata": {},
"application_fee_amount": 0,
"transfer_data": {
"destination": "<string>",
"amount": 0
},
"transfer_group": "<string>",
"labels": [
"<string>"
]
}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>"
}