Creates a transaction.
Request body
Example request
{
"external_id": "bank_txn_123",
"account": {
"id": "ext_account_YWJjMTIz",
"external_id": "acct_external_123"
},
"posted": "2024-01-13T00:00:00Z",
"currency": "USD",
"amount": "-1000",
"allocations": [],
"tags": [
{
"key": "department",
"value": "engineering"
}
]
}Response
Success
Example response
{
"data": {
"id": "txn_dHhuX2ZyYWdfMDAx",
"external_id": "bank_txn_123",
"account": {
"id": "ext_account_YWJjMTIz",
"external_id": "acct_external_123"
},
"posted": "2024-01-13T00:00:00Z",
"currency": "USD",
"amount": "-1000",
"allocations": [
{
"invoice_id": "inv_abc123",
"amount": "1000",
"type": "invoice_payin",
"user": {
"id": "user_abc123",
"external_id": "user_ext_001"
}
}
],
"tags": [
{
"key": "department",
"value": "engineering"
}
],
"unallocated_amount": "-1000",
"created": "2024-01-13T00:00:00Z",
"modified": "2024-01-13T00:00:00Z",
"version": 1
}
}Changes
Changed in 7 of the 38 revisions of this API.9418
- ▲
removed
subschema #1subschema #2from theallocations/items/userrequest propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #1subschema #2to theallocations/items/userrequest propertyanyOflistrequest-property-any-of-added
- ○
the response property
data/allocations/items/user/external_idbecame required for the status201response-property-became-required
This revision also has 18 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
tagsnew-optional-request-property
- ○
added the required property
data/tagsto the response with the201statusresponse-required-property-added
- ○
- ▲
the
account/external_idrequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
account/idrequest property's minLength was increased from0to1request-property-min-length-increased
- ○
added the optional property
data/allocations/items/user/external_idto the response with the201statusresponse-optional-property-added
- ▲
- ▲
removed
subschema #1subschema #2from theallocations/items/userrequest propertyanyOflistrequest-property-any-of-removed
- ▲
the
data/allocations/items/userresponse's property type/format changed from/toobject/for status201response-property-type-changed
- ○
added
subschema #1subschema #2to theallocations/items/userrequest propertyanyOflistrequest-property-any-of-added
- ○
removed
subschema #1subschema #2from thedata/allocations/items/userresponse propertyanyOflist for the response status201response-property-any-of-removed
- ○
added the required property
data/allocations/items/user/idto the response with the201statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the required property
data/versionto the response with the201statusresponse-required-property-added
- ○
- ▲
added the new required request property
allocations/items/amountnew-required-request-property
- ▲
added the new required request property
allocations/items/invoice_idnew-required-request-property
- ▲
added the new required request property
allocations/items/typenew-required-request-property
- ▲
added the new required request property
allocations/items/usernew-required-request-property
- ●
added the new
CADCenum value to thedata/currencyresponse property for the response status201response-property-enum-value-added
- ●
added the new
CADTenum value to thedata/currencyresponse property for the response status201response-property-enum-value-added
- ●
added the new
EURCenum value to thedata/currencyresponse property for the response status201response-property-enum-value-added
- ●
added the new
USDGenum value to thedata/currencyresponse property for the response status201response-property-enum-value-added
- ○
added the new
CADCenum value to the request propertycurrencyrequest-property-enum-value-added
- ○
added the new
CADTenum value to the request propertycurrencyrequest-property-enum-value-added
- ○
added the new
EURCenum value to the request propertycurrencyrequest-property-enum-value-added
- ○
added the new
USDGenum value to the request propertycurrencyrequest-property-enum-value-added
- ○
added the required property
data/allocations/items/amountto the response with the201statusresponse-required-property-added
- ○
added the required property
data/allocations/items/invoice_idto the response with the201statusresponse-required-property-added
- ○
added the required property
data/allocations/items/typeto the response with the201statusresponse-required-property-added
- ○
added the required property
data/allocations/items/userto the response with the201statusresponse-required-property-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
endpoint added
endpoint-added
- ○