Executes the Add action for the Agreements data object.

Adds a new SM Agreement

Log in to see full request history
Path Params
string
required

The code of the subscriber that you are making this request for.

Body Params
integer
required
1 to 255

Required.

string
required
length ≤ 15

Required.

string | null

Optional. If omitted, null will be defaulted.

string | null

Optional. If omitted, null will be defaulted.

string | null

Optional. If omitted, null will be defaulted.

integer
required

key to sm/customers(SMCo, CustGroup, Customer) CustGroup is based on SMCo.

string | null

Optional. If Omitted, null will be defaulted.

date | null

Format: YYYY-MM-DD. Optional. If omitted null will be defaulted.

date | null

Format: YYYY-MM-DD. Optional. If omitted null will be defaulted.

date | null

Format: YYYY-MM-DD. Optional. If omitted null will be defaulted.

date | null

Format: YYYY-MM-DD. Optional. If omitted null will be defaulted. Can only be provided, if the provided $.AgreementType has AutoRenew = Y. If the Agreement Type is not provided or AutoRenew is N, this value will be ignored.

string | null

Required if $RenewThrough is provided. If $.RenewThrough is not provided this property is ignored.

string | null

Key to SM Rate Template. Optional. If omitted null will be defaulted.

string | null

Optional. If omitted null will be defaulted.

string | null

Optional. If omitted null will be defaulted.

string | null

Material Tax Type Override. Options:N-No Tax, S-SalesTax Only, U-UseTaxOnly. Optional. If omitted, null will be defaulted.

string
length ≤ 1

Options: B-As Billed, S-Amortize, C-As Costs Incurred. Optional. If omitted, B will be defaulted.

string | null

Optional. If omitted, null will be defaulted.

integer | null

Custom Invoice Report. Optional. If omitted, null will be defaulted.

string

Optional. If omitted, N will be defaulted.

string | null

Optional. If omitted, null will be defaulted.

__custom_fields
object

This property will be added if there are any custom fields defined for this object in Vista. Each custom field will be a property of this object.

Headers
string
required

Used to authorize access to the Direct API.

Responses

401

You have not provided a proper X-Application-Key in the header of this request.

403

The X-Application-Key provided is valid but the key does not have access to this resource.

404

The object with the given ID was not found OR a subscriber with the given URL was not found.

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json