Get accounting record by ID
Changed onRetrieve a single accounting record by its unique identifier
Request
- Base URLhttps://api.brex.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeToken URLhttps://accounts-api.brex.com/oauth2/default/v1/tokenScopesaccounting.record.read, accounting.record.write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
Whether to return single entry line items
Response
Accounting record retrieved successfully
Example response
{
"amount": {
"amount": 100,
"currency": "USD"
},
"billing_amount": {
"amount": 100,
"currency": "USD"
},
"id": "accr_abc123",
"line_items": [
{
"accounting_field_values": [
{
"brex_field_id": "ef_123",
"brex_field_value_id": "efo_123",
"field_name": "Accounting Entity",
"field_value_name": "Test USA Inc.",
"remote_field_id": "1",
"remote_field_value_id": "123",
"set_by_details": {
"rule_id": "rule_abc123",
"type": "CUSTOM_RULE"
}
}
],
"amortization": {
"amortization_template": {
"display_name": "Annual Prepaid Insurance",
"id": "efo_123",
"remote_id": "12345"
}
},
"amount": {
"amount": 100,
"currency": "USD"
},
"billing_amount": {
"amount": 100,
"currency": "USD"
},
"id": "arli_abc123",
"original_amount": {
"amount": 100,
"currency": "USD"
}
}
],
"original_amount": {
"amount": 100,
"currency": "USD"
},
"user": {
"account_id": "cuacc_1234",
"brex_assistant": {
"disabled_reason": "USER_DISABLED",
"experience": "IAF",
"is_enabled": true
},
"department_id": "cudmnt_1234",
"department_name": "Engineering",
"email": "john.doe@example.com",
"first_name": "John",
"id": "cuuser_1234",
"last_name": "Doe",
"location_id": "culoc_1234",
"location_name": "San Francisco",
"manager_first_name": "Jane",
"manager_id": "cuuser_1234",
"manager_last_name": "Smith",
"manager_title_id": "ti_1234",
"manager_title_name": "Engineering Manager",
"notification_preferences": {
"preferred_channels": [
{
"channel": "WHATSAPP",
"reply_mode": "TWO_WAY"
}
],
"text": "SMS"
},
"phone_number": "+14155551234",
"role": "CARD_ADMIN",
"status": "ACTIVE",
"title_id": "ti_1234",
"title_name": "Software Engineer"
},
"vendor": {
"contact_name": "Jane Smith",
"customer_account_id": "cuaac_123",
"customer_dba_name": "Acme Corporation",
"email": "contact@acme.com",
"id": "LF5tfXg4ZzNFcy1EVXFwe2dKKV4oXj9IPFIjQHFJOzg",
"name": "Acme Corp",
"phone": "+1-555-123-4567",
"rail_account_details": [
{
"bank_account_class": "BUSINESS",
"bank_name": "Chase Bank",
"beneficiary_type": "BUSINESS",
"display_name": "Main Business Checking",
"id": "rad_abc123",
"inserted_at": "2024-01-15T10:30:00Z",
"properties": {
"routingNumber": "121000248",
"accountNumber": "****1234"
},
"rail": {
"type": "US_ACH"
},
"status": "ACTIVE",
"target_country": "US",
"target_currency": {
"code": "USD"
},
"updated_at": "2024-01-15T10:30:00Z"
}
],
"website": "https://acme.com"
}
}Changes
- breaking
the response property
////became nullable for the status - breaking
the response property
/////became optional for the status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
//response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed from no type toobjectfor status - warning
added the new
AMORTIZATION_PROVISIONING_FAILEDenum value to theresponse property for the response status - warning
added the new
AMORTIZATION_PROVISIONING_FAILEDenum value to theresponse property for the response status - warning
added the new
AMORTIZATION_PROVISIONING_FAILEDenum value to theresponse property for the response status - warning
added the new
AMORTIZATION_PROVISIONING_FAILEDenum value to theresponse property for the response status - warning
added the new
AMORTIZATION_PROVISIONING_FAILEDenum value to theresponse property for the response status - info
the endpoint scheme security
bearerwas added to the API - info
api tag
Accountingadded - info
api tag
Accounting Recordsremoved - info
added the optional property
to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the required property
////to the response with the status - info
added the required property
////to the response with the status - info
added the required property
/////to the response with the status - info
added the required property
/////to the response with the status - info
added the required property
/////to the response with the status
- breaking