Web Service Endpoints
Form ID: (SM207060)
You use this form to configure the endpoints of the MYOB Acumatica contract-based web services; you can also use the form to view the details of existing endpoints.
You can use the predefined default endpoint to access the basic contract-based web services API. If you need to add more elements to the API, you must create a custom endpoint and add all needed elements to it.
Form Toolbar
The form toolbar includes standard buttons and form-specific buttons and commands. For the list of standard buttons, see Form Toolbar and More Menu. The form-specific commands can be shown as buttons on the form toolbar, as commands on the More menu, or in both places. These commands are listed in the following table in alphabetical order.
Command | Description |
---|---|
Extend Endpoint | Opens the Extend Current Endpoint dialog box, where you can specify the name and version of the endpoint that should be created as an extension of the current endpoint. You may need to create an extension of an endpoint if you want to use the entities that are defined in the contract of the existing endpoint but also need some additional entities, fields, and actions in the contract. |
Validate Endpoint |
Validates the endpoint. That is, the system makes sure that the following
criteria are met for all elements (entities, fields, actions, and action
parameters) of the endpoint:
Once the validation is finished, the system displays a message with the results of the validation. If the validation has failed, the error message contains the names of all fields that caused the error. |
OpenAPI 2.0 | For the web service endpoint that is selected on the form, opens the swagger.json file with its OpenAPI 2.0 description, which is used for the contract-based REST API. For more information about this file, see OpenAPI 2.0. |
Element | Description |
---|---|
Base Endpoint Name | The name of the currently selected endpoint whose contract should be extended. |
Base Endpoint Version | The version of the currently selected endpoint whose contract should be extended. |
Endpoint Name | The name of the endpoint that should be created as an extension of the current endpoint. |
Endpoint Version | The version of the endpoint that should be created as an extension of the current endpoint. |
The dialog box has the following buttons. | |
OK | Creates an endpoint with the specified name and version that contains the API of the current endpoint. |
Cancel | Closes the dialog box without creating any endpoint. |
Selection Area
Element | Description |
---|---|
Endpoint Name | The name of the endpoint. By default, system endpoints (which have the name
Default) are predefined in MYOB Acumatica. Note: MYOB Acumatica
can include endpoints preconfigured in the system that have names other than
Default. The system uses these endpoints internally. We recommend that you
not use these endpoints. |
Endpoint Version |
The version of the endpoint. By default, the following versions of system
endpoints are predefined in MYOB Acumatica:
For details about Contract Version 4, see Contract Version. |
Left Pane
In this pane, the entities of the existing endpoint are represented as nodes. If the selected endpoint was created as an extension of another endpoint, the entities inherited from the base endpoint have the arrow sign to the right of the entity name.
You can click the node icon to the left of any entity to expand the node and view the hierarchical structure of the entity. Each entity can include actions and other entities.
If you click the endpoint, the right pane displays the properties of the endpoint. If you click an entity, the right pane displays the properties of the entity and the fields that are included in the entity. If you click an action, the right pane shows the properties and parameters of the action.
Button | Description |
---|---|
Insert |
Brings up a dialog box that you can use to add an entity or action to the contract of the endpoint. If an endpoint node or entity node is selected on the left pane of the form, when you click this button, the Create Entity dialog box opens. By using this dialog box, you can specify the name of the new entity, connect it to the MYOB Acumatica form, and create the entity in the selected node with the specified parameters. If an Actions node is selected on the left pane of the form, when you click this button, the Create Action dialog box opens. In this dialog box, you can specify the name of the new action, map it to an action of an MYOB Acumatica form, and create the action in the selected node with the specified parameters. |
Delete | Deletes the selected node. |
Element | Description |
---|---|
Field Name |
The name of the field of the entity in which the created entity is being inserted. This field should be used to access the entity you are adding. For the rules on the naming of fields, see Naming Rules for Endpoints. This element appears in the dialog box if you insert an entity in another entity. |
Use Existing Entity |
A check box that indicates (if selected) that an entity that exists in the contract should be inserted. This element appears in the dialog box if you insert an entity in another entity. |
Entity Type |
The type of the entity that should be inserted into the contract. You can select any entity type that exists in the contract. This element appears in the dialog box if the Use Existing Entity check box is selected. |
Object Name |
The name of the created entity. This is the name of the API object that will be used to access the entity. For the rules on the naming of entities, see Naming Rules for Endpoints. This element appears in the dialog box if the Use Existing Entity check box is cleared. |
Object Type | The type of the created entity. The following options are available:
|
Screen Name |
The name of the MYOB Acumatica form to which the entity should correspond. This element appears in the dialog box if Top-Level or Report is selected in the Object Type box. |
Screen ID |
A read-only box with the ID of the MYOB Acumatica form selected in the Screen Name box. This element appears in the dialog box if Top-Level or Report is selected in the Object Type box. |
The dialog box has the following buttons. | |
OK | Inserts the entity with the specified parameters into the contract of the endpoint, and closes the dialog box. |
Cancel | Closes the dialog box without inserting any entity into the contract of the endpoint. |
Element | Description |
---|---|
Mapped Action | The MYOB Acumatica action that should be added to the contract. You can select any available action on the MYOB Acumatica form that corresponds to the entity to which the action is added. |
Action Name | The name of the created action. This is the name of the API object that will be used to invoke the created action. For the rules on the naming of actions, see Naming Rules for Endpoints. |
The dialog box has the following buttons. | |
OK | Inserts the action with the specified parameters into the contract of the endpoint, and closes the dialog box. |
Cancel | Closes the dialog box without inserting any action into the contract of the endpoint. |
Right Pane
Element | Description |
---|---|
Endpoint Name | The name of the selected endpoint. |
Endpoint Version | The version of the selected endpoint. For the differences between the system endpoints, see Comparison of System Endpoints. |
System Contract | The version of the contract of the selected endpoint. For the difference between the contract versions, see Contract Version. |
Base Endpoint Name | The name of the endpoint that was used as the base endpoint for the selected endpoint when the endpoint was created. |
Base Endpoint Version | The version of the endpoint that was used as the base endpoint for the selected endpoint when the endpoint was created. |
Element | Description |
---|---|
Object Name | The name of the selected entity. This is the name of the API object that should be used to access the entity. For the rules on the naming of entities, see Naming Rules for Endpoints. |
Object Type | The type of the created entity. It can be one of the following:
|
Screen Name |
The name of the MYOB Acumatica form to which the selected entity corresponds. This box appears on the tab if a top-level or report entity is selected on the left pane. |
Screen ID |
The ID of the MYOB Acumatica form to which the selected entity corresponds. This box appears on the tab if a top-level or report entity is selected on the left pane. |
Default Action |
The default action that should be performed when the entity with data is passed to MYOB Acumatica. This action is performed when the PUT method of a web services client object is called. If no value is specified in this element, the Save action is the default action. This box appears on the tab if a top-level entity is selected on the left pane. |
Column | Description |
---|---|
Field Name | The name of the entity field. This is the name that is used to access this field through the API. For the rules on the naming of fields, see Naming Rules for Endpoints. |
Mapped Object | The name of the MYOB Acumatica object that contains the field to which the entity field corresponds. If this MYOB Acumatica object is a view that is not optimized for obtaining a list of entities by a single GET request, a proper warning is attached to this table cell. For more information about the optimization of the retrieval of multiple records, see the Usage Notes section of Retrieve Records by Conditions. |
Mapped Field | The name of the MYOB Acumatica field to which the entity field corresponds. This is one of the fields of the object selected in the Mapped Object column. |
Field Type | The type of the entity field. |
Button | Description |
---|---|
Populate | Opens the Populate Fields dialog box, where you can select the fields that should be available through the entity. |
Extend Entity |
Makes the Add Row, Delete Row, and Populate buttons available on the toolbar of the tab. You should click Extend Entity when creating a custom endpoint if you need to extend an entity inherited from the base endpoint. This button is available on the toolbar of the tab if an entity inherited from the base endpoint is selected in the left pane. |
Validate Entity |
Validates the entity. That is, the system makes sure that the following
criteria are met for the nested entities and fields in the selected entity:
Once the validation is finished, the system displays a message with the results of the validation. If the validation has failed, the error message contains the names of all fields that caused the error. |
Element | Description |
---|---|
Action Name | The name of the selected action. This is the name of the API object that should be used to invoke the selected action. For the rules on the naming of actions, see Naming Rules for Endpoints. |
Mapped Action | The action of the MYOB Acumatica form that corresponds to the selected action. |
Column | Description |
---|---|
Parameter Name | The name of the action parameter. This is the name that is used to access this parameter through the API. For the rules on the naming of action parameters, see Naming Rules for Endpoints. |
Mapped Object | The name of the MYOB Acumatica object that contains the field to which the action parameter corresponds. |
Mapped Field | The name of the MYOB Acumatica field to which the action parameter corresponds. This is one of the fields of the object selected in the Mapped Object column. |
Parameter Type | The type of the action parameter. |
Button | Description |
---|---|
Populate | Opens the Populate Fields dialog box, where you can select the fields that should be used as parameters of the action. |
Validate Action |
Validates the action. That is, the system makes sure that the following
criteria are met for the action and its parameters:
Once the validation is finished, the system displays a message with the results of the validation. If the validation has failed, the error message contains the names of all fields that caused the error. |
Element | Description |
---|---|
Object | The name of the MYOB Acumatica object whose fields should be used to populate the parameters of the entity or action. |
Show Fields from Selectors | A check box that indicates (if selected) that the fields that correspond to the columns of the Select dialog box (which appears if you click the Magnifier icon of a box) should appear in the table of the Populate Fields dialog box. |
Button | Description |
---|---|
Select All | Selects all fields in the table of the Populate Fields dialog box. |
Clear | Clears the selection of the fields in the Populate Fields dialog box. |
Column | Description |
---|---|
Populate | An unlabeled check box that you select to include the field in the list of fields of the entity or in the list of parameters of the action. |
Field | The name of the field of the object selected in the Object box. |