Skip to main content
Aria Knowledge Central

create_promotion_m

Summary

API Name create_promotion_m
Class administration_services_m
Update Version  

Description

Creates a new promotion

Inputs

Name Type Length Required Description
client_no long 12 Yes

Aria-assigned unique identifier indicating the Aria client providing service to this account.

auth_key string 32 Yes

Aria-assigned unique key to be passed with each method call for authenticating the validity of the requestor.

promo_cd string 30 Yes

Unique identifier for promotion

promo_desc string 200 Yes

Description of promotion. Translatable.

promo_plan_set_no long 8 Yes

Unique identifier of promotional plan set that this promotion is associated with

no_of_uses string 8 No

Maximum number of possible usage of that Promotion before it gets expired. If this parameter is set then,start_date and end_date need not be set.

start_date string 10 No

Start date of given Promotion. The date format must be yyyy-mm-dd. If this parameter is set then no_of_uses need not be set. If only this parameter is set and end_date is not set, then system assumes that Promotion will never expire and it becomes valid from given start_date.

exp_date string 10 No

Expiry date of given Promotion. The date format must be yyyy-mm-dd. If this parameter is set then no_of_uses need not be set. If this is set with start_date then it means that promotion will be valid between these two dates.

Outputs

Name Type Length Required Description
error_code long   No

Aria-assigned error identifier. 0 indicates no error

error_msg string   No

Textual description of any error that occurred. "OK" if there was no error.

promo_cd string 30 No

Unique identifier for promotion

TOP
  • Was this article helpful?