...
Code Block | ||
---|---|---|
| ||
window.Ambita.mFlex.init({ environment: 'testbeta', token: tokenObject, reference: '123456789', technicalReference: '123456789', externalDepartmentId: 1234, }); |
...
Name | Required | Type | Options | Description |
---|---|---|---|---|
| True | string |
| The environment you want connect to |
| 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. | |
| 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 | |
| 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 . | |
| False | number | Used in spesial cases only |
...