Skip to main content
Solved

Create customer using REST API throws 422 Error


I am trying to create a customer but getting 422 Unprocessable Entity.

I am trying this call:
PUT @https://xxxxxxxxxxx.acumatica.com/entity/Default/20.200.001/Customer

This is my request body:


{
    "CustomerID": {"value": "Cust01"},
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"}
}

This is my response:
 

{
    "id": "bd225325-d6b3-ef11-8363-12ab09909afb",
    "rowNumber": 1,
    "note": {
        "value": ""
    },
    "error": "Inserting  'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050       is not a control account. Please select an account configured as a control account for AR.",
    "AccountRef": {},
    "AutoApplyPayments": {
        "value": false
    },
    "BillingAddressOverride": {
        "value": false
    },
    "BillingContactOverride": {
        "value": false
    },
    "CreatedDateTime": {
        "value": "2024-12-06T13:29:49.88+00:00"
    },
    "CurrencyID": {
        "value": "USD"
    },
    "CurrencyRateType": {},
    "CustomerClass": {
        "value": "MISC"
    },
    "CustomerID": {
        "value": "CUST01"
    },
    "CustomerName": {
        "value": "Customer 01"
    },
    "EnableCurrencyOverride": {
        "value": false
    },
    "EnableRateOverride": {
        "value": false
    },
    "EnableWriteOffs": {
        "value": false
    },
    "FOBPoint": {},
    "LastModifiedDateTime": {
        "value": "2024-12-06T13:29:49.88+00:00"
    },
    "LeadTimedays": {},
    "LocationName": {
        "value": "Primary Location"
    },
    "MultiCurrencyStatements": {
        "value": false
    },
    "OrderPriority": {
        "value": 0
    },
    "ParentRecord": {},
    "PriceClassID": {},
    "PrintInvoices": {
        "value": false
    },
    "PrintStatements": {
        "value": false
    },
    "ResidentialDelivery": {
        "value": false
    },
    "SaturdayDelivery": {
        "value": false
    },
    "SendInvoicesbyEmail": {
        "value": false
    },
    "SendStatementsbyEmail": {
        "value": false
    },
    "ShippingAddressOverride": {
        "value": false
    },
    "ShippingBranch": {},
    "ShippingContactOverride": {
        "value": false
    },
    "ShippingRule": {
        "value": "Cancel Remainder"
    },
    "ShippingTerms": {},
    "ShippingZoneID": {},
    "ShipVia": {},
    "StatementCycleID": {
        "value": "MONTHLY"
    },
    "StatementType": {
        "value": "Open Item"
    },
    "Status": {
        "value": "Active"
    },
    "TaxRegistrationID": {},
    "TaxZone": {},
    "Terms": {
        "value": "NET 30"
    },
    "WarehouseID": {},
    "WriteOffLimit": {
        "value": 0.0
    },
    "custom": {},
    "_links": {
        "self": "/entity/Default/20.200.001/Customer/bd225325-d6b3-ef11-8363-12ab09909afb",
        "files:put": "/entity/Default/20.200.001/files/PX.Objects.AR.CustomerMaint/BAccount/bd225325-d6b3-ef11-8363-12ab09909afb/{filename}"
    }
}

I can see the error is:
“Inserting 'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050 is not a control account. Please select an account configured as a control account for AR”

Can someone help me understand why is this happening and how can I fix it?

Best answer by jinin

sandbox wrote:

I tried this body as well


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"},
    "LocationSettings": [
        {
            "LocationID": {"value": "MAIN"},
            "LocationName": {"value": "Primary Location"},
            "IsDefault": {"value": true}
        }
    ],
    "GLAccounts": {
        "AccountID": {"value": "1054"},
        "SubID": {"value": "000000"}  
    }
}

Got the same error. 

@jinin I feel you are right it’s about some configuration/customization going wrong. Here is a screenshot from UI of what it says. This is the same error i get on API calls.
How can i fix such customizations/configuration to work properly?

@sandbox 

First, update the Customer Class from 'MISC' to another appropriate class and check if it resolves the issue.

Next, navigate to the Customer Class screen, Select the Customer Class “MISC”, go to the GL Account tab, and update the Sales Account and Sales Sub as shown below. Please try this and confirm

 

 

View original
Did this topic help you find an answer to your question?

17 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • December 6, 2024

Hi ​@sandbox ,

EmailID is a required field when creating a customer. Please try again using the sample request below.

{

    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },

    "CustomerName": {

        "value": "Customer 01"

    },

    "CustomerID": {

        "value": "Customer 01"

    },

    "CustomerClass": {

        "value": "LOCAL"

    }

}


  • Author
  • Freshman I
  • 7 replies
  • December 7, 2024

Hello Jini,

Thanks for the reply. I tried this request body as you mentioned:


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"}
}

I got a 422 again with the following response:
 

{
    "id": "d36770ac-7fb4-ef11-8363-12ab09909afb",
    "rowNumber": 1,
    "note": {
        "value": ""
    },
    "error": "Inserting  'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050       is not a control account. Please select an account configured as a control account for AR.",
    "AccountRef": {},
    "AutoApplyPayments": {
        "value": false
    },
    "BillingAddressOverride": {
        "value": false
    },
    "BillingContactOverride": {
        "value": false
    },
    "CreatedDateTime": {
        "value": "2024-12-07T09:43:14.903+00:00"
    },
    "CurrencyID": {
        "value": "USD"
    },
    "CurrencyRateType": {},
    "CustomerClass": {
        "value": "MISC"
    },
    "CustomerID": {
        "value": "XXXX"
    },
    "CustomerName": {
        "value": "Customer 01"
    },
    "EnableCurrencyOverride": {
        "value": false
    },
    "EnableRateOverride": {
        "value": false
    },
    "EnableWriteOffs": {
        "value": false
    },
    "FOBPoint": {},
    "LastModifiedDateTime": {
        "value": "2024-12-07T09:43:14.903+00:00"
    },
    "LeadTimedays": {},
    "LocationName": {
        "value": "Primary Location"
    },
    "MainContact": {
        "id": "ec0845a0-95bc-415e-a240-1c2ef868308c",
        "rowNumber": 1,
        "note": null,
        "Attention": {},
        "CompanyName": {
            "value": "Customer 01"
        },
        "ContactID": {
            "value": -2147483647
        },
        "DisplayName": {
            "value": "Customer 01"
        },
        "Email": {
            "value": "xxxx@mail.com"
        },
        "Fax": {},
        "FirstName": {},
        "JobTitle": {},
        "LastName": {},
        "MiddleName": {},
        "Phone1": {},
        "Phone1Type": {
            "value": "Business 1"
        },
        "Phone2": {},
        "Phone2Type": {
            "value": "Business 2"
        },
        "Title": {},
        "WebSite": {},
        "custom": {}
    },
    "MultiCurrencyStatements": {
        "value": false
    },
    "OrderPriority": {
        "value": 0
    },
    "ParentRecord": {},
    "PriceClassID": {},
    "PrintInvoices": {
        "value": false
    },
    "PrintStatements": {
        "value": false
    },
    "ResidentialDelivery": {
        "value": false
    },
    "SaturdayDelivery": {
        "value": false
    },
    "SendInvoicesbyEmail": {
        "value": false
    },
    "SendStatementsbyEmail": {
        "value": false
    },
    "ShippingAddressOverride": {
        "value": false
    },
    "ShippingBranch": {},
    "ShippingContactOverride": {
        "value": false
    },
    "ShippingRule": {
        "value": "Cancel Remainder"
    },
    "ShippingTerms": {},
    "ShippingZoneID": {},
    "ShipVia": {},
    "StatementCycleID": {
        "value": "MONTHLY"
    },
    "StatementType": {
        "value": "Open Item"
    },
    "Status": {
        "value": "Active"
    },
    "TaxRegistrationID": {},
    "TaxZone": {},
    "Terms": {
        "value": "NET 30"
    },
    "WarehouseID": {},
    "WriteOffLimit": {
        "value": 0.0
    },
    "custom": {},
    "_links": {
        "self": "/entity/Default/20.200.001/Customer/d36770ac-7fb4-ef11-8363-12ab09909afb",
        "files:put": "/entity/Default/20.200.001/files/PX.Objects.AR.CustomerMaint/BAccount/d36770ac-7fb4-ef11-8363-12ab09909afb/{filename}"
    }
}

with adding email as well i got the same error. Can it be something else?
 


  • Author
  • Freshman I
  • 7 replies
  • December 7, 2024
jinin wrote:

Hi ​@sandbox ,

EmailID is a required field when creating a customer. Please try again using the sample request below.

{

    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },

    "CustomerName": {

        "value": "Customer 01"

    },

    "CustomerID": {

        "value": "Customer 01"

    },

    "CustomerClass": {

        "value": "LOCAL"

    }

}

I tired the request body with Email like:


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"}
}

But i got the same error again. I have attached it below:

{
    "id": "d36770ac-7fb4-ef11-8363-12ab09909afb",
    "rowNumber": 1,
    "note": {
        "value": ""
    },
    "error": "Inserting  'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050       is not a control account. Please select an account configured as a control account for AR.",
    "AccountRef": {},
    "AutoApplyPayments": {
        "value": false
    },
    "BillingAddressOverride": {
        "value": false
    },
    "BillingContactOverride": {
        "value": false
    },
    "CreatedDateTime": {
        "value": "2024-12-07T09:43:14.903+00:00"
    },
    "CurrencyID": {
        "value": "USD"
    },
    "CurrencyRateType": {},
    "CustomerClass": {
        "value": "MISC"
    },
    "CustomerID": {
        "value": "XXXX"
    },
    "CustomerName": {
        "value": "Customer 01"
    },
    "EnableCurrencyOverride": {
        "value": false
    },
    "EnableRateOverride": {
        "value": false
    },
    "EnableWriteOffs": {
        "value": false
    },
    "FOBPoint": {},
    "LastModifiedDateTime": {
        "value": "2024-12-07T09:43:14.903+00:00"
    },
    "LeadTimedays": {},
    "LocationName": {
        "value": "Primary Location"
    },
    "MainContact": {
        "id": "ec0845a0-95bc-415e-a240-1c2ef868308c",
        "rowNumber": 1,
        "note": null,
        "Attention": {},
        "CompanyName": {
            "value": "Customer 01"
        },
        "ContactID": {
            "value": -2147483647
        },
        "DisplayName": {
            "value": "Customer 01"
        },
        "Email": {
            "value": "xxxx@mail.com"
        },
        "Fax": {},
        "FirstName": {},
        "JobTitle": {},
        "LastName": {},
        "MiddleName": {},
        "Phone1": {},
        "Phone1Type": {
            "value": "Business 1"
        },
        "Phone2": {},
        "Phone2Type": {
            "value": "Business 2"
        },
        "Title": {},
        "WebSite": {},
        "custom": {}
    },
    "MultiCurrencyStatements": {
        "value": false
    },
    "OrderPriority": {
        "value": 0
    },
    "ParentRecord": {},
    "PriceClassID": {},
    "PrintInvoices": {
        "value": false
    },
    "PrintStatements": {
        "value": false
    },
    "ResidentialDelivery": {
        "value": false
    },
    "SaturdayDelivery": {
        "value": false
    },
    "SendInvoicesbyEmail": {
        "value": false
    },
    "SendStatementsbyEmail": {
        "value": false
    },
    "ShippingAddressOverride": {
        "value": false
    },
    "ShippingBranch": {},
    "ShippingContactOverride": {
        "value": false
    },
    "ShippingRule": {
        "value": "Cancel Remainder"
    },
    "ShippingTerms": {},
    "ShippingZoneID": {},
    "ShipVia": {},
    "StatementCycleID": {
        "value": "MONTHLY"
    },
    "StatementType": {
        "value": "Open Item"
    },
    "Status": {
        "value": "Active"
    },
    "TaxRegistrationID": {},
    "TaxZone": {},
    "Terms": {
        "value": "NET 30"
    },
    "WarehouseID": {},
    "WriteOffLimit": {
        "value": 0.0
    },
    "custom": {},
    "_links": {
        "self": "/entity/Default/20.200.001/Customer/d36770ac-7fb4-ef11-8363-12ab09909afb",
        "files:put": "/entity/Default/20.200.001/files/PX.Objects.AR.CustomerMaint/BAccount/d36770ac-7fb4-ef11-8363-12ab09909afb/{filename}"
    }
}

Maybe it’s some other thing causing the error?
 


Forum|alt.badge.img+1
  • Jr Varsity I
  • 62 replies
  • December 8, 2024

Hi ​@sandbox ,
Based on the error message, you need to include several additional required fields in your request to create a customer successfully. Here's a modified JSON payload that should work:
{
    "CustomerID": {"value": "Cust01"},
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "LocationSettings": [{
        "LocationID": {"value": "PRIMARY"},
        "CSalesAcctID": {"value": "4000"},  // Replace with your valid Sales Account
        "CSalesSubID": {"value": "000000"},  // Replace with your valid Sales Sub-Account
        "CARAccountID": {"value": "1200"}    // Replace with your valid AR Control Account
    }]
}
 

The key issues the error message identified were:

  1. Missing Sales Account (CSalesAcctID)
  2. Missing Sales Sub-Account (CSalesSubID)
  3. Invalid AR Account (CARAccountID) - needs to be configured as a control account

A few important notes:

  • You'll need to replace the account numbers (4000, 1200) with valid account numbers from your system
  • The sub-account format may vary based on your system configuration
  • The AR account must be configured as a control account in your system
  • The LocationID value might need to be adjusted based on your configuration

    Hope it will work.

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • December 9, 2024
sandbox wrote:

Hello Jini,

Thanks for the reply. I tried this request body as you mentioned:


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"}
}

I got a 422 again with the following response:
 

{
    "id": "d36770ac-7fb4-ef11-8363-12ab09909afb",
    "rowNumber": 1,
    "note": {
        "value": ""
    },
    "error": "Inserting  'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050       is not a control account. Please select an account configured as a control account for AR.",
    "AccountRef": {},
    "AutoApplyPayments": {
        "value": false
    },
    "BillingAddressOverride": {
        "value": false
    },
    "BillingContactOverride": {
        "value": false
    },
    "CreatedDateTime": {
        "value": "2024-12-07T09:43:14.903+00:00"
    },
    "CurrencyID": {
        "value": "USD"
    },
    "CurrencyRateType": {},
    "CustomerClass": {
        "value": "MISC"
    },
    "CustomerID": {
        "value": "XXXX"
    },
    "CustomerName": {
        "value": "Customer 01"
    },
    "EnableCurrencyOverride": {
        "value": false
    },
    "EnableRateOverride": {
        "value": false
    },
    "EnableWriteOffs": {
        "value": false
    },
    "FOBPoint": {},
    "LastModifiedDateTime": {
        "value": "2024-12-07T09:43:14.903+00:00"
    },
    "LeadTimedays": {},
    "LocationName": {
        "value": "Primary Location"
    },
    "MainContact": {
        "id": "ec0845a0-95bc-415e-a240-1c2ef868308c",
        "rowNumber": 1,
        "note": null,
        "Attention": {},
        "CompanyName": {
            "value": "Customer 01"
        },
        "ContactID": {
            "value": -2147483647
        },
        "DisplayName": {
            "value": "Customer 01"
        },
        "Email": {
            "value": "xxxx@mail.com"
        },
        "Fax": {},
        "FirstName": {},
        "JobTitle": {},
        "LastName": {},
        "MiddleName": {},
        "Phone1": {},
        "Phone1Type": {
            "value": "Business 1"
        },
        "Phone2": {},
        "Phone2Type": {
            "value": "Business 2"
        },
        "Title": {},
        "WebSite": {},
        "custom": {}
    },
    "MultiCurrencyStatements": {
        "value": false
    },
    "OrderPriority": {
        "value": 0
    },
    "ParentRecord": {},
    "PriceClassID": {},
    "PrintInvoices": {
        "value": false
    },
    "PrintStatements": {
        "value": false
    },
    "ResidentialDelivery": {
        "value": false
    },
    "SaturdayDelivery": {
        "value": false
    },
    "SendInvoicesbyEmail": {
        "value": false
    },
    "SendStatementsbyEmail": {
        "value": false
    },
    "ShippingAddressOverride": {
        "value": false
    },
    "ShippingBranch": {},
    "ShippingContactOverride": {
        "value": false
    },
    "ShippingRule": {
        "value": "Cancel Remainder"
    },
    "ShippingTerms": {},
    "ShippingZoneID": {},
    "ShipVia": {},
    "StatementCycleID": {
        "value": "MONTHLY"
    },
    "StatementType": {
        "value": "Open Item"
    },
    "Status": {
        "value": "Active"
    },
    "TaxRegistrationID": {},
    "TaxZone": {},
    "Terms": {
        "value": "NET 30"
    },
    "WarehouseID": {},
    "WriteOffLimit": {
        "value": 0.0
    },
    "custom": {},
    "_links": {
        "self": "/entity/Default/20.200.001/Customer/d36770ac-7fb4-ef11-8363-12ab09909afb",
        "files:put": "/entity/Default/20.200.001/files/PX.Objects.AR.CustomerMaint/BAccount/d36770ac-7fb4-ef11-8363-12ab09909afb/{filename}"
    }
}

with adding email as well i got the same error. Can it be something else?
 

Hi ​@sandbox ,Are you able to create a customer with the details included in the request?

Normally, based on the customer class, the other details are auto-populated. I guess there might be an issue with a customization or configuration?


saifalisabri
Jr Varsity II
Forum|alt.badge.img
  • Jr Varsity II
  • 47 replies
  • December 9, 2024

Nilkanth Dipak
Semi-Pro II
Forum|alt.badge.img+10

@sandbox,

Have you tried to create customer from screen with using same details?

I believe there may be an configuration issue of setting the account details.

@jinin replied After selecting the customer class , All required fields should populate and we do not need to send them again in payload, So try to create the customer from Customers screen from Acumatica.

Hope, it will helps you to investigate the root cause of issue.


  • Author
  • Freshman I
  • 7 replies
  • December 9, 2024

Hello
Thanks for the advices everyone. It might be a customization/configuration but is there a way to set it in request body?

I tried creating the Customer from UI. On Creating customer i got 2 errors one for Locations and other for GL Accounts. When I clicked on “SET AS DEFAULT” in Locations the GL Accounts error also disappeared. Can someone help make a request body that can work in this case?
(Attached the screenshot below for reference)

I tried 


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"},
    "Location": {"value": "DEFAULT"}
}

But again 422 with same error

    "error": "Inserting  'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050       is not a control account. Please select an account configured as a control account for AR.",

 


Forum|alt.badge.img+1
  • Jr Varsity I
  • 62 replies
  • December 9, 2024

Hi ​@sandbox ,
Try this modified request body:
{
    "CustomerID": {"value": "xxxx"},
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {
        "Email": {
            "value": "xxxx@mail.com"
        }
    },
    "LocationSettings": [{
        "LocationID": {"value": "MAIN"},
        "LocationName": {"value": "Primary Location"},
        "IsDefault": {"value": true}
    }],
    "GLAccounts": {
        "AccountID": {"value": "1050"},  // This should be your AR control account
        "SubID": {"value": "000000"}     // Your default sub-account
    }
}


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • December 9, 2024
sandbox wrote:

Hello
Thanks for the advices everyone. It might be a customization/configuration but is there a way to set it in request body?

I tried creating the Customer from UI. On Creating customer i got 2 errors one for Locations and other for GL Accounts. When I clicked on “SET AS DEFAULT” in Locations the GL Accounts error also disappeared. Can someone help make a request body that can work in this case?
(Attached the screenshot below for reference)

I tried 


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"},
    "Location": {"value": "DEFAULT"}
}

But again 422 with same error

    "error": "Inserting  'Location' record raised at least one error. Please review the errors.; CSalesAcctID: 'Sales Account' cannot be empty.; CSalesSubID: 'Sales Sub.' cannot be empty.; CARAccountID: Account 1050       is not a control account. Please select an account configured as a control account for AR.",

 

The Main Location is automatically generated, and the GL account is derived from the customer details. It seems there may be a configuration issue with the GL accounts. Please review the GL Account tab. Additionally, try changing the Customer Class and check again, as the configuration might not be correctly set up in the Customer Class “MISC”.

 


  • Author
  • Freshman I
  • 7 replies
  • December 9, 2024

I tried this body as well


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"},
    "LocationSettings": [
        {
            "LocationID": {"value": "MAIN"},
            "LocationName": {"value": "Primary Location"},
            "IsDefault": {"value": true}
        }
    ],
    "GLAccounts": {
        "AccountID": {"value": "1054"},
        "SubID": {"value": "000000"}  
    }
}

Got the same error. 

@jinin I feel you are right it’s about some configuration/customization going wrong. Here is a screenshot from UI of what it says. This is the same error i get on API calls.
How can i fix such customizations/configuration to work properly?


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • Answer
  • December 9, 2024
sandbox wrote:

I tried this body as well


{
    "CustomerName": {"value": "Customer 01"},
    "CustomerClass": {"value": "MISC"},
    "MainContact": {

        "Email": {

            "value": "xxxx@mail.com"

        }

    },
    "CustomerID": {"value": "xxxx"},
    "LocationSettings": [
        {
            "LocationID": {"value": "MAIN"},
            "LocationName": {"value": "Primary Location"},
            "IsDefault": {"value": true}
        }
    ],
    "GLAccounts": {
        "AccountID": {"value": "1054"},
        "SubID": {"value": "000000"}  
    }
}

Got the same error. 

@jinin I feel you are right it’s about some configuration/customization going wrong. Here is a screenshot from UI of what it says. This is the same error i get on API calls.
How can i fix such customizations/configuration to work properly?

@sandbox 

First, update the Customer Class from 'MISC' to another appropriate class and check if it resolves the issue.

Next, navigate to the Customer Class screen, Select the Customer Class “MISC”, go to the GL Account tab, and update the Sales Account and Sales Sub as shown below. Please try this and confirm

 

 


  • Author
  • Freshman I
  • 7 replies
  • December 9, 2024

I tried the other values than MISC but all gives the same error. I tried to set the value as 40000 - Sales Revenue as well but that’s not available


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • December 9, 2024
sandbox wrote:

I tried the other values than MISC but all gives the same error. I tried to set the value as 40000 - Sales Revenue as well but that’s not available

The example provided above is from my local instance using the Sales Demo data. Please select the appropriate account on your end and test accordingly.


  • Author
  • Freshman I
  • 7 replies
  • December 10, 2024

Thank you for the help! It should work on a production account. It is failing as I am using a test account, is this the reason of it failing?


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • December 10, 2024
sandbox wrote:

Thank you for the help! It should work on a production account. It is failing as I am using a test account, is this the reason of it failing?

Not sure. You may consider creating a test customer in the production environment to confirm.


  • Author
  • Freshman I
  • 7 replies
  • December 10, 2024

Thank you for the help!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings