OAuth 2.0 and OIDC: Working with Data in MYOB Acumatica

To obtain the data from MYOB Acumatica or submit data to the system, the client application connects to the web services API or OData endpoint of MYOB Acumatica with the needed HTTP method. The following sections provide details on the request.

HTTP Method and URL

A client application can use the REST API, screen-based SOAP API, or OData if a user has granted access to them for the client application. For details on the methods and URLs that can be used to retrieve or submit data, see one of the following topics:

HTTP Header

When you are working with MYOB Acumatica data, you use the following HTTP header.

Key Value
Authorization The token type, which is Bearer, and the access token that the client application has received from the authorization or token endpoint. The client application should include the access token in the Authorization header of each request to MYOB Acumatica.

Example

The following example retrieves a sales order from the Default/23.200.001 endpoint through the REST API. The access token is used for authorization.
GET /AcumaticaDB/entity/Default/23.200.001/SalesOrder/SO/000001 HTTP/1.1
Host: localhost
Authorization: Bearer cde78a99a2dc6388eb8c7242a90cf9bc