Create (POST) Transaction

Use this API to create a transaction of the transaction type specified.

To create a transaction:

Execute a POST command on the endpoint {{url}}/api/ledger/{{TransType}} by setting the variable TransType to the two letter transaction type and specifying the corresponding transaction data in the request body. Note that the response from the reading the transactions for this endpoint is not the valid request JSON.

For example, here is a request submitted using cURL:

curl --request POST \
  --url 'https://{{url}}/ledger/{{transType}}' \
  --header 'authorization: Bearer {{oauth_token}}' \
  --header 'content-type: application/json' \
  --data '{
          
}'

A successful POST with 200 OK Success returns the JSON representation of the newly created transaction.