Order_add_attachment Mutation returns error even when upload is successful

When creating an attachment for an order, I get an error message I don’t understand, even though the image has been successfully uploaded.

This is the mutation

mutation Order_add_attachment {
    order_add_attachment(
        data: {
            order_id: "750774164"
            filename: "test"
            file_type: "psd"
            description: "right breast"
            url: "https://filesamples.com/samples/image/psd/sample_640%C3%97426.psd"
        }
    ) {
        request_id
        complexity
        attachment {
            id
            created_at
        }
    }
}

And this is the response I get

{
    "errors": [
        {
            "message": "Int cannot represent non-integer value: ''"
        }
    ],
    "data": {
        "order_add_attachment": {
            "request_id": "69935ccc25b6e9b367e11039",
            "complexity": 0,
            "attachment": {
                "id": "T3JkZXJBdHRhY2htZW50OjEzODI3ODk=",
                "legacy_id": 1382789,
                "order_id": "T3JkZXI6NzUwNzc0MTY0",
                "account_id": "QWNjb3VudDo4NTEwMQ==",
                "description": "right breast",
                "url": "https://filesamples.com/samples/image/psd/sample_640%C3%97426.psd",
                "filename": "test",
                "file_type": "psd",
                "file_size": null,
                "created_at": "2026-02-16T18:07:08"
            }
        }
    }
}

And if I verify the order on the app, the attachment is there.

Hi kevchcm,

The request is succeeding, this looks like a graphql error caused by not passing a file size into the API. If you submit a support ticket we can note this to be fixed to prevent the error from returning on a successful call.

Thanks,