Skip to content

Instantly share code, notes, and snippets.

@jkwade
Last active July 26, 2019 23:18
Show Gist options
  • Save jkwade/61ef9879fd12d9470652d3790b6ae4e8 to your computer and use it in GitHub Desktop.
Save jkwade/61ef9879fd12d9470652d3790b6ae4e8 to your computer and use it in GitHub Desktop.
// Normal Settlement call
curl https://finix.sandbox-payments-api.com/identities/IDxxxxx/settlements \
-H "Content-Type: application/vnd.json+api" \
-u USckpcZHua1RRGW7iNSQsH2S:bbf084b5-f704-4917-abc9-6bbb96e2484b \
-d '
{
"currency": "USD",
"processor": "DUMMY_V1"
}'
// Then reference that Settlement when you hit the
curl POST https://finix.live-payments-api.com/settlements/{settlement_id}/funding_transfers \
-H "Content-Type: application/vnd.json+api" \
-u USckpcZHua1RRGW7iNSQsH2S:bbf084b5-f704-4917-abc9-6bbb96e2484b \
-d '
{
"currency": "USD",
"amount": 1510,
"destination": "PIw6Eb4hdLRWjbB9ciFFogo"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment