NATS5 REST API Site POST site-partner
From TMM Wiki
Jump to navigationJump to search
POST /site/site-partner
Description
- Add new site partner
Resource URL
- http://domain/api/site/site-partner
- Replace domain with the nats domain
- POST
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- siteid
- type: digit
- required
- loginid
- type: digit
- required
- sp_misc_expenses
- type: digit
- optional
- sp_percentage
- type: digit
- optional
- sp_on_income
- type: boolean_digit
- optional
- sp_flat_adjustment
- type: numeric
- optional
- sp_flat_percentage
- type: digit
- optional
- start_time
- type: datetime (A date string to be parsed by php strtotime, or a unix timestamp integer)
- optional
- end_time
- type: datetime (A date string to be parsed by php strtotime, or a unix timestamp integer)
- optional