POST payment/create
Request Information
URI Parameters
None.
Body Parameters
Request_Payment_Create| Name | Description | Type | Additional information |
|---|---|---|---|
| id_payee | integer |
None. |
|
| amount | decimal number |
None. |
|
| payment_date | date |
None. |
|
| payment_method | string |
None. |
|
| payment_type | string |
None. |
|
| id_bank | integer |
None. |
|
| bank_number | string |
None. |
|
| bank_name | string |
None. |
|
| reason | string |
None. |
|
| table_name | string |
None. |
|
| id_service | integer |
None. |
|
| token | string |
Required |
|
| secret_key | string |
Required |
|
| id_staff_action | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"id_payee": 1,
"amount": 1.0,
"payment_date": "2026-01-22T12:23:39.6839515+07:00",
"payment_method": "sample string 2",
"payment_type": "sample string 3",
"id_bank": 1,
"bank_number": "sample string 4",
"bank_name": "sample string 5",
"reason": "sample string 6",
"table_name": "sample string 7",
"id_service": 1,
"token": "sample string 8",
"secret_key": "sample string 9",
"id_staff_action": 10
}
application/xml, text/xml
Sample:
<Request_Payment_Create xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Payment.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 5</bank_name> <bank_number>sample string 4</bank_number> <id_bank>1</id_bank> <id_payee>1</id_payee> <id_service>1</id_service> <payment_date>2026-01-22T12:23:39.6839515+07:00</payment_date> <payment_method>sample string 2</payment_method> <payment_type>sample string 3</payment_type> <reason>sample string 6</reason> <table_name>sample string 7</table_name> </Request_Payment_Create>
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>