_new

Create a new Supplier record.

Parameters

name

The name of the Supplier.

contact_name

The contact name for the Supplier.

account_number

The account number of the Supplier.

tax_id

The tax id of the Supplier.

email

The email of the Supplier.

phone

The phone number of the Supplier.

website

The website URL of the Supplier.

street_address1

The first line of the Suppliers address.

street_address2

The second line of the Suppliers address.

town

The town of the Supplier.

county

The county of the Supplier.

country

The country code of the Supplier, eg. United Kingdon - GBR

postcode

The postcode of the Supplier.

notes

Notes for the Supplier.

on_hold

Yes - 1 No - 0

Example

FM_api('Supplier_new',  ['name' => 'Supplier 1',
												 'contact_name' => 'mary',
												 'account_number' => '12',
												 'tax_id' => '20',
												 'email' =>  'Supplier@email.com',
												 'phone' => '53234234',
												 'website' => 'www.testsupplier.co.uk',
												 'street_address1' => '62 Miltown St',
												 'street_address2' => 'Burren',
												 'town' => 'Warrrenpoint',
												 'county' => 'Down',
												 'country' => 'GBR',
												 'postcode' => 'BT343PU',
												 'notes' => 'Test Note',
												 'on_hold' => '0'
												 ]));

Result

On Success

"{"ok":1,"id":7}"

Last updated