Trice API gives direct access to real-time transfers and request for payment (RfP)
Making an instant credit transfer is as easy as this:
curl --request POST \
--url http://api.trice.co/v1/rtp_transfers \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ijk5Y2Q1OGUyLTllYzUtNDI2YS05YmNmLTI3NTQ0NGI2YjI2MSJ9.eyJzdWIiOiJjbGllbnQ6MDEyNGE2MjQtMjY0ZC00YTM4LThjMGYtMmNmMzdhYmFkMzlhIiwiaXNzIjoiaHR0cHM6Ly9hcGkudHJpY2UuY28vYXV0aCIsImF1ZCI6Imh0dHBzOi8vYXBpLnRyaWNlLmNvL2FwaSIsImlhdCI6MTUxNjIzOTAyMiwiZXhwIjoxNTE2MjU5MDIyLCJzY29wZSI6InNjb3BlMSBzY29wZTIiLCJhY2NvdW50SWQiOiIyMDIxYWU5Ni1mODM0LTQ4NDEtODk4Yy0zZDU1NTBkMTM3YmYifQ.a2xCXNDVRAwv8sgWVCAkSYBQWQPWsWS2qB1niDjmbJzvluaQc8Iu7R3KFOkRcEB9hDhr7kmJq5MTy8oOzXM84KJrl5KN4YdHI5KbFjqyhcZn11JV_IF8fEYQdGR3VVRwm-ztNVBrQYWPM_eJu1VdKr1QaTZLTZ9Vpc22KDpRRe0EE0pd7IjoK7EzmIpTFyR7TVnzwmEGpGLhwbO5JKaECLEwjNkNoklEk7JROEQtwXGUZmrDq6fv46LsO_4jxtZF0Y87FXLSU56XXJ46bIyvt5rQac8p62smG4bAgRTUqcsBk9LUqQyeCs23Fv0UMc7vA1BseAAbkIJHBBnb19uH7g' \
--header 'content-type: application/json' \
--data '
{
"amount": 10000,
"internal_description": "Transfer for bills that need paid.",
"memo": "TRICE ACCOUNT REAL TIME PAYMENT TRANSFER",
"party": "669774a5-dbbc-481f-99ab-8c7c99d5d341",
"enrollment": "669774a5-dbbc-481f-99ab-8c7c99d5d346",
"reference_number": "987654321"
}
'
const options = {
method: 'POST',
headers: {
accept: 'application/json',
'content-type': 'application/json',
authorization: 'Bearer eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ijk5Y2Q1OGUyLTllYzUtNDI2YS05YmNmLTI3NTQ0NGI2YjI2MSJ9.eyJzdWIiOiJjbGllbnQ6MDEyNGE2MjQtMjY0ZC00YTM4LThjMGYtMmNmMzdhYmFkMzlhIiwiaXNzIjoiaHR0cHM6Ly9hcGkudHJpY2UuY28vYXV0aCIsImF1ZCI6Imh0dHBzOi8vYXBpLnRyaWNlLmNvL2FwaSIsImlhdCI6MTUxNjIzOTAyMiwiZXhwIjoxNTE2MjU5MDIyLCJzY29wZSI6InNjb3BlMSBzY29wZTIiLCJhY2NvdW50SWQiOiIyMDIxYWU5Ni1mODM0LTQ4NDEtODk4Yy0zZDU1NTBkMTM3YmYifQ.a2xCXNDVRAwv8sgWVCAkSYBQWQPWsWS2qB1niDjmbJzvluaQc8Iu7R3KFOkRcEB9hDhr7kmJq5MTy8oOzXM84KJrl5KN4YdHI5KbFjqyhcZn11JV_IF8fEYQdGR3VVRwm-ztNVBrQYWPM_eJu1VdKr1QaTZLTZ9Vpc22KDpRRe0EE0pd7IjoK7EzmIpTFyR7TVnzwmEGpGLhwbO5JKaECLEwjNkNoklEk7JROEQtwXGUZmrDq6fv46LsO_4jxtZF0Y87FXLSU56XXJ46bIyvt5rQac8p62smG4bAgRTUqcsBk9LUqQyeCs23Fv0UMc7vA1BseAAbkIJHBBnb19uH7g'
},
body: JSON.stringify({
amount: 10000,
internal_description: 'Transfer for bills that need paid.',
memo: 'TRICE ACCOUNT REAL TIME PAYMENT TRANSFER',
receiver: '669774a5-dbbc-481f-99ab-8c7c99d5d341',
reference_number: '987654321'
})
};
fetch('http://api.trice.co/v1/real_time_payment_transfers', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
The Trice API allows you as a business or platform to manage your funds receivers or senders through the Party endpoint.
Additionally, basic instant payments functionality includes credit transfers for inbound, outbound, and as a result of a request for payment (RfP).
base URL for sandbox is: https://api-sandbox.trice.co/hub/v1/
base URL for production is: https://api.trice.co/hub/v1/