Forum Discussion

trosevearricoh's avatar
3 years ago

Posting an attachment to a service bill

I am using a development account and attempting to Post a file to a Service Bill I created.

 

I am getting a MissingBusinessEvent error: 

URI: /Purchase/Bill/Service/6a3bbc12-374e-41db-93d1-97f487XXXXXX/Attachment
BODY: 
{
    "Attachment": {
        "OriginalFileName""MyFile.pdf",
        "FileBase64Content""Base64Encoded String of file"
    }
}
RESPONSE:
{
    "Errors": [
        {
            "Name""MissingBusinessEvent",
            "Message""Missing Business Event",
            "AdditionalDetails""",
            "ErrorCode"80004,
            "Severity""Error",
            "LearnMore"null
        }
    ],
    "Information""Warning, error messages have not been finalised in this release and may change"
}

 

I attempted to do a GET of the attachments for the bill and got the same error:

GET /accountright/35331100-2bd3-451a-9d60-aa6c9eXXXXX/Purchase/Bill/Service/6a3bbc12-374e-41db-93d1-97f4874XXXXX/Attachment
x-myobapi-key: adb3f676-1c03-460a-be64-10762eXXXXX
x-myobapi-version: v2
Accept-Encoding: gzip,deflate
Authorization: Bearer {{token}}
User-Agent: PostmanRuntime/7.28.4
Accept: */*
Postman-Token: 9772dc70-a34b-451f-8e58-9612dXXXXXXX
Host: api.myob.com
Connection: keep-alive
 
RESPONSE:
HTTP/1.1 400 Bad Request
Date: Thu, 02 Dec 2021 06:55:07 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 333
Connection: keep-alive
x-amzn-RequestId: 9252de85-d92d-4de4-88b3-2e60XXXXXX
x-myobapi-requestid: 5d764e37-fb4e-4ef9-a5ba-c6a5XXXXXXX
x-amzn-Remapped-Content-Length: 333
x-myob-webapiexception: V1.0
Request-Context: appId=cid-v1:8886d410-0125-49dd-bd73-77db6XXXXXX
x-amz-apigw-id: JtYXtFv2ywMFvlQ=
Cache-Control: no-cache
x-amzn-Remapped-Server: Microsoft-IIS/10.0
Expires: -1
X-Powered-By: ASP.NET
x-myobapi-elapsed: 577
Access-Control-Expose-Headers: Request-Context
X-Amzn-Trace-Id: Root=1-61a86dca-14acd4d07216c8f4XXXXXXX
Pragma: no-cache
x-amzn-Remapped-Date: Thu, 02 Dec 2021 06:55:07 GMT
X-AspNet-Version: 4.0.30319
 
{
"Errors": [
{
"Name": "MissingBusinessEvent",
"Message": "Missing Business Event",
"AdditionalDetails": "",
"ErrorCode": 80004,
"Severity": "Error",
"LearnMore": null
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"
}
 
Any ideas on what I am missing here?
 
 
[Edited by Admin]

1 Reply

Replies have been turned off for this discussion
  • Hannah_B's avatar
    Hannah_B
    MYOB Moderator

    Hi trosevearricoh

     

    Thanks for reaching out, We are currently still investigating the cause of this error and reviewing the log files for this. Would you please be able to create a support request with our team HERE.