Create Transactions

Create Transactions

After onboarding users in your marketplace, you may use Checkbook's API to create Payments or Invoices between your users.

For example, let's say you would like to create the following two users, M and James Bond:

{
	"key":"08ba7e85f2f943499fd0c2593f4db390",
	"secret":"NZqufszJ9PO6FdGBgpJ1JR80lUD2i8",
	"user_id":"[email protected]"
}
{
	"key":"92784091e84c48e7aab87d2e5141cb2d",
	"secret":"h8Yhlq0n4SuawATP649lh8byJtFTft",
	"user_id":"[email protected]"
}

If M wants to pay James Bond for the latest successful mission, M could send James Bond 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 you received when creating the user.