Create Transactions
PayFac API
Create Transactions
After onboarding users in your marketplace, you can use our API to create Payments or Invoice between your users.
Let's say you created the following two users, M and James Bond:
{
"key":"08ba7e85f2f943499fd0c2593f4db390",
"secret":"NZqufszJ9PO6FdGBgpJ1JR80lUD2i8",
"user_id":"[email protected]"
}
{
"key":"92784091e84c48e7aab87d2e5141cb2d",
"secret":"h8Yhlq0n4SuawATP649lh8byJtFTft",
"user_id":"[email protected]"
}
Now if M wants to pay James Bond for the latest successful mission, she could send him a Digital Check like this:
curl --request POST \
--url https://demo.checkbook.io/v3/check/digital \
--header 'accept: application/json' \
--header 'authorization: 08ba7e85f2f943499fd0c2593f4db390:NZqufszJ9PO6FdGBgpJ1JR80lUD2i8' \
--header 'content-type: application/json' \
--data '{"recipient":"[email protected]","name":"James Bond","amount":500000,"description":"Casino Royale"}'
The check will be deposited automatically if the recipient has a bank account on file.
Signing the API requests
Make sure to sign the API requests for a user using its API keys that you got when creating the user.
Updated almost 2 years ago