POST
/
book
curl --request POST \
  --url https://api.treasuryprime.com/book \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "100.00",
  "from_account_id": "acct_1234567890",
  "to_account_id": "acct_0987654321"
}'
{
  "amount": "100.00",
  "created_at": "2017-11-02T11:55:14Z",
  "description": null,
  "from_account_id": "acct_1234567890",
  "id": "book_1029384756",
  "status": "pending",
  "to_account_id": "acct_0987654321",
  "updated_at": "2017-11-02T11:55:14Z",
  "userdata": null
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
The book to create

The body is of type object.

Response

200 - application/json
The book created

The response is of type object.