Difference between revisions of "NATS5 REST API Payment POST payvia-rule"
From TMM Wiki
Jump to navigationJump to search (Created page with "{{NATS4 Manual | show_api_admin_section = true }} == '''POST /payment/payvia-rule''' == '''Description''' * Add new payvia rule '''Resource URL''' *<nowiki>http://domain/api...") |
(No difference)
|
Revision as of 10:47, 19 April 2019
POST /payment/payvia-rule
Description
- Add new payvia rule
Resource URL
- http://domain/api/payment/payvia-rule
- Replace domain with the nats domain
- POST
Response Format
- JSON
- HTTP headers
Parameters
Parameters can be sent as url encoded params
- payviaid
- type: digit
- required
- rule_type
- type: trinary_digit (0, 1, or 2)
- required
- login
- type: digit_list (Either a comma-separated string of digits, or a JSON array of digits)
- optional
- country
- type: string_list (Either a comma-separated string of strings, or a JSON array of strings)
- optional
- start_time
- type: string
- optional (default value: NOW)
- end_time
- type: string
- optional (default value: FOREVER)