Links

Execute SRN Transaction

patch
https://api.synapsefi.com
/v3.1/users/:user_id/nodes/:node_id/trans/:tran_id
Transaction

Example Request

Only transactions in PROCESSING-DEBIT status can be executed. When an SRN transaction is in PROCESSING-DEBIT, the associated fees for the trade are also added in the transaction.
Once an SRN transaction is created, it will automatically move to PROCESSING-DEBIT and to.meta.fees object will be added in the transaction, once that happens, please allow the user to see the associated fees and if the user agrees, this API call can be used to execute the transaction.
HTTP
cURL
Python
JS
PHP
GO
PATCH /v3.1/users/5fe50a777562960078d3a5c6/nodes/5fea67e9ab6ce70c2040c5ca/trans/5ff25ec87e308398d468da1d HTTP/1.1
Host: uat-api.synapsefi.com
X-SP-USER-IP: 255.127.79.76
X-SP-USER: oauth_aYTZQp5EH8OVgrkLmio0yJM7jISC3AWubBqdK6vx|e83cf6ddcf778e37bfe3d48fc78a6502062fc
Content-Type: application/json
{
"execute": true
}
curl --location --request PATCH 'https://uat-api.synapsefi.com/v3.1/users/5fe50a777562960078d3a5c6/nodes/5fea67e9ab6ce70c2040c5ca/trans/5ff25ec87e308398d468da1d' \
--header 'X-SP-USER-IP: 255.127.79.76' \
--header 'X-SP-USER: oauth_aYTZQp5EH8OVgrkLmio0yJM7jISC3AWubBqdK6vx|e83cf6ddcf778e37bfe3d48fc78a6502062fc' \
--header 'Content-Type: application/json' \
--data-raw '{
"execute": true
}'
//
//
//
//