Summary
- Requests to create quotes with a non-local currency return the error CannotCreateForeignQuote with ErrorCode 70011.
- The domain team has confirmed this is the expected behaviour: quotes must be in local currency.
- As a result, posting foreign currency quotes via the API is not supported; attempts will fail with error 70011.
Affected Endpoints
-
POST https://arl2.api.myob.com/accountright/{companyUid}/sale/quote/service(service layout) -
POST https://arl2.api.myob.com/accountright/{companyUid}/sale/quote/item(item layout)
Both item and service quote layouts exhibit the same behaviour when a foreign currency is applied.
Error Details (Observed Response)
{
"Errors": [
{
"Name": "CannotCreateForeignQuote",
"Message": "Cannot create a quote with a foreign currency applied",
"AdditionalDetails": "ForeignCurrency",
"ErrorCode": 70011,
"Severity": "Error",
"LearnMore": "http://developer.myob.com/api/accountright/api-overview/error-messages/?code=70011&context=400"
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"
}
Troubleshooting
- Symptom: API returns error 70011 CannotCreateForeignQuote when posting a quote.
- Cause: A foreign currency is applied to the quote; only local-currency quotes are supported.
- Resolution: Remove the foreign currency and post the quote in the company’s local currency. This is expected behaviour (“Quotes must be in Local Currency.”).
For further questions or to request assistance, please submit the support form here: https://apisupport.myob.com/hc/en-us/requests/new?ticket_form_id=215283.
Comments
0 comments
Article is closed for comments.