ApexERPHost

<back to all web services

AddCoupons

Requires Authentication
The following routes are available for this service:
POST/Coupons
AddCoupons Parameters:
NameParameterData TypeRequiredDescription
CodeFrombodylongNo
TypebodyintNo
ExpDatebodyDateTimeNo
CodeTobodylongNo
PrefixbodystringNo
SuffixbodystringNo
DatabodystringNo
CodeLengthbodyintNo
CodeFillbodyCharNo
CodeFillRightbodyboolNo
VoidedbodyboolNo
UsedbodyboolNo
LastInsertedIdbodyintNo
InsertedbodylongNo
OmittedbodylongNo
OmittedlistbodystringNo
ErrorbodyintNo
AddCouponsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
lastInsertedIdformintNo
InsertedformlongNo
OmittedformlongNo
OmittedlistformstringNo
ErrorformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Coupons HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CodeFrom: 0,
	Type: 0,
	ExpDate: 0001-01-01,
	CodeTo: 0,
	Prefix: String,
	Suffix: String,
	Data: String,
	CodeLength: 0,
	CodeFill: ,
	CodeFillRight: False,
	Voided: False,
	Used: False,
	LastInsertedId: 0,
	Inserted: 0,
	Omitted: 0,
	Omittedlist: String,
	Error: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	lastInsertedId: 0,
	Inserted: 0,
	Omitted: 0,
	Omittedlist: String,
	Error: 0
}