Create (POST) Cash Receipt
Use this API to create a cash receipt in the Transaction Center.
To create a cash receipt:
Execute a POST command on the endpoint
{{url}}/ledger/{{TransType}}, by setting the variable
TransType to CR and specifying the transaction data for that receipt in the request body.
For example, here is a request submitted using cURL:
curl
--request POST \
--url 'https://{{url}}/ledger/CR' \
--header 'authorization: Bearer {{oauth_token}}' \
--header 'content-type: application/json' \
--data '{
"Batch": "PSA-API-CRBatch01",
"Recurring": "Y",
"Posted": "N",
"Creator": "ADMIN",
"Period": "201305",
"EndDate": "2013-05-26T00:00:00.000",
"Total": "0",
"DefaultBank": "ABOSTON",
"PostPeriod": "0",
"PostSeq": "0",
"Company": "0A",
"crMaster": [
{
"Batch": "PSA-API-CRBatch01",
"RefNo": "000000000333",
"TransDate": "2013-05-26T00:00:00.000",
"BankCode": "ABOSTON",
"TransComment": "LOCKBOX AUTOMATED ENTRY",
"Posted": "N",
"Seq": "0",
"CurrencyExchangeOverrideMethod": "N",
"CurrencyExchangeOverrideDate": "2013-05-26T00:00:00.000",
"CurrencyExchangeOverrideRate": "0"
}
],
"crDetail": [
{
"Batch": "PSA-API-CRBatch01",
"RefNo": "000000000333",
"PKey": "LOCKBOX00001",
"Seq": "1",
"Description": "ANTHOS USA INC",
"WBS1": "PROJCUBE.010",
"WBS2": "",
"WBS3": "",
"Invoice": "000000000001",
"Account": "11100",
"Amount": "12.34",
"Interest": "N",
"TaxCode": "",
"TaxBasis": "0.0",
"Retainer": "N",
"CurrencyExchangeOverrideRate": "0",
"SourceAmount": "0",
"SourceExchangeInfo": "",
"LinkCompany": ""
},
{
"Batch": "PSA-API-CRBatch01",
"RefNo": "000000000333",
"PKey": "LOCKBOX00002",
"Seq": "2",
"Description": "ANTHOS USA INC",
"WBS1": "PROJCUBE.003",
"WBS2": "",
"WBS3": "",
"Invoice": "000000000001",
"Account": "21500",
"Amount": "100.99",
"Interest": "N",
"TaxCode": "",
"TaxBasis": "0.0",
"Retainer": "N",
"CurrencyExchangeOverrideRate": "0",
"SourceAmount": "0",
"SourceExchangeInfo": "",
"LinkCompany": ""
}
]
}
'
A successful POST returns the JSON representation of the newly created receipt.
