PUT /v1/payment-connections/{connection_id}/credentials
CheckoutService_ConfigurePaymentCredentials
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
connection_idpath · string · required
Request body
alipayobjectExpand fields
app_idstringprivate_key_pemstringpublic_key_pemstring
connection_idstringexpected_versionstringstripeobjectExpand fields
secret_keystringwebhook_secretstring
wechatobjectExpand fields
api_v3_keystringapp_idstringh5_enabledbooleanmch_idstringmerchant_certificate_pemstringmerchant_serial_nostringplatform_public_key_pemstringplatform_serial_nostringprivate_key_pemstring
cURL
curl --request PUT 'https://pay.bytecome.com/v1/payment-connections/{connection_id}/credentials' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"alipay": {
"app_id": "<value>",
"private_key_pem": "<value>",
"public_key_pem": "<value>"
},
"expected_version": "<value>",
"stripe": {
"secret_key": "<value>",
"webhook_secret": "<value>"
},
"wechat": {
"api_v3_key": "<value>",
"app_id": "<value>",
"h5_enabled": false,
"mch_id": "<value>",
"merchant_certificate_pem": "<value>",
"merchant_serial_no": "<value>",
"platform_public_key_pem": "<value>",
"platform_serial_no": "<value>",
"private_key_pem": "<value>"
}
}'Response contract
200 · OK
api_secret_refstringcodestringcreated_atstringenvironment_idstringidstringlast_probe_atstringlast_probe_statusstringmerchant_account_idstringmodestringnamestringproviderstringstatusstringupdated_atstringvalidation_reportarrayExpand fields
codestringdetailstringlevelstringpassedbooleantitlestring
versionstringwebhook_secret_refstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.