Authorization: Bearer ********************{
"name": "商品购买",
"amount": 500,
"income": false,
"orderId": "ORDER_002",
"bookId": "BOOK_001",
"comment": "日常采购支出"
}curl --location --request POST '/api/bill/single' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "商品购买",
"amount": 500,
"income": false,
"orderId": "ORDER_002",
"bookId": "BOOK_001",
"comment": "日常采购支出"
}'{
"data": {
"id": "string",
"amount": 0,
"bookId": "string",
"code": "string",
"comment": "string",
"endAt": "2019-08-24T14:15:22.123Z",
"groupBy": "string",
"income": true,
"name": "string",
"orderId": "string",
"serial": "string",
"startAt": "2019-08-24T14:15:22.123Z",
"type": "string",
"category": "string",
"modelId": "string",
"modelKey": "string",
"sigma": "string",
"tenantId": "string",
"appId": "string",
"active": true,
"language": "string",
"metadata": "string",
"version": "string",
"createdAt": "2019-08-24T14:15:22.123Z",
"createdBy": "string",
"updatedAt": "2019-08-24T14:15:22.123Z",
"updatedBy": "string"
}
}