POST staff/cashbook_income/create

Request Information

URI Parameters

None.

Body Parameters

Request_Cashbook_CU
NameDescriptionTypeAdditional information
id

integer

Required

receipt_root

string

Required

receipt_date

string

Required

person

string

Required

description

string

Required

amount

decimal number

Required

id_type

integer

Required

type_name

string

Required

cash_book_image

string

Required

cash_book_file

string

Required

id_payment_method

integer

Required

payment_method

string

Required

id_bank

integer

Required

bank_number

string

Required

bank_name

string

Required

id_bill

integer

Required

bill_receipt_no

string

Required

id_customer

integer

Required

customer_name

string

Required

customer_phone

string

Required

customer_address

string

Required

id_provider

integer

Required

provider_name

string

Required

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "receipt_root": "sample string 2",
  "receipt_date": "sample string 3",
  "person": "sample string 4",
  "description": "sample string 5",
  "amount": 6.0,
  "id_type": 7,
  "type_name": "sample string 8",
  "cash_book_image": "sample string 9",
  "cash_book_file": "sample string 10",
  "id_payment_method": 11,
  "payment_method": "sample string 12",
  "id_bank": 13,
  "bank_number": "sample string 14",
  "bank_name": "sample string 15",
  "id_bill": 16,
  "bill_receipt_no": "sample string 17",
  "id_customer": 18,
  "customer_name": "sample string 19",
  "customer_phone": "sample string 20",
  "customer_address": "sample string 21",
  "id_provider": 22,
  "provider_name": "sample string 23",
  "token": "sample string 24",
  "secret_key": "sample string 25",
  "id_staff_action": 26
}

application/xml, text/xml

Sample:
<Request_Cashbook_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Cashbook.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">26</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 25</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 24</token>
  <amount>6</amount>
  <bank_name>sample string 15</bank_name>
  <bank_number>sample string 14</bank_number>
  <bill_receipt_no>sample string 17</bill_receipt_no>
  <cash_book_file>sample string 10</cash_book_file>
  <cash_book_image>sample string 9</cash_book_image>
  <customer_address>sample string 21</customer_address>
  <customer_name>sample string 19</customer_name>
  <customer_phone>sample string 20</customer_phone>
  <description>sample string 5</description>
  <id>1</id>
  <id_bank>13</id_bank>
  <id_bill>16</id_bill>
  <id_customer>18</id_customer>
  <id_payment_method>11</id_payment_method>
  <id_provider>22</id_provider>
  <id_type>7</id_type>
  <payment_method>sample string 12</payment_method>
  <person>sample string 4</person>
  <provider_name>sample string 23</provider_name>
  <receipt_date>sample string 3</receipt_date>
  <receipt_root>sample string 2</receipt_root>
  <type_name>sample string 8</type_name>
</Request_Cashbook_CU>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Request_Cashbook_CU'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
status

integer

None.

error_code

string

None.

content

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "error_code": "sample string 2",
  "content": {}
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">
  <content />
  <error_code>sample string 2</error_code>
  <status>1</status>
</Result>