Complete Developer Guide: OAuth 2.0 Authorization Code Flow in MYOB Acumatica Chintan Prajapati November 25, 2025 4 min read IntroductionMYOB Acumatica (formerly MYOB Advanced Business) is MYOB’s flagship cloud ERP built on the Acumatica platform.It offers powerful financial, operational, inventory, and project management capabilities and exposes modern REST APIs with OAuth 2.0 for secure integration.This guide explains how to implement the OAuth 2.0 Authorization Code Flow for MYOB Acumatica, including configuration steps, token generation, and best practices. 👉For businesses building deep integrations across MYOB products, see our full offering here: MYOB Integration Services.PrerequisitesEnsure you have: Administrative access to your MYOB Acumatica tenant HTTPS (SSL/TLS) enabled Logged into the correct Company/Tenant Permission to create a Connected Application Knowledge of your Company ID (required in MYOB Acumatica OAuth formatting)Integration Options with MYOB AcumaticaMYOB Acumatica supports multiple OAuth flows.The recommended option for all modern integrations is the Authorization Code Flow.1. Authorization Code FlowBest suited for: Web applications SaaS apps integrating with MYOB Multi-user external integrations Apps requiring refresh tokensHow it works: User logs in via MYOB Acumatica System issues an authorization code Your app exchanges the code for Access Token + Refresh Token Tokens are stored securely for API accessWhy prefer this flow? Most secure Supports refresh tokens Required for MYOB Marketplace apps Industry-standard for 3rd-party integrations2. Implicit FlowLegacy flow used for browser-only apps.MYOB Acumatica still supports it, but No refresh tokens Lower security Not recommended for new integrations3. Resource Owner Password Credentials FlowThis flow sends user credentials (user/pass) directly to your app.⚠ Not recommendedOnly use if integrating with legacy systems that cannot handle OAuth redirects.Steps to Set Up Authorization Code Flow (OAuth 2.0)1. Register a Connected Application in MYOB Acumatica PortalNavigate to More Items → Integrations → Connected Applications Click + Add New Select Authorization Code as OAuth type Save → Copy your Client ID Create Client Secret Click Add Shared Secret Add description Leave expiry blank Copy the secret value immediatelySet Redirect URIAdd the callback URL for OAuth return: https://yourapp.com/oauth/callback https://localhost:3000/auth 2. Connecting to the Authorization EndpointAdd a “Connect to MYOB Acumatica” button in your UI that begins the OAuth process.Your app redirects the user to MYOB Acumatica using:Authorization Endpointhttps://yourapp.com/identity/connect/authorizeQuery parameters: response_type=code client_id=<your_client_id> + must include the company ID suffix You must use: <client_id>@<CompanyId> Example CompanyId: XXXXXXX How to get CompanyId? The unique identifier for the company file you are working with. You can retrieve this through the MYOB API too. redirect_uri=<your_registered_redirect_uri> scope=offline_access Example Authorization Requesthttps://mycompany.myobacumatica.com/identity/connect/authorize? response_type=code &client_id=01336912-1A06-810B-1F3D-E24FE3323287@AU Demo Data &redirect_uri=https://satvasolutions.com/oauth/callback &scope=api offline_access 3. User Logs Into MYOB Acumatica & Grants Access You will be prompted to log in using your MYOB username and password. Grant Access: After entering your credentials, a screen will appear asking for permission to allow access to your application. Click Allow Access to grant the required permissions. 4. Process to Generate Access Token If the user approves, Acumatica redirects back to your redirect_uri and includes: After permission, MYOB redirects to your redirect_uri with: ?code=<authorization-code> Next, your app must exchange this code for tokens.Exchange Code for Token: Token Endpoint: https://<acumatica-url>/identity/connect/tokenQuery parameters: grant_type=authorization_code client_id=<your_client_id> + must include the company ID suffix client_secret= <your_client_secret> Code={{AUTH_CODE_VALUE}} redirect_uri=<redirect_uri>Token Request Example grant_type=authorization_code &client_id=01336912-1A06-810B-1F3D-E24FE3323287@AU Demo Data &client_secret=YOUR_CLIENT_SECRET &code=AUTH_CODE_VALUE &redirect_uri=https://satvasolutions.com/ Successful Token Response ExampleAcumatica ERP verifies the provided application credentials and issues the access token, which the client application should provide with each data request to Acumatica ERP.A successful response includes the following parameters in the response bodyBelow is a typical JSON response: { "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } 5. Request Data Using the Access TokenEvery request must include:Authorization: Bearer <access_token>Example request for Account: GET /entity/Default/18.200.001/Account Host: Acumatica Site URL Authorization: Bearer {{access_token}} MYOB Acumatica Developer Certification RequirementsTo get official MYOB Partner Support, you need to get a developer certification via the “MYOB Academy” to understand the platform and the endpoints available.The online API course takes around 3-4 hours to complete.Certification Details Course: API Training Certification Duration: 3–4 hours (online, self-paced) Platform: https://academy.myob.com/ To enroll, email educationteam@myob.com requesting access to the course.Once your developer passes the certification: You gain access to the MYOB Partner Support Portal You can raise API-related support tickets Your partner portal is activated for technical supportOur CertificationWe have completed the specified API course and passed the test successfully.The purpose of completing the certification is to gain the ability to raise support cases through the MYOB Partner Support Portal.Certification activates partner-level support access.After completing the certification, we now have a Partner Portal account and can create support tickets here: Acumatica Partner Portal Note: You can use the MYOB Acumatica API without any certification, API access is not restricted, and you can continue building integrations normally.ConclusionOAuth 2.0 Authorization Code Flow is the most secure and scalable way to integrate external systems with MYOB Acumatica.Once configured, you can automate: eCommerce → ERP CRM → Sales & Financials WMS → Stock & Fulfilment Payroll → Accounting Custom Applications → MYOB WorkflowsNeed help building an MYOB Acumatica integration?Check our service offering