Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetypescript
window.Ambita.mFlex.init({
  environment: 'testbeta',
  token: tokenObject,
  reference: '123456789',
  technicalReference: '123456789',
  externalDepartmentId: 1234,
});

...

Name

Required

Type

Options

Description

environment

True

string

test beta & prod

The environment you want connect to

token

True

object / string

This is where you pass in the token object for the logged in user, returned from the authentication service, see Authentication for more information.

reference

True

string

The reference property is added to the order when placed. This must be something that connects the order to the entity in your application that the user can relate to and have an understanding of. Could be an ID or key unique to an assignment or a project. The reference will show up on the invoices from Ambita

technicalReference

False

string

The technical reference is added to the order and can be used by your application, in case you want to track the orders. We recommend using this when handling file deliveries, see File deliveries .

externalDepartmentId

False

number

Used in spesial cases only

...