POST receipt/update
Request Information
URI Parameters
None.
Body Parameters
Request_Receipt_Update| Name | Description | Type | Additional information |
|---|---|---|---|
| id_receipt | integer |
None. |
|
| id_customer | integer |
None. |
|
| receipt_date | string |
None. |
|
| amount | decimal number |
None. |
|
| payment_method | string |
None. |
|
| id_bank | integer |
None. |
|
| bank_number | string |
None. |
|
| bank_name | string |
None. |
|
| reason | string |
None. |
|
| deposit | boolean |
None. |
|
| id_service | integer |
None. |
|
| type | string |
None. |
|
| token | string |
Required |
|
| secret_key | string |
Required |
|
| id_staff_action | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"id_receipt": 1,
"id_customer": 1,
"receipt_date": "sample string 1",
"amount": 1.0,
"payment_method": "sample string 2",
"id_bank": 1,
"bank_number": "sample string 3",
"bank_name": "sample string 4",
"reason": "sample string 5",
"deposit": true,
"id_service": 1,
"type": "sample string 7",
"token": "sample string 8",
"secret_key": "sample string 9",
"id_staff_action": 10
}
application/xml, text/xml
Sample:
<Request_Receipt_Update xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Receipt.Request"> <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">10</id_staff_action> <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 9</secret_key> <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 8</token> <amount>1</amount> <bank_name>sample string 4</bank_name> <bank_number>sample string 3</bank_number> <deposit>true</deposit> <id_bank>1</id_bank> <id_customer>1</id_customer> <id_receipt>1</id_receipt> <id_service>1</id_service> <payment_method>sample string 2</payment_method> <reason>sample string 5</reason> <receipt_date>sample string 1</receipt_date> <type>sample string 7</type> </Request_Receipt_Update>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Result| Name | Description | Type | Additional 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>