Skip to content

Get an expense code by Aiwyn ID

Request

🔐 Required role: TM_CODE_R or TM_CODE_C

📖 Data dictionary: Time-management code

Get an expense code by Aiwyn ID

Returns the ExpenseCode whose aiwynId is id, in the same shape as a record of the paged lookup. An ID that belongs to no ExpenseCode returns 404.

Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
idinteger, (int64)required

Aiwyn ID of the code, as returned in aiwynId by the upsert or the paged lookup.

curl -i -X GET \
  'https://api.sandbox.aiwyn.app/api/v1/expense-codes/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
  -H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE'

Responses

Expense code retrieved successfully

Bodyapplication/json
dataobject
errorobject or null
metaobject
Response
{ "data": { "type": "string", "aiwynId": 0, "systemRefs": [ … ], "attributes": {} }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }